Skip to content

Commit 71bc496

Browse files
committed
打包分发构建问题
1 parent b2f7844 commit 71bc496

File tree

11 files changed

+523
-547
lines changed

11 files changed

+523
-547
lines changed

.DS_Store

2 KB
Binary file not shown.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
electron_mirror=https://npmmirror.com/mirrors/electron/
22
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
3+
shamefully-hoist=true

electron-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appId: com.electron.app
2-
productName: electron-app
2+
productName: Annotate Tree
33
directories:
44
buildResources: build
55
files:
@@ -12,7 +12,7 @@ files:
1212
asarUnpack:
1313
- resources/**
1414
win:
15-
executableName: electron-app
15+
executableName: Annotate Tree
1616
nsis:
1717
artifactName: ${name}-${version}-setup.${ext}
1818
shortcutName: ${productName}

electron.vite.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Author : itchaox
44
* @Date : 2024-07-06 11:28
55
* @LastAuthor : itchaox
6-
* @LastTime : 2024-07-06 13:55
6+
* @LastTime : 2024-07-12 10:04
77
* @desc :
88
*/
99
import { resolve } from 'path'
@@ -18,7 +18,10 @@ export default defineConfig({
1818
plugins: [externalizeDepsPlugin()]
1919
},
2020
preload: {
21-
plugins: [externalizeDepsPlugin()]
21+
plugins: [externalizeDepsPlugin()],
22+
build: {
23+
outDir: 'out/preload'
24+
}
2225
},
2326
renderer: {
2427
resolve: {

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "electron-app",
3-
"version": "1.0.0",
4-
"description": "An Electron application with Vue and TypeScript",
2+
"name": "Annotate-Tree",
3+
"version": "0.1.1",
4+
"description": "A tool designed to assist in generating annotated folder trees",
55
"main": "./out/main/index.js",
66
"author": "example.com",
7-
"homepage": "https://electron-vite.org",
7+
"homepage": "https://github.com/itchaox/annotate-tree",
88
"scripts": {
99
"format": "prettier --write .",
1010
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix",
@@ -13,11 +13,11 @@
1313
"typecheck": "npm run typecheck:node && npm run typecheck:web",
1414
"start": "electron-vite preview",
1515
"dev": "electron-vite dev -w",
16-
"build": "npm run typecheck && electron-vite build",
16+
"build": "electron-vite build",
1717
"postinstall": "electron-builder install-app-deps",
1818
"build:unpack": "npm run build && electron-builder --dir",
1919
"build:win": "npm run build && electron-builder --win",
20-
"build:mac": "npm run build && electron-builder --mac",
20+
"build:mac": "npm run build && electron-builder --mac --config",
2121
"build:linux": "npm run build && electron-builder --linux"
2222
},
2323
"dependencies": {
@@ -31,9 +31,7 @@
3131
"pinia": "^2.1.7",
3232
"pinia-plugin-persistedstate": "^3.2.1",
3333
"string-width": "^4.2.3",
34-
"vue-virtual-scroller": "2.0.0-beta.8"
35-
},
36-
"devDependencies": {
34+
"vue-virtual-scroller": "2.0.0-beta.8",
3735
"@electron-toolkit/eslint-config": "^1.0.2",
3836
"@electron-toolkit/eslint-config-ts": "^2.0.0",
3937
"@electron-toolkit/tsconfig": "^1.0.1",
@@ -42,8 +40,6 @@
4240
"@vitejs/plugin-vue": "^5.0.5",
4341
"@vue/eslint-config-prettier": "^9.0.0",
4442
"@vue/eslint-config-typescript": "^13.0.0",
45-
"electron": "^31.0.2",
46-
"electron-builder": "^24.13.3",
4743
"electron-vite": "^2.3.0",
4844
"eslint": "^8.57.0",
4945
"eslint-plugin-vue": "^9.26.0",
@@ -56,5 +52,9 @@
5652
"vite": "^5.3.1",
5753
"vue": "^3.4.30",
5854
"vue-tsc": "^2.0.22"
55+
},
56+
"devDependencies": {
57+
"electron": "^31.0.2",
58+
"electron-builder": "^24.13.3"
5959
}
6060
}

0 commit comments

Comments
 (0)