diff options
author | Mohamed Mohamedin <mohamedin@draw.io> | 2022-09-06 10:39:08 +0300 |
---|---|---|
committer | Mohamed Mohamedin <mohamedin@draw.io> | 2022-09-06 10:39:08 +0300 |
commit | 038391dc4f5538fc47216d1ff1162e3170db667a (patch) | |
tree | c49aeabee696e79eb38d08cb55c1feb09011ebc6 /sync.js | |
parent | 1a281d802abdc351915b29201544da7ea34a5c12 (diff) |
Fixed electron builder config files after removing drawio project package.json
Diffstat (limited to 'sync.js')
-rw-r--r-- | sync.js | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -1,8 +1,6 @@ const fs = require('fs') const path = require('path') -const child_process = require('child_process') -const electronAppDir = path.join(__dirname, 'drawio', 'src/main/webapp') const appjsonpath = path.join(__dirname, 'package.json') const disableUpdatePath = path.join(__dirname, 'drawio', 'src/main/webapp', 'disableUpdate.js') @@ -16,5 +14,3 @@ pj.version = ver fs.writeFileSync(appjsonpath, JSON.stringify(pj, null, 2), '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}) |