mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(monorepo/electron): use different approach for deb that might work
This commit is contained in:
parent
8dabeb1398
commit
0b327dd4b1
@ -1,7 +1,7 @@
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const fs = require("fs-extra");
|
const fs = require("fs-extra");
|
||||||
|
|
||||||
const EXECUTABLE_NAME = "trilium";
|
const EXECUTABLE_NAME = "trilium"; // keep in sync with server's package.json -> packagerConfig.executableName
|
||||||
const PRODUCT_NAME = "TriliumNext Notes";
|
const PRODUCT_NAME = "TriliumNext Notes";
|
||||||
const BIN_PATH = path.normalize("./scripts/electron-forge");
|
const BIN_PATH = path.normalize("./scripts/electron-forge");
|
||||||
|
|
||||||
@ -88,9 +88,7 @@ module.exports = {
|
|||||||
name: "@electron-forge/maker-deb",
|
name: "@electron-forge/maker-deb",
|
||||||
config: {
|
config: {
|
||||||
options: {
|
options: {
|
||||||
...baseLinuxMakerConfigOptions,
|
...baseLinuxMakerConfigOptions
|
||||||
name: EXECUTABLE_NAME,
|
|
||||||
productName: PRODUCT_NAME
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -51,5 +51,8 @@
|
|||||||
"@electron-forge/maker-squirrel": "7.8.0",
|
"@electron-forge/maker-squirrel": "7.8.0",
|
||||||
"@electron-forge/maker-zip": "7.8.0",
|
"@electron-forge/maker-zip": "7.8.0",
|
||||||
"@electron-forge/plugin-auto-unpack-natives": "7.8.0"
|
"@electron-forge/plugin-auto-unpack-natives": "7.8.0"
|
||||||
|
},
|
||||||
|
"packagerConfig": {
|
||||||
|
"executableName": "trilium"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user