mirror of
https://github.com/tutao/tutanota.git
synced 2025-10-19 16:03:43 +00:00
[desktop] define options object for desktopBuilder
This commit is contained in:
parent
592b48b783
commit
a61c8fe96a
6 changed files with 105 additions and 44 deletions
14
make.js
14
make.js
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue