WIP desktop builds
This commit is contained in:
parent
6e41731f3f
commit
d888ab9324
@ -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: [
|
||||||
|
@ -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,
|
||||||
},
|
},
|
||||||
|
@ -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/
|
Loading…
Reference in New Issue
Block a user