🪟 windows build
This commit is contained in:
@@ -9,7 +9,9 @@
|
|||||||
"preview": "electron-vite preview",
|
"preview": "electron-vite preview",
|
||||||
"typecheck": "tsc --noEmit -p tsconfig.node.json && tsc --noEmit -p tsconfig.web.json",
|
"typecheck": "tsc --noEmit -p tsconfig.node.json && tsc --noEmit -p tsconfig.web.json",
|
||||||
"dev:demo": "vite --config vite.demo.config.ts",
|
"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": {
|
"devDependencies": {
|
||||||
"@electron-toolkit/tsconfig": "^1.0.1",
|
"@electron-toolkit/tsconfig": "^1.0.1",
|
||||||
@@ -53,6 +55,10 @@
|
|||||||
"icon": "resources/icon.icns",
|
"icon": "resources/icon.icns",
|
||||||
"target": [{ "target": "dmg", "arch": "universal" }]
|
"target": [{ "target": "dmg", "arch": "universal" }]
|
||||||
},
|
},
|
||||||
|
"win": {
|
||||||
|
"icon": "resources/icon.ico",
|
||||||
|
"target": [{ "target": "nsis", "arch": ["x64"] }]
|
||||||
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"out/**/*"
|
"out/**/*"
|
||||||
],
|
],
|
||||||
|
|||||||
BIN
resources/icon.ico
Normal file
BIN
resources/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 166 KiB |
@@ -21,7 +21,7 @@ try {
|
|||||||
export const getConfigDir = (): string => CONFIG_DIR
|
export const getConfigDir = (): string => CONFIG_DIR
|
||||||
|
|
||||||
export const getDraftRoot = (): string =>
|
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 =>
|
export const getApiKey = (): string | undefined =>
|
||||||
_config.apiKey ?? process.env.ANTHROPIC_API_KEY
|
_config.apiKey ?? process.env.ANTHROPIC_API_KEY
|
||||||
|
|||||||
Reference in New Issue
Block a user