-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
173 lines (173 loc) · 6.76 KB
/
package.json
File metadata and controls
173 lines (173 loc) · 6.76 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
{
"name": "whispermac",
"version": "1.1.0",
"description": "AI-powered dictation for Mac using multiple transcription engines",
"author": "Explosion Scratch",
"main": "dist/main.js",
"scripts": {
"fullclean": "rm -rf dist .crush *.log vendor release build && bun install",
"clear:userdata": "rm -rf \"$HOME/Library/Application Support/WhisperMac\" \"$HOME/Library/Application Support/Electron\" \"$HOME/Library/Application Support/whispermac\" \"$HOME/Library/Application Support/electron\" .whispermac-data",
"build": "tsc && cd src/renderer-app && bun run build && cd ../.. && node scripts/copy-assets.js && node scripts/prep-vad-assets.js",
"killothers": "echo 'Noop'",
"start": "bun run killothers && electron dist/main.js",
"dev": "nodemon --watch src --watch scripts --watch package.json --watch tsconfig.json --ext ts,js,json,html,css --exec \"bun run single-dev\"",
"single-dev": "concurrently --raw -m 1 \"rm -rf dist\" \"bun run killothers\" \"bun run build\" \"bun run start\" --names \"cleanup, kill port, build, dev\"",
"pack": "electron-builder",
"dist": "electron-builder --publish=never",
"setup:plugins": "node scripts/setup-plugins.js",
"prep": "bun run setup:plugins && node scripts/prep-vad-assets.js && bun scripts/download-photon.js && node scripts/build-get-selection.js && bun run build:native && bun run build:parakeet && bun run build:cli && bun run icons",
"build:native": "cd native/mac-input && bunx node-gyp rebuild && cd ../audio-capture && bunx node-gyp rebuild",
"build:parakeet": "cd native/parakeet-backend && cargo build --release",
"postinstall": "bun run prep",
"icons": "node scripts/generate-icons.js",
"bundleid": "mdls -name kMDItemCFBundleIdentifier -r release/mac-arm64/WhisperMac.app || mdls -name kMDItemCFBundleIdentifier -r release/mac-x64/WhisperMac.app",
"removequarantine": "xattr -cr release/mac-arm64/WhisperMac.app && xattr -cr release/mac-x64/WhisperMac.app",
"resetperms": "tccutil reset All com.whispermac.app",
"strip:release": "chmod +x scripts/strip-release.sh && ./scripts/strip-release.sh",
"build:mac": "bun run build && bun run strip:release && electron-builder --publish=never",
"build:mac:arm64": "bun run build && bun run strip:release && electron-builder --arm64 --publish=never",
"build:mac:x64": "bun run build && bun run strip:release && electron-builder --x64 --publish=never",
"install:app": "bun scripts/install-app.ts",
"build:dev": "rm -rf /Applications/WhisperMac.app && bun run build:mac && bun run removequarantine && bun run resetperms && rs release/mac-arm64/WhisperMac.app /Applications && osascript -e 'tell application \"WhisperMac\" to activate' && tail -f ~/Library/Logs/whispermac/main.log",
"pack:prod": "NODE_ENV=production bun install && electron-builder --dir",
"start:prod": "rm -rf release && rm -rf /Applications/WhisperMac.app && bun run killothers && bun run build:mac && rs release/mac-arm64/WhisperMac.app /Applications && osascript -e 'tell application \"WhisperMac\" to activate' && tail -f ~/Library/Logs/whispermac/main.log",
"build:cli": "bun build ./src/cli/index.ts --compile --outfile bin/whisper-mac-cli",
"test:cli": "bun test src/cli/cli.test.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/explosion-scratch/whisper-mac.git"
},
"dependencies": {
"@ricky0123/vad-node": "^0.0.3",
"@ricky0123/vad-web": "^0.0.22",
"adm-zip": "^0.5.16",
"commander": "^14.0.2",
"electron-liquid-glass": "^1.1.1",
"electron-log": "^5.4.3",
"isomorphic-fetch": "^3.0.0",
"keytar": "^7.9.0",
"node-addon-api": "^7.1.0",
"onnxruntime-node": "^1.23.2",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/adm-zip": "^0.5.7",
"@types/isomorphic-fetch": "^0.0.39",
"@types/node": "^24.2.1",
"@types/uuid": "^9.0.0",
"@types/ws": "^8.5.0",
"concurrently": "^8.0.0",
"electron": "^25.0.0",
"electron-builder": "^24.0.0",
"esbuild": "^0.27.1",
"nodemon": "^3.0.0",
"sharp": "^0.34.3",
"typescript": "^5.0.0"
},
"build": {
"appId": "com.whispermac.app",
"productName": "WhisperMac",
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"assets/**/*",
"package.json",
"!**/*.map",
"!**/*.map.js",
"!**/onnxruntime-web/**",
"!**/onnxruntime-node/bin/napi-v6/linux/**",
"!**/onnxruntime-node/bin/napi-v6/win32/**",
"!dist/renderer-app/ort.all.*",
"!dist/renderer-app/ort.bundle.*",
"!dist/renderer-app/ort.js",
"!dist/renderer-app/ort.mjs",
"!dist/renderer-app/ort.node.*",
"!dist/renderer-app/ort.wasm.bundle.*",
"!dist/renderer-app/ort.wasm.js",
"!dist/renderer-app/ort.wasm.mjs",
"!dist/renderer-app/ort.webgl.*",
"!dist/renderer-app/ort.webgpu.*",
"!dist/renderer-app/ort-wasm-simd-threaded.asyncify.*",
"!dist/renderer-app/ort-wasm-simd-threaded.jsep.*"
],
"asar": true,
"asarUnpack": [
"dist/native/*.node",
"node_modules/onnxruntime-node/**/*.node"
],
"afterPack": "./scripts/afterPack.js",
"compression": "maximum",
"extraResources": [
{
"from": "vendor/yap",
"to": "yap",
"filter": [
"**/*"
]
},
{
"from": "vendor/whisper-cpp",
"to": "whisper-cpp",
"filter": [
"whisper-cli",
"whisper-cli-metal"
]
},
{
"from": "vendor/vosk",
"to": "vosk",
"filter": [
"**/*"
]
},
{
"from": "native/parakeet-backend/target/release/parakeet-backend",
"to": "parakeet-backend"
}
],
"extraFiles": [
{
"from": "bin/whisper-mac-cli",
"to": "MacOS/transcribe"
}
],
"mac": {
"category": "public.app-category.productivity",
"target": [
{
"target": "dir",
"arch": [
"arm64",
"x64"
]
}
],
"artifactName": "${productName}-${version}-mac-${arch}.${ext}",
"icon": "build/icons/WhisperMac.icns",
"identity": null,
"extendInfo": {
"NSMicrophoneUsageDescription": "WhisperMac needs microphone access to capture your voice for accurate speech-to-text transcription and dictation.",
"NSAccessibilityUsageDescription": "WhisperMac needs accessibility permissions to automatically insert transcribed text where you're typing, providing seamless dictation workflow."
}
},
"win": {},
"linux": {},
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
}
}
}