This commit is contained in:
2025-12-04 13:38:58 -05:00
parent 4a1b5bfc24
commit ab663e7d2b
7 changed files with 365 additions and 29 deletions

View File

@@ -14,22 +14,24 @@ jobs:
- name: Verify Node.js
run: node -v
- name: Install dependencies
- name: Install electron-app dependencies
working-directory: electron-app
run: npm ci
- name: Build Windows executable
- name: Create production .env file
working-directory: electron-app
env:
WS_URL: ${{ secrets.WS_URL }}
API_URL: ${{ secrets.API_URL }}
RELEASE_URL: ${{ secrets.RELEASE_URL }}
NODE_ENV: production
run: npm run electron:build -- --win
run: |
echo "WS_URL=${{ secrets.WS_URL }}" > .env
echo "API_URL=${{ secrets.API_URL }}" >> .env
echo "NODE_ENV=production" >> .env
- name: Upload Windows artifact
- name: Build Windows portable executable
working-directory: electron-app
run: npm run build:portable
- name: Upload Windows portable artifact
uses: actions/upload-artifact@v4
with:
name: windows-exe
path: electron-app/release/*.exe
name: rmtPocketWatcher-Windows-Portable
path: electron-app/release/rmtPocketWatcher-*.exe
retention-days: 7