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