mirror of
https://github.com/tutao/tutanota.git
synced 2025-12-08 06:09:50 +00:00
added icons to desktop client
This commit is contained in:
parent
9a19eb6765
commit
dcb51b4be0
8 changed files with 7 additions and 8 deletions
|
|
@ -16,6 +16,7 @@ function packageDesktop(dirname, version) {
|
|||
])
|
||||
})
|
||||
.then(() => {
|
||||
//remove app stuff
|
||||
return Promise.all([
|
||||
fs.unlink(resourcesDir + "app.html", (e) => {
|
||||
if (e) {
|
||||
|
|
@ -30,11 +31,12 @@ function packageDesktop(dirname, version) {
|
|||
])
|
||||
})
|
||||
.then(() => {
|
||||
console.log("Creating config...")
|
||||
//create package.json for electron-builder
|
||||
const builderPackageJSON = Object.assign(require(path.join(dirname, '/app-desktop/', '/package.json')), {
|
||||
version: version
|
||||
})
|
||||
|
||||
builderPackageJSON.build.icon = path.join(dirname, "/resources/desktop-icons/desktop-icon.png")
|
||||
return fs.writeFile(path.join(electronSourcesDir, "/package.json"),
|
||||
JSON.stringify(builderPackageJSON),
|
||||
'utf8',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue