mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix server package
This commit is contained in:
parent
e5e92c8ece
commit
39c0250833
@ -44,7 +44,7 @@ cp -R "$script_dir/../build/src" "$DIR"
|
||||
cp "$script_dir/../build/electron.js" "$DIR"
|
||||
|
||||
# run in subshell (so we return to original dir)
|
||||
(cd $DIR && npm install --omit=dev && npx electron-rebuild)
|
||||
(cd $DIR && npm install --omit=dev)
|
||||
|
||||
if [[ -d "$DIR"/node_modules ]]; then
|
||||
# cleanup of useless files in dependencies
|
||||
|
@ -4,13 +4,12 @@ const fs = require('fs-extra');
|
||||
module.exports = {
|
||||
packagerConfig: {
|
||||
executableName: "trilium",
|
||||
name: 'trilium',
|
||||
name: 'TriliumNextNotes',
|
||||
overwrite: true,
|
||||
asar: true,
|
||||
// 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)
|
||||
icon: "./images/app-icons/icon",
|
||||
extraResource: getExtraResourcesForPlatform(),
|
||||
files: [{ from: './bin/tpl/anonymize-database.tql', to: '.' }],
|
||||
afterComplete: [(buildPath, electronVersion, platform, arch, callback) => {
|
||||
const extraResources = getExtraResourcesForPlatform();
|
||||
for (const resource of extraResources) {
|
||||
@ -48,7 +47,7 @@ module.exports = {
|
||||
name: '@electron-forge/maker-dmg',
|
||||
arch: ['x64', 'arm64'],
|
||||
config: {
|
||||
icon: "./images/app-icons/mac/icon.icns",
|
||||
icon: "./images/app-icons/icon.icns",
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -56,8 +55,7 @@ module.exports = {
|
||||
config: {
|
||||
options: {
|
||||
iconUrl: "https://raw.githubusercontent.com/TriliumNext/Notes/develop/images/app-icons/icon.ico",
|
||||
setupIcon: "./images/app-icons/icon.ico",
|
||||
loadingGif: "./images/app-icons/win/setup-banner.gif"
|
||||
icon: "./images/app-icons/icon.ico",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user