1
0

WIP desktop builds

This commit is contained in:
Zef Hemel 2023-01-14 05:28:32 -08:00
parent 6e41731f3f
commit d888ab9324
3 changed files with 13 additions and 3 deletions

View File

@ -51,7 +51,7 @@ const config: ForgeConfig = {
: "SilverBullet",
icon: "../web/images/logo",
appBundleId: "md.silverbullet",
extraResource: [denoExecutableResource, "resources/silverbullet.js"],
extraResource: [denoExecutableResource, "resources/silverbullet.js", "resources/logo.png"],
beforeCopyExtraResources: [(
_buildPath: string,
_electronVersion: string,
@ -67,6 +67,7 @@ const config: ForgeConfig = {
await downloadDeno(platform, arch);
// Copy silverbullet.js
fs.copyFileSync("../dist/silverbullet.js", "resources/silverbullet.js");
fs.copyFileSync("../web/images/logo.png", "resources/logo.png");
}).then((r) => callback()).catch(callback);
}],
osxSign: {
@ -81,10 +82,17 @@ const config: ForgeConfig = {
},
rebuildConfig: {},
makers: [
new MakerSquirrel({}),
new MakerSquirrel({
iconUrl: "https://silverbullet.md/icon.ico",
setupIcon: "../web/images/icon.ico"
}),
new MakerZIP({}, ["darwin", "linux"]),
new MakerRpm({}),
new MakerDeb({}),
new MakerDeb({
options: {
icon: "../web/images/logo.png"
}
}),
],
plugins: [

View File

@ -151,6 +151,7 @@ export function newWindow(instance: Instance, windowState: WindowState) {
width: windowState.width,
x: windowState.x,
y: windowState.y,
icon: process.resourcesPath + "/logo.png",
webPreferences: {
preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY,
},

View File

@ -38,3 +38,4 @@ echo "Bundling..."
deno task bundle
cp dist/silverbullet.js website_build/
cp dist_bundle/web/global.plug.json website_build/
cp web/images/icon.ico website_build/