1 Star 0 Fork 3

Wing / drawio-desktop

forked from stars-one / drawio-desktop 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sync.js 841 Bytes
一键复制 编辑 原始数据 按行查看 历史
David Benson [draw.io] 提交于 2019-09-03 17:27 . Updated to 11.2.5
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, 'drawio', 'src/main/webapp', 'package.json')
const disableUpdatePath = path.join(__dirname, 'drawio', 'src/main/webapp', 'disableUpdate.js')
let ver = fs.readFileSync(path.join(__dirname, 'drawio', 'VERSION'), 'utf8')
//let ver = '11.2.5' // just to test autoupdate
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');
}
child_process.spawnSync('yarn', ['install', '--production'], {cwd: electronAppDir})
1
https://gitee.com/FuCode/drawio-desktop.git
git@gitee.com:FuCode/drawio-desktop.git
FuCode
drawio-desktop
drawio-desktop
master

搜索帮助