mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 02:23:28 +08:00
fix(win): remove winattr
This commit is contained in:
parent
d1d34963e2
commit
e4ca1b49c2
3 changed files with 2 additions and 12 deletions
|
@ -70,8 +70,7 @@
|
|||
"temp": "^0.8",
|
||||
"theorist": "^1.0",
|
||||
"underscore": "^1.8",
|
||||
"underscore.string": "^3.0",
|
||||
"winattr": "1.1.0"
|
||||
"underscore.string": "^3.0"
|
||||
},
|
||||
"packageDependencies": {},
|
||||
"private": true,
|
||||
|
|
|
@ -46,9 +46,6 @@ setupConfigDir = (args) ->
|
|||
defaultConfigDir
|
||||
|
||||
mkdirp.sync(configDirPath)
|
||||
if process.platform is 'win32'
|
||||
winattr=require('winattr')
|
||||
winattr.setSync(configDirPath, {hidden: true})
|
||||
|
||||
process.env.NYLAS_HOME = configDirPath
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
};
|
||||
|
||||
setupConfigDir = function(args) {
|
||||
var configDirPath, defaultConfigDir, ref, ref1, winattr;
|
||||
var configDirPath, defaultConfigDir, ref, ref1;
|
||||
if (args.specMode) {
|
||||
defaultConfigDir = path.join(app.getPath('home'), '.nylas-spec');
|
||||
} else {
|
||||
|
@ -60,12 +60,6 @@
|
|||
}
|
||||
configDirPath = (ref = (ref1 = args.configDirPath) != null ? ref1 : process.env.NYLAS_HOME) != null ? ref : defaultConfigDir;
|
||||
mkdirp.sync(configDirPath);
|
||||
if (process.platform === 'win32') {
|
||||
winattr = require('winattr');
|
||||
winattr.setSync(configDirPath, {
|
||||
hidden: true
|
||||
});
|
||||
}
|
||||
process.env.NYLAS_HOME = configDirPath;
|
||||
return configDirPath;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue