[desktop] define options object for desktopBuilder

This commit is contained in:
nig 2020-04-07 10:32:03 +02:00 committed by ganthern
parent 592b48b783
commit a61c8fe96a
6 changed files with 105 additions and 44 deletions

14
make.js
View file

@ -87,13 +87,13 @@ function startDesktop() {
if (options.desktop) {
console.log("Trying to start desktop client...")
const version = require('./package.json').version
const packageJSON = require('./buildSrc/electron-package-json-template.js')(
"-debug",
version,
"http://localhost:9000",
path.join(__dirname, "/resources/desktop-icons/logo-solo-red.png"),
false
)
const packageJSON = require('./buildSrc/electron-package-json-template.js')({
nameSuffix: "-debug",
version: version,
updateUrl: "http://localhost:9000",
iconPath: path.join(__dirname, "/resources/desktop-icons/logo-solo-red.png"),
sign: false
})
const content = JSON.stringify(packageJSON)
return fs.writeFileAsync("./build/package.json", content, 'utf-8')
.then(() => {