-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
48 lines (48 loc) · 1.35 KB
/
package.json
File metadata and controls
48 lines (48 loc) · 1.35 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
{
"name": "video-compressor",
"version": "1.0.0",
"description": "Compress and trim videos with FFmpeg and smartcut. No Python required after install.",
"author": "",
"main": "main.js",
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"predist": "node scripts/predist.js",
"build-compressor": "py -m pip install --upgrade pyinstaller && py -m PyInstaller --onefile --name compress compress.py && node scripts/copy-compress.js",
"build-trim": "py -m PyInstaller --onefile --name trim trim.py && node scripts/copy-trim.js",
"get-smartcut": "node scripts/get-smartcut.js",
"dist": "npm run predist && npm run build-compressor && npm run build-trim && electron-builder"
},
"build": {
"appId": "com.lookas.videocompressor",
"productName": "VideoCompressor",
"icon": "compress.ico",
"files": ["main.js", "index.html"],
"win": {
"target": "nsis",
"icon": "compress.ico",
"compression": "maximum"
},
"extraResources": [
{
"from": "./bin",
"to": "bin",
"filter": [
"**/*"
]
},
{
"from": "./compress.exe",
"to": "compress.exe"
},
{
"from": "./trim.exe",
"to": "trim.exe"
}
]
},
"devDependencies": {
"electron": "^28.0.0",
"electron-builder": "^26.7.0"
}
}