chore: remove some external resource bundle in electron
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
2ca6d807e3
commit
4acb8e4ca5
|
|
@ -4,6 +4,6 @@ import { fileURLToPath } from "node:url"
|
|||
const __dirname = fileURLToPath(new URL(".", import.meta.url))
|
||||
const iconMap = {
|
||||
prod: path.join(__dirname, "../../resources/icon.png"),
|
||||
dev: path.join(__dirname, "../../resources/icon-dev.png"),
|
||||
dev: path.join(__dirname, "../../static/icon-dev.png"),
|
||||
}
|
||||
export const getIconPath = () => iconMap[process.env.NODE_ENV === "development" ? "dev" : "prod"]
|
||||
|
|
|
|||
|
|
@ -126,8 +126,8 @@ const config: ForgeConfig = {
|
|||
new MakerZIP({}, ["darwin"]),
|
||||
new MakerDMG({
|
||||
overwrite: true,
|
||||
background: "resources/dmg-background.png",
|
||||
icon: "resources/dmg-icon.icns",
|
||||
background: "static/dmg-background.png",
|
||||
icon: "static/dmg-icon.icns",
|
||||
iconSize: 160,
|
||||
additionalDMGOptions: {
|
||||
window: {
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 914 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 332 KiB After Width: | Height: | Size: 332 KiB |
Loading…
Reference in New Issue