Update GitHub release automation to folderize and add icon

This commit is contained in:
rambros 2026-02-22 16:33:33 +05:30
parent 4eaee28868
commit b679545e26
2 changed files with 7 additions and 14 deletions

View file

@ -43,24 +43,16 @@ jobs:
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: | run: |
chmod +x ${{ matrix.executable_path }} chmod +x ${{ matrix.executable_path }}
# Generate launcher script mkdir -p ${{ matrix.artifact_name }}
cat << 'EOF' > dist/Launch-Reaper.sh cp ${{ matrix.executable_path }} ${{ matrix.artifact_name }}/
#!/bin/bash zip -r ${{ matrix.asset_name }} ${{ matrix.artifact_name }}
BASEDIR=$(dirname "$0")
cd "$BASEDIR"
./fluxer-reaper
EOF
chmod +x dist/Launch-Reaper.sh
zip -j ${{ matrix.asset_name }} ${{ matrix.executable_path }} dist/Launch-Reaper.sh config.example.yaml
- name: Prepare Release Asset (Windows) - name: Prepare Release Asset (Windows)
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
run: | run: |
# Generate launcher script mkdir -p ${{ matrix.artifact_name }}
echo '@echo off' > dist\Launch-Reaper.bat cp ${{ matrix.executable_path }} ${{ matrix.artifact_name }}/
echo 'cd /d "%~dp0"' >> dist\Launch-Reaper.bat powershell Compress-Archive -Path "${{ matrix.artifact_name }}" -DestinationPath "${{ matrix.asset_name }}"
echo 'fluxer-reaper.exe' >> dist\Launch-Reaper.bat
powershell Compress-Archive -Path "${{ matrix.executable_path }}", "dist\Launch-Reaper.bat", "config.example.yaml" -DestinationPath "${{ matrix.asset_name }}"
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4

View file

@ -39,4 +39,5 @@ exe = EXE(
target_arch=None, target_arch=None,
codesign_identity=None, codesign_identity=None,
entitlements_file=None, entitlements_file=None,
icon='fluxer-reaper-icon.png',
) )