Skip to content

Commit b17ac23

Browse files
committed
fix(mac): 修正通用变速库资源路径
1 parent b0a1a23 commit b17ac23

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frkb",
3-
"version": "1.2.4-rc.202608290037",
3+
"version": "1.2.5-rc.202608290118",
44
"description": "Rapid Audio Organization Tool",
55
"license": "PolyForm-Noncommercial-1.0.0",
66
"main": "./out/main/index.js",

‎src/main/nativeModuleSetup.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ if (process.platform === 'win32' || process.platform === 'darwin') {
2020
const libraryName = process.platform === 'darwin' ? 'librubberband.3.dylib' : 'rubberband-2.dll'
2121
const candidates = [
2222
path.join(process.cwd(), 'vendor', 'r3-stretch', platformDir),
23+
...(process.platform === 'darwin' && process.resourcesPath
24+
? [path.join(process.resourcesPath, 'r3-stretch', platformDir)]
25+
: []),
2326
path.join(path.dirname(process.execPath), 'resources', 'r3-stretch', platformDir)
2427
]
2528
for (const directory of candidates) {

0 commit comments

Comments
 (0)