Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 39c0250

Browse files
committed
fix server package
1 parent e5e92c8 commit 39c0250

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

bin/copy-trilium.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cp -R "$script_dir/../build/src" "$DIR"
4444
cp "$script_dir/../build/electron.js" "$DIR"
4545

4646
# run in subshell (so we return to original dir)
47-
(cd $DIR && npm install --omit=dev && npx electron-rebuild)
47+
(cd $DIR && npm install --omit=dev)
4848

4949
if [[ -d "$DIR"/node_modules ]]; then
5050
# cleanup of useless files in dependencies

forge.config.cjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ const fs = require('fs-extra');
44
module.exports = {
55
packagerConfig: {
66
executableName: "trilium",
7-
name: 'trilium',
7+
name: 'TriliumNextNotes',
88
overwrite: true,
99
asar: true,
1010
// icon will break once we add .dmg support, since the .ico & .icns have to be in same dir (see https://www.electronforge.io/guides/create-and-add-icons#windows-and-macos)
1111
icon: "./images/app-icons/icon",
1212
extraResource: getExtraResourcesForPlatform(),
13-
files: [{ from: './bin/tpl/anonymize-database.tql', to: '.' }],
1413
afterComplete: [(buildPath, electronVersion, platform, arch, callback) => {
1514
const extraResources = getExtraResourcesForPlatform();
1615
for (const resource of extraResources) {
@@ -48,16 +47,15 @@ module.exports = {
4847
name: '@electron-forge/maker-dmg',
4948
arch: ['x64', 'arm64'],
5049
config: {
51-
icon: "./images/app-icons/mac/icon.icns",
50+
icon: "./images/app-icons/icon.icns",
5251
}
5352
},
5453
{
5554
name: '@electron-forge/maker-zip',
5655
config: {
5756
options: {
5857
iconUrl: "https://raw.githubusercontent.com/TriliumNext/Notes/develop/images/app-icons/icon.ico",
59-
setupIcon: "./images/app-icons/icon.ico",
60-
loadingGif: "./images/app-icons/win/setup-banner.gif"
58+
icon: "./images/app-icons/icon.ico",
6159
}
6260
}
6361
}

0 commit comments

Comments
 (0)