-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
176 lines (176 loc) · 5.39 KB
/
package.json
File metadata and controls
176 lines (176 loc) · 5.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"name": "videotool",
"productName": "VideoTool",
"version": "1.3.0",
"description": "强大的跨平台视频处理工具 - 支持 SRT/ASS/VTT 字幕格式互转、视频转码、字幕烧录、音视频合并,内置 ASS 样式编辑器和实时预览",
"main": "dist/main/main/index.cjs",
"author": {
"name": "Binbin",
"email": "piaozhitian@gmail.com"
},
"copyright": "Copyright © 2025 Binbin. All rights reserved.",
"license": "MIT",
"type": "module",
"private": true,
"scripts": {
"dev": "node scripts/dev-safe.cjs",
"dev:concurrent": "concurrently \"pnpm:dev:renderer\" \"pnpm:dev:main\" -k -r --kill-others",
"dev:renderer": "vite",
"dev:main": "cross-env NODE_ENV=development electron .",
"kill-dev": "node scripts/kill-dev.cjs",
"build": "pnpm run build:renderer && pnpm run build:main",
"build:renderer": "vite build",
"build:main": "tsc --build tsconfig.main.json && node -e \"const fs=require('fs');const p='dist/main/main/index.js';if(fs.existsSync(p))fs.renameSync(p,'dist/main/main/index.cjs');const pkgPath='dist/main/package.json';fs.writeFileSync(pkgPath, JSON.stringify({type:'commonjs'}));\"",
"build:mac": "pnpm run build && electron-builder --mac",
"build:mac:universal": "pnpm run build && electron-builder --mac --universal",
"build:win": "pnpm run build && electron-builder --win",
"build:all": "pnpm run build && electron-builder -mw",
"package:mac": "electron-builder --mac --publish never",
"package:win": "electron-builder --win --publish never",
"test": "vitest",
"test:ui": "vitest --ui",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"format": "prettier --write \"src/**/*.{ts,tsx,json,css,scss}\"",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"classnames": "^2.5.1",
"dayjs": "^1.11.13",
"electron-log": "^5.2.4",
"electron-store": "^10.0.0",
"electron-updater": "^6.3.9",
"fluent-ffmpeg": "^2.1.3",
"fs-extra": "^11.2.0",
"i18next": "^24.2.0",
"react": "^18.3.1",
"react-bootstrap": "^2.10.7",
"react-dom": "^18.3.1",
"react-i18next": "^15.2.0",
"react-icons": "^5.4.0",
"react-router-dom": "^7.1.3",
"unzipper": "^0.12.3",
"video.js": "^8.21.2",
"zustand": "^5.0.3"
},
"devDependencies": {
"@types/fluent-ffmpeg": "^2.1.27",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.10.5",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@types/unzipper": "^0.10.11",
"@typescript-eslint/eslint-plugin": "^8.19.1",
"@typescript-eslint/parser": "^8.19.1",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/ui": "^2.1.8",
"bootstrap": "^5.3.3",
"concurrently": "^9.1.2",
"cross-env": "^7.0.3",
"electron": "^34.0.0",
"electron-builder": "^26.0.12",
"eslint": "^9.18.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.1.0",
"prettier": "^3.4.2",
"sass": "^1.83.0",
"typescript": "^5.7.2",
"vite": "^6.0.7",
"vite-plugin-electron": "^0.29.0",
"vite-plugin-electron-renderer": "^0.14.6",
"vitest": "^2.1.8"
},
"build": {
"appId": "com.videotool.app",
"productName": "VideoTool",
"afterPack": "scripts/afterPack.cjs",
"generateUpdatesFilesForAllChannels": false,
"directories": {
"output": "release",
"buildResources": "resources"
},
"files": [
"dist/**/*",
"public/**/*",
"node_modules/**/*",
"!node_modules/@ffmpeg-installer/ffmpeg/**",
"package.json"
],
"extraResources": [
{
"from": "resources/ffmpeg",
"to": "ffmpeg",
"filter": [
"**/*"
]
}
],
"mac": {
"target": [
{
"target": "dmg",
"arch": [
"arm64",
"x64"
]
}
],
"category": "public.app-category.video",
"icon": "resources/icons/icon.icns",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"artifactName": "${productName}-${version}-${arch}.${ext}",
"extendInfo": {
"CFBundleDisplayName": "VideoTool",
"CFBundleName": "VideoTool",
"NSHumanReadableCopyright": "Copyright © 2025 Binbin. All rights reserved."
}
},
"dmg": {
"writeUpdateInfo": true
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
},
{
"target": "portable",
"arch": [
"x64"
]
}
],
"icon": "resources/icons/icon.png",
"legalTrademarks": "Copyright © 2025 Binbin. All rights reserved.",
"requestedExecutionLevel": "asInvoker"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"deleteAppDataOnUninstall": false,
"artifactName": "${productName}-Setup-${version}.${ext}"
},
"portable": {
"artifactName": "${productName}-${version}-Portable.${ext}"
},
"publish": [
{
"provider": "generic",
"url": "https://videotool-updates.oss-cn-beijing.aliyuncs.com/releases"
},
{
"provider": "github",
"owner": "binbin1213",
"repo": "VideoTool"
}
]
}
}