🪟 windows build

This commit is contained in:
2026-03-16 22:39:19 +10:00
parent 58349c2b32
commit 014f88522b
3 changed files with 8 additions and 2 deletions

View File

@@ -9,7 +9,9 @@
"preview": "electron-vite preview",
"typecheck": "tsc --noEmit -p tsconfig.node.json && tsc --noEmit -p tsconfig.web.json",
"dev:demo": "vite --config vite.demo.config.ts",
"package": "npm run build && electron-builder --mac"
"package": "npm run build && electron-builder --mac",
"package:win": "npm run build && electron-builder --win",
"package:linux": "npm run build && electron-builder --linux"
},
"devDependencies": {
"@electron-toolkit/tsconfig": "^1.0.1",
@@ -53,6 +55,10 @@
"icon": "resources/icon.icns",
"target": [{ "target": "dmg", "arch": "universal" }]
},
"win": {
"icon": "resources/icon.ico",
"target": [{ "target": "nsis", "arch": ["x64"] }]
},
"files": [
"out/**/*"
],

BIN
resources/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

View File

@@ -21,7 +21,7 @@ try {
export const getConfigDir = (): string => CONFIG_DIR
export const getDraftRoot = (): string =>
_config.projectPath ?? process.env.DRAFT_PATH ?? '/Users/pori/WebstormProjects/hohoff/draft'
_config.projectPath ?? process.env.DRAFT_PATH ?? join(homedir(), 'Documents', 'hohoff-draft')
export const getApiKey = (): string | undefined =>
_config.apiKey ?? process.env.ANTHROPIC_API_KEY