Merge pull request #3 from Syngnat/release/0.1.0

👷 ci(release): 增强构建脚本的兼容性与调试信息
This commit is contained in:
Syngnat
2026-02-02 12:24:32 +08:00
committed by GitHub

View File

@@ -52,13 +52,38 @@ jobs:
if: runner.os == 'macOS'
run: |
cd build/bin
zip -r ../../${{ matrix.artifact_name }}.zip ${{ matrix.artifact_name }}.app
echo "📂 Listing build/bin contents:"
ls -F
# Find the .app bundle (safest way)
APP_NAME=$(find . -maxdepth 1 -name "*.app" | head -n 1)
if [ -z "$APP_NAME" ]; then
echo "❌ No .app found!"
exit 1
fi
echo "📦 Zipping $APP_NAME..."
zip -r "../../${{ matrix.artifact_name }}.zip" "$APP_NAME"
- name: Package (Windows)
if: runner.os == 'Windows'
shell: bash
run: |
mv build/bin/${{ matrix.artifact_name }}.exe .
cd build/bin
echo "📂 Listing build/bin contents:"
ls -F
# Find the .exe (safest way)
EXE_NAME=$(find . -maxdepth 1 -name "*.exe" | head -n 1)
if [ -z "$EXE_NAME" ]; then
echo "❌ No .exe found!"
exit 1
fi
echo "📦 Moving $EXE_NAME..."
mv "$EXE_NAME" "../../${{ matrix.artifact_name }}.exe"
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
@@ -68,4 +93,4 @@ jobs:
${{ matrix.artifact_name }}.zip
${{ matrix.artifact_name }}.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}