mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(nx/forge): setup icon
This commit is contained in:
parent
b6b9ca1ab5
commit
de4fc4735b
1
.gitignore
vendored
1
.gitignore
vendored
@ -46,3 +46,4 @@ vitest.config.*.timestamp*
|
||||
test-output
|
||||
|
||||
apps/*/data
|
||||
apps/*/out
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 109 KiB |
@ -1,6 +1,8 @@
|
||||
const path = require("path");
|
||||
const fs = require("fs-extra");
|
||||
|
||||
const ELECTRON_FORGE_DIR = "apps/desktop/electron-forge";
|
||||
|
||||
const EXECUTABLE_NAME = "trilium"; // keep in sync with server's package.json -> packagerConfig.executableName
|
||||
const PRODUCT_NAME = "TriliumNext Notes";
|
||||
const BIN_PATH = path.normalize("./scripts/electron-forge");
|
||||
@ -34,11 +36,7 @@ module.exports = {
|
||||
windowsSign: windowsSignConfiguration,
|
||||
extraResource: [
|
||||
// All resources should stay in Resources directory for macOS
|
||||
...(process.platform === "darwin" ? [] : extraResourcesForPlatform),
|
||||
|
||||
// These always go in Resources
|
||||
"../server/translations/",
|
||||
"../../node_modules/@highlightjs/cdn-assets/styles"
|
||||
...(process.platform === "darwin" ? [] : extraResourcesForPlatform)
|
||||
],
|
||||
afterPrune: [
|
||||
(buildPath, _electronVersion, _platform, _arch, callback) => {
|
||||
@ -129,8 +127,8 @@ module.exports = {
|
||||
name: EXECUTABLE_NAME,
|
||||
productName: PRODUCT_NAME,
|
||||
iconUrl: "https://raw.githubusercontent.com/TriliumNext/Notes/develop/images/app-icons/icon.ico",
|
||||
setupIcon: "./assets/setup-icon/setup.ico",
|
||||
loadingGif: "./assets/setup-icon/setup-banner.gif",
|
||||
setupIcon: path.join(ELECTRON_FORGE_DIR, "setup-icon/setup.ico"),
|
||||
loadingGif: path.join(ELECTRON_FORGE_DIR, "setup-icon/setup-banner.gif"),
|
||||
windowsSign: windowsSignConfiguration
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user