File tree Expand file tree Collapse file tree 5 files changed +47
-3
lines changed
Expand file tree Collapse file tree 5 files changed +47
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ type PendingRequest = {
5353const ENV_BEAT_THIS_BRIDGE = 'FRKB_BEAT_THIS_BRIDGE'
5454const ENV_BEAT_THIS_DBN = 'FRKB_BEAT_THIS_DBN'
5555const LOCAL_BRIDGE_PATH = 'scripts/beat_this_bridge.py'
56+ const PACKAGED_BRIDGE_RELATIVE_PATH = 'demucs/bootstrap/beat_this_bridge.py'
5657const DEFAULT_WINDOW_SEC = 30
5758const DEFAULT_MAX_SCAN_SEC = 120
5859const 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
You can’t perform that action at this time.
0 commit comments