update ico

This commit is contained in:
srgooglo 2023-11-15 03:07:15 +01:00
parent 96b6d8b4a8
commit aba9945dc5
2 changed files with 6 additions and 5 deletions

View File

@ -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}

View File

@ -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