feat: enhance build process and add local build scripts for Windows and Linux

This commit is contained in:
2026-04-22 03:53:50 +10:00
parent 21e895efff
commit b8a126fd69
5 changed files with 33 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ jobs:
if (Test-Path dist-electron) { Remove-Item -Recurse -Force dist-electron }
- name: Build Electron app
run: npm run build:win
run: npm run build:local -- --win
env:
GH_TOKEN: ${{ secrets.GHTOKEN }}
@@ -166,7 +166,7 @@ jobs:
rm -rf cinny/dist dist-electron
- name: Build Electron app
run: npm run build:linux
run: npm run build:local -- --linux
env:
GH_TOKEN: ${{ secrets.GHTOKEN }}
@@ -175,6 +175,12 @@ jobs:
with:
name: Paarrot-Linux-x64.AppImage
path: dist-electron/Paarrot-*.AppImage
- name: Upload latest-linux.yml
uses: actions/upload-artifact@v3
with:
name: latest-linux.yml
path: dist-electron/latest-linux.yml
create-release:
runs-on: ubuntu-latest
@@ -232,7 +238,7 @@ jobs:
- name: Prepare release files
run: |
mkdir -p release-files
find artifacts -type f \( -name "*.exe" -o -name "*.AppImage" -o -name "*.nupkg" -o -name "RELEASES*" \) -exec cp {} release-files/ \;
find artifacts -type f \( -name "*.exe" -o -name "*.AppImage" -o -name "*.nupkg" -o -name "RELEASES*" -o -name "*.yml" \) -exec cp {} release-files/ \;
ls -la release-files/
- name: Create or Update Release