diff options
author | Ashraf Teleb <ashraf.teleb85@gmail.com> | 2021-02-24 03:41:06 +0300 |
---|---|---|
committer | Ashraf Teleb <ashraf.teleb85@gmail.com> | 2021-02-24 03:41:06 +0300 |
commit | 575c50e3289bad0869fe16cd2ca53ec95a542b84 (patch) | |
tree | d54da15670f781c2c914ffb514e40d1a8cb475f6 /sync.js | |
parent | c3ffb3031f1458c7236ecda25efc5053d4fdda1b (diff) |
Fixed windows auto-update issue of 32bit and 64bit (#1839)
Diffstat (limited to 'sync.js')
-rw-r--r-- | sync.js | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -14,10 +14,7 @@ let pj = require(appjsonpath) pj.version = ver fs.writeFileSync(appjsonpath, JSON.stringify(pj, null, 2), 'utf8') - -if (process.argv[2] == 'disableUpdate') -{ - fs.writeFileSync(disableUpdatePath, 'module.exports = { disableUpdate: function() { return true;}}', 'utf8'); -} +//Enable/disable updates +fs.writeFileSync(disableUpdatePath, 'module.exports = { disableUpdate: function() { return ' + (process.argv[2] == 'disableUpdate'? 'true' : 'false') + ';}}', 'utf8'); child_process.spawnSync('yarn', ['install', '--production'], {cwd: electronAppDir}) |