Fix production mode: resolve static/data paths relative to exe location, include static/ in release packages
Some checks failed
Release / Build Linux (x86_64) (push) Has been cancelled
Release / Build macOS (x86_64) (push) Has been cancelled
Release / Build Windows (x86_64) (push) Has been cancelled
Release / Create Release (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
skepsismusic
2026-02-06 00:40:45 +01:00
parent cd1cb27d49
commit f5bdf461ba
3 changed files with 36 additions and 10 deletions

View File

@@ -73,6 +73,7 @@ jobs:
RELEASE_DIR="${{ matrix.asset_name }}-${{ github.ref_name }}"
mkdir -p "$RELEASE_DIR"
cp "backend/target/${{ matrix.target }}/release/ironpad" "$RELEASE_DIR/"
cp -r backend/static "$RELEASE_DIR/static"
cp README.md LICENSE "$RELEASE_DIR/"
tar czf "$RELEASE_DIR.tar.gz" "$RELEASE_DIR"
echo "ASSET=$RELEASE_DIR.tar.gz" >> $GITHUB_ENV
@@ -84,6 +85,7 @@ jobs:
RELEASE_DIR="${{ matrix.asset_name }}-${{ github.ref_name }}"
mkdir -p "$RELEASE_DIR"
cp "backend/target/${{ matrix.target }}/release/ironpad.exe" "$RELEASE_DIR/"
cp -r backend/static "$RELEASE_DIR/static"
cp README.md LICENSE "$RELEASE_DIR/"
7z a "$RELEASE_DIR.zip" "$RELEASE_DIR"
echo "ASSET=$RELEASE_DIR.zip" >> $GITHUB_ENV