Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgraph/drawio-desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshraf Teleb <ashraf.teleb85@gmail.com>2021-02-24 03:41:06 +0300
committerAshraf Teleb <ashraf.teleb85@gmail.com>2021-02-24 03:41:06 +0300
commit575c50e3289bad0869fe16cd2ca53ec95a542b84 (patch)
treed54da15670f781c2c914ffb514e40d1a8cb475f6 /sync.js
parentc3ffb3031f1458c7236ecda25efc5053d4fdda1b (diff)
Fixed windows auto-update issue of 32bit and 64bit (#1839)
Diffstat (limited to 'sync.js')
-rw-r--r--sync.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/sync.js b/sync.js
index 1e265f6..fa97a8e 100644
--- a/sync.js
+++ b/sync.js
@@ -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})