Skip to content

Commit 91dc3a7

Browse files
committed
fix: update whisper-cli bundling to use platform-specific extra resources and a wildcard in file patterns.
1 parent 0455ae0 commit 91dc3a7

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

application/assets/icon.ico

264 KB
Binary file not shown.

application/package.json

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@
3131
},
3232
"files": [
3333
"src/**/*",
34-
"whisper.cpp/build/bin/whisper-cli",
34+
"whisper.cpp/build/bin/whisper-cli*",
3535
"whisper.cpp/models/ggml-base.bin",
3636
"!whisper.cpp/.git",
3737
"!whisper.cpp/build/**/*.o",
3838
"!whisper.cpp/build/**/*.a"
3939
],
4040
"extraResources": [
41-
{
42-
"from": "whisper.cpp/build/bin/whisper-cli",
43-
"to": "whisper-cli"
44-
},
41+
4542
{
4643
"from": "whisper.cpp/models/ggml-base.bin",
4744
"to": "models/ggml-base.bin"
@@ -64,14 +61,26 @@
6461
"entitlementsInherit": "entitlements.mac.plist",
6562
"extendInfo": {
6663
"NSMicrophoneUsageDescription": "Precisamos de acesso ao microfone para transcrever sua voz."
67-
}
64+
},
65+
"extraResources": [
66+
{
67+
"from": "whisper.cpp/build/bin/whisper-cli",
68+
"to": "whisper-cli"
69+
}
70+
]
6871
},
6972
"win": {
7073
"target": [
7174
"nsis",
7275
"portable"
7376
],
74-
"icon": "assets/icon.ico"
77+
"icon": "assets/icon.ico",
78+
"extraResources": [
79+
{
80+
"from": "whisper.cpp/build/bin/whisper-cli.exe",
81+
"to": "whisper-cli.exe"
82+
}
83+
]
7584
},
7685
"linux": {
7786
"target": [
@@ -80,7 +89,13 @@
8089
],
8190
"icon": "assets/linux",
8291
"category": "Utility",
83-
"desktop": "build/push-to-talk.desktop"
92+
"desktop": "build/push-to-talk.desktop",
93+
"extraResources": [
94+
{
95+
"from": "whisper.cpp/build/bin/whisper-cli",
96+
"to": "whisper-cli"
97+
}
98+
]
8499
}
85100
},
86101
"keywords": [

0 commit comments

Comments
 (0)