Skip to content

Commit 0fd9a64

Browse files
committed
fix(release): 发布 1.1.7-rc.202604130913
1 parent f49ceb0 commit 0fd9a64

File tree

5 files changed

+47
-3
lines changed

5 files changed

+47
-3
lines changed

.github/workflows/demucs-runtime-assets.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,24 @@ jobs:
358358
exit 1
359359
fi
360360
361+
PRERELEASE=false
362+
case "$TAG_NAME" in
363+
*-rc|*-beta|*-alpha)
364+
PRERELEASE=true
365+
;;
366+
esac
367+
361368
if gh release view "$TAG_NAME" >/dev/null 2>&1; then
362369
gh release upload "$TAG_NAME" "${assets[@]}" --clobber
363-
gh release edit "$TAG_NAME" --title "$TAG_NAME"
370+
if [ "$PRERELEASE" = "true" ]; then
371+
gh release edit "$TAG_NAME" --title "$TAG_NAME" --prerelease
372+
else
373+
gh release edit "$TAG_NAME" --title "$TAG_NAME"
374+
fi
364375
else
365-
gh release create "$TAG_NAME" "${assets[@]}" --title "$TAG_NAME" --verify-tag
376+
if [ "$PRERELEASE" = "true" ]; then
377+
gh release create "$TAG_NAME" "${assets[@]}" --title "$TAG_NAME" --prerelease --verify-tag
378+
else
379+
gh release create "$TAG_NAME" "${assets[@]}" --title "$TAG_NAME" --verify-tag
380+
fi
366381
fi

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ jobs:
154154
"ffmpeg/win32-x64/ffmpeg.exe",
155155
"ffmpeg/win32-x64/ffprobe.exe",
156156
"demucs/bootstrap/mixtape_demucs_bootstrap.py",
157+
"demucs/bootstrap/beat_this_bridge.py",
157158
"demucs/models/htdemucs.yaml",
158159
"demucs/models/955717e8-8726e21a.th",
159160
"rekordboxDesktopLibrary/bridge.py",
@@ -454,6 +455,7 @@ jobs:
454455
"ffmpeg/darwin/ffmpeg"
455456
"ffmpeg/darwin/ffprobe"
456457
"demucs/bootstrap/mixtape_demucs_bootstrap.py"
458+
"demucs/bootstrap/beat_this_bridge.py"
457459
"demucs/models/htdemucs.yaml"
458460
"demucs/models/955717e8-8726e21a.th"
459461
"rekordboxDesktopLibrary/bridge.py"

electron-builder.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ extraResources:
1515
to: licenses/THIRD_PARTY_NOTICES.md
1616
- from: LICENSE
1717
to: licenses/LICENSE
18+
- from: scripts/beat_this_bridge.py
19+
to: demucs/bootstrap/beat_this_bridge.py
1820
- from: vendor/rekordbox-desktop-runtime
1921
to: rekordboxDesktopRuntime
2022
- from: resources/rekordboxDesktopLibrary

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frkb",
3-
"version": "1.1.7-rc.202604111221",
3+
"version": "1.1.7-rc.202604130913",
44
"description": "Rapid Audio Organization Tool",
55
"license": "GPL-2.0-or-later",
66
"main": "./out/main/index.js",
@@ -27,6 +27,10 @@
2727
{
2828
"from": "resources/rekordboxDesktopLibrary",
2929
"to": "rekordboxDesktopLibrary"
30+
},
31+
{
32+
"from": "scripts/beat_this_bridge.py",
33+
"to": "demucs/bootstrap/beat_this_bridge.py"
3034
}
3135
],
3236
"appId": "com.electron.frkb",

src/main/workers/beatThisAnalyzer.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ type PendingRequest = {
5353
const ENV_BEAT_THIS_BRIDGE = 'FRKB_BEAT_THIS_BRIDGE'
5454
const ENV_BEAT_THIS_DBN = 'FRKB_BEAT_THIS_DBN'
5555
const LOCAL_BRIDGE_PATH = 'scripts/beat_this_bridge.py'
56+
const PACKAGED_BRIDGE_RELATIVE_PATH = 'demucs/bootstrap/beat_this_bridge.py'
5657
const DEFAULT_WINDOW_SEC = 30
5758
const DEFAULT_MAX_SCAN_SEC = 120
5859
const WINDOW_MIN_DURATION_SEC = 8
@@ -94,6 +95,26 @@ const resolveBridgeScriptPath = () => {
9495
return envBridge
9596
}
9697

98+
const packagedBridge = normalizeBeatThisFsPath(
99+
path.join(normalizeBeatThisFsPath(process.resourcesPath || ''), PACKAGED_BRIDGE_RELATIVE_PATH)
100+
)
101+
if (packagedBridge && fs.existsSync(packagedBridge)) {
102+
cachedBridgePath = packagedBridge
103+
return packagedBridge
104+
}
105+
106+
const unpackedBridge = normalizeBeatThisFsPath(
107+
path.join(
108+
normalizeBeatThisFsPath(process.resourcesPath || ''),
109+
'app.asar.unpacked',
110+
LOCAL_BRIDGE_PATH
111+
)
112+
)
113+
if (unpackedBridge && fs.existsSync(unpackedBridge)) {
114+
cachedBridgePath = unpackedBridge
115+
return unpackedBridge
116+
}
117+
97118
const localBridge = path.join(resolveBeatThisProjectRoot(), LOCAL_BRIDGE_PATH)
98119
cachedBridgePath = localBridge
99120
return localBridge

0 commit comments

Comments
 (0)