Skip to content

Commit 5a96768

Browse files
WentTheFoxclaude
andcommitted
Fix CI: use ./Refs/Plugins instead of \$BEATSABER_PATH
init-beatsaber exports no env vars; its default path is ./Refs, so plugin DLLs live at ./Refs/Plugins relative to the workspace. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 426d773 commit 5a96768

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/Build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ jobs:
3838
env:
3939
GH_TOKEN: ${{ github.token }}
4040
run: |
41+
PLUGIN_DIR="./Refs/Plugins"
42+
mkdir -p "$PLUGIN_DIR"
4143
download_mod() {
4244
local dll="$1" repo="$2" tag="$3"
43-
if [ -f "$BEATSABER_PATH/Plugins/${dll}.dll" ]; then
45+
if [ -f "${PLUGIN_DIR}/${dll}.dll" ]; then
4446
echo "${dll}.dll already present, skipping"
4547
return
4648
fi
@@ -56,7 +58,7 @@ jobs:
5658
echo "::error::${dll}.dll not found in release archive for ${repo} ${tag}"
5759
exit 1
5860
fi
59-
cp "$found" "$BEATSABER_PATH/Plugins/${dll}.dll"
61+
cp "$found" "${PLUGIN_DIR}/${dll}.dll"
6062
echo "Installed ${dll}.dll"
6163
}
6264
DP_VER=$(jq -r '.dependsOn.DataPuller | ltrimstr("^") | ltrimstr("~")' manifest.json)

.github/workflows/PR_Build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ jobs:
3838
env:
3939
GH_TOKEN: ${{ github.token }}
4040
run: |
41+
PLUGIN_DIR="./Refs/Plugins"
42+
mkdir -p "$PLUGIN_DIR"
4143
download_mod() {
4244
local dll="$1" repo="$2" tag="$3"
43-
if [ -f "$BEATSABER_PATH/Plugins/${dll}.dll" ]; then
45+
if [ -f "${PLUGIN_DIR}/${dll}.dll" ]; then
4446
echo "${dll}.dll already present, skipping"
4547
return
4648
fi
@@ -56,7 +58,7 @@ jobs:
5658
echo "::error::${dll}.dll not found in release archive for ${repo} ${tag}"
5759
exit 1
5860
fi
59-
cp "$found" "$BEATSABER_PATH/Plugins/${dll}.dll"
61+
cp "$found" "${PLUGIN_DIR}/${dll}.dll"
6062
echo "Installed ${dll}.dll"
6163
}
6264
DP_VER=$(jq -r '.dependsOn.DataPuller | ltrimstr("^") | ltrimstr("~")' manifest.json)

.github/workflows/Release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333
env:
3434
GH_TOKEN: ${{ github.token }}
3535
run: |
36+
PLUGIN_DIR="./Refs/Plugins"
37+
mkdir -p "$PLUGIN_DIR"
3638
download_mod() {
3739
local dll="$1" repo="$2" tag="$3"
38-
if [ -f "$BEATSABER_PATH/Plugins/${dll}.dll" ]; then
40+
if [ -f "${PLUGIN_DIR}/${dll}.dll" ]; then
3941
echo "${dll}.dll already present, skipping"
4042
return
4143
fi
@@ -51,7 +53,7 @@ jobs:
5153
echo "::error::${dll}.dll not found in release archive for ${repo} ${tag}"
5254
exit 1
5355
fi
54-
cp "$found" "$BEATSABER_PATH/Plugins/${dll}.dll"
56+
cp "$found" "${PLUGIN_DIR}/${dll}.dll"
5557
echo "Installed ${dll}.dll"
5658
}
5759
DP_VER=$(jq -r '.dependsOn.DataPuller | ltrimstr("^") | ltrimstr("~")' manifest.json)

0 commit comments

Comments
 (0)