Fixed icon paths after build

This commit is contained in:
2022-07-07 11:28:51 +02:00
parent f8c2d56c8f
commit f6d1ed0477
4 changed files with 13 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { blenderPath, blenderScriptPath, dataPath, templatePath } from "./paths";
import { blenderPath, blenderScriptPath, dataPath, templatePath, finsishedIconPath } from "./paths";
import {spawn} from "child_process";
import logger from "./logger";
import { setBlenderLoading, setBlenderStatus } from "./ui/menu";
@@ -120,7 +120,7 @@ function startBlender() {
// TODO: only show notification if not in do not disturb mode, currently not working. Details: https://github.com/felixrieseberg/macos-notification-state/issues/30
new Notification("Render Finished", {
body: "Rendering finished successfully!",
icon: "../assets/render_finished_icon.png"
icon: finsishedIconPath
}).onclick = function() {
ipcRenderer.send("openApp");
}

View File

@@ -18,4 +18,6 @@ export function platformCharacter() {
export const blenderPath = path.join(appPath, "dependencies", platformFolder, "blender", "blender");
export const templatePath = path.join(appPath, "dependencies", "template.blend");
export const blenderScriptPath = path.join(appPath, "dependencies", "blenderScript.py");
export const blenderScriptPath = path.join(appPath, "dependencies", "blenderScript.py");
export const finsishedIconPath = path.join(appPath, "assets", "render_finished_icon.png");