mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix Windows release packaging: replace rsync/7z with cp/zip
Some checks are pending
Build / Build (arm64) (push) Waiting to run
Build / Build (x86-64) (push) Waiting to run
Build / Build (macOS arm64) (push) Waiting to run
Build / Build (windows-arm64) (push) Waiting to run
Build / Build (windows-x86-64) (push) Waiting to run
Security / CodeQL (C/C++) (push) Waiting to run
Security / Semgrep (push) Waiting to run
Security / Sanitizer Build (ASan/UBSan) (push) Waiting to run
Some checks are pending
Build / Build (arm64) (push) Waiting to run
Build / Build (x86-64) (push) Waiting to run
Build / Build (macOS arm64) (push) Waiting to run
Build / Build (windows-arm64) (push) Waiting to run
Build / Build (windows-x86-64) (push) Waiting to run
Security / CodeQL (C/C++) (push) Waiting to run
Security / Semgrep (push) Waiting to run
Security / Sanitizer Build (ASan/UBSan) (push) Waiting to run
MSYS2 doesn't have rsync or 7z by default. Use cp -r for assets and install zip package for archive creation.
This commit is contained in:
parent
e31c2ffda8
commit
624744da86
1 changed files with 13 additions and 6 deletions
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
|
|
@ -249,7 +249,9 @@ jobs:
|
|||
|
||||
- name: Install optional packages
|
||||
shell: msys2 {0}
|
||||
run: pacman -S --noconfirm --needed ${{ matrix.prefix }}-stormlib || true
|
||||
run: |
|
||||
pacman -S --noconfirm --needed ${{ matrix.prefix }}-stormlib || true
|
||||
pacman -S --noconfirm --needed zip
|
||||
|
||||
- name: Configure
|
||||
shell: msys2 {0}
|
||||
|
|
@ -292,8 +294,14 @@ jobs:
|
|||
cp tools/asset_pipeline_gui.py "${STAGING}/"
|
||||
|
||||
# Assets (exclude proprietary music)
|
||||
rsync -a --exclude='Original Music' build/bin/assets/ "${STAGING}/assets/" || \
|
||||
cp -r build/bin/assets "${STAGING}/assets"
|
||||
mkdir -p "${STAGING}/assets"
|
||||
for d in build/bin/assets/*/; do
|
||||
dirname="$(basename "$d")"
|
||||
[ "$dirname" = "Original Music" ] && continue
|
||||
cp -r "$d" "${STAGING}/assets/"
|
||||
done
|
||||
# Copy top-level asset files
|
||||
cp build/bin/assets/* "${STAGING}/assets/" 2>/dev/null || true
|
||||
|
||||
# Data directory (git-tracked files only)
|
||||
git ls-files Data/ | while read -r f; do
|
||||
|
|
@ -301,9 +309,8 @@ jobs:
|
|||
cp "$f" "${STAGING}/$f"
|
||||
done
|
||||
|
||||
# Create ZIP using 7z (available in MSYS2)
|
||||
7z a -tzip "${STAGING}.zip" "${STAGING}" || \
|
||||
(cd "${STAGING}" && zip -r "../${STAGING}.zip" .)
|
||||
# Create ZIP
|
||||
zip -r "${STAGING}.zip" "${STAGING}"
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue