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

View File

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

View File

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