diff --git a/electron-builder.yml b/electron-builder.yml index 2261448..0ae7737 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,4 +1,4 @@ -appId: com.electron.app +appId: com.ragestudio.bundler productName: rs-bundler directories: buildResources: build @@ -12,6 +12,7 @@ asarUnpack: - resources/** win: executableName: rs-bundler + icon: build/icon.ico nsis: artifactName: ${name}-${version}-setup.${ext} shortcutName: ${productName} diff --git a/src/main/index.js b/src/main/index.js index 5ac07e0..2d0a536 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -3,7 +3,7 @@ import lodash from "lodash" global.sendToRenderer = (event, data) => { function serializeIpc(data) { const copy = lodash.cloneDeep(data) - + // remove fns if (!Array.isArray(copy)) { Object.keys(copy).forEach((key) => { @@ -12,7 +12,7 @@ global.sendToRenderer = (event, data) => { } }) } - + return copy } @@ -27,7 +27,6 @@ const { autoUpdater } = require("electron-differential-updater") import open from "open" -import icon from "../../resources/icon.png?asset" import pkg from "../../package.json" import setup from "./setup" @@ -87,8 +86,9 @@ class ElectronApp { width: 450, height: 670, show: false, + resizable: false, autoHideMenuBar: true, - ...(process.platform === "linux" ? { icon } : {}), + icon: "../../resources/icon.png", webPreferences: { preload: path.join(__dirname, "../preload/index.js"), sandbox: false