Skip to content

Commit 75cc283

Browse files
committed
Use BRAND_ASSET_PATHS.developmentDesktopIconPng in electron-launcher instead of hardcoded path
1 parent 87dd61f commit 75cc283

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/desktop/scripts/electron-launcher.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import { createRequire } from "node:module";
1717
import { dirname, join, resolve } from "node:path";
1818
import { fileURLToPath } from "node:url";
1919

20+
import { BRAND_ASSET_PATHS } from "../../../scripts/lib/brand-assets.ts";
21+
2022
const isDevelopment = Boolean(process.env.VITE_DEV_SERVER_URL);
2123
const APP_DISPLAY_NAME = isDevelopment ? "T3 Code (Dev)" : "T3 Code (Alpha)";
2224
const APP_BUNDLE_ID = isDevelopment ? "com.t3tools.t3code.dev" : "com.t3tools.t3code";
@@ -26,7 +28,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
2628
export const desktopDir = resolve(__dirname, "..");
2729
const repoRoot = resolve(desktopDir, "..", "..");
2830
const defaultIconPath = join(desktopDir, "resources", "icon.icns");
29-
const developmentMacIconPngPath = join(repoRoot, "assets", "dev", "blueprint-macos-1024.png");
31+
const developmentMacIconPngPath = join(repoRoot, BRAND_ASSET_PATHS.developmentDesktopIconPng);
3032

3133
function setPlistString(plistPath, key, value) {
3234
const replaceResult = spawnSync("plutil", ["-replace", key, "-string", value, plistPath], {

0 commit comments

Comments
 (0)