Skip to content

Commit

Permalink
chore: remove some external resource bundle in electron
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Nov 5, 2024
1 parent 2ca6d80 commit 4acb8e4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/main/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes

0 comments on commit 4acb8e4

Please sign in to comment.