wholy dick
This commit is contained in:
55
.gitea/workflows/build-dev.yml
Normal file
55
.gitea/workflows/build-dev.yml
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
name: Manual Dev Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-dev:
|
||||||
|
runs-on: windows
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Verify Node.js
|
||||||
|
run: node -v
|
||||||
|
|
||||||
|
- name: Install electron-app dependencies
|
||||||
|
working-directory: electron-app
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build TypeScript (main + preload)
|
||||||
|
working-directory: electron-app
|
||||||
|
run: npm run build:main
|
||||||
|
|
||||||
|
- name: Build Renderer (Vite)
|
||||||
|
working-directory: electron-app
|
||||||
|
run: npm run build:renderer
|
||||||
|
|
||||||
|
- name: List dist directory
|
||||||
|
working-directory: electron-app
|
||||||
|
run: |
|
||||||
|
Write-Host "=== Dist Directory Structure ==="
|
||||||
|
Get-ChildItem -Recurse dist | Select-Object FullName
|
||||||
|
|
||||||
|
- name: Package with electron-builder (unpacked only)
|
||||||
|
working-directory: electron-app
|
||||||
|
env:
|
||||||
|
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||||
|
run: npx electron-builder --win --dir
|
||||||
|
|
||||||
|
- name: List release directory
|
||||||
|
working-directory: electron-app
|
||||||
|
run: |
|
||||||
|
Write-Host "=== Release Directory ==="
|
||||||
|
if (Test-Path "release") {
|
||||||
|
Get-ChildItem -Recurse release | Select-Object FullName, Length
|
||||||
|
} else {
|
||||||
|
Write-Host "Release directory not found"
|
||||||
|
}
|
||||||
|
|
||||||
|
- name: Upload unpacked build
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: rmtPocketWatcher-Windows-Unpacked
|
||||||
|
path: electron-app/release/win-unpacked/
|
||||||
|
retention-days: 7
|
||||||
@@ -25,12 +25,25 @@ jobs:
|
|||||||
echo "API_URL=${{ secrets.API_URL }}" >> .env
|
echo "API_URL=${{ secrets.API_URL }}" >> .env
|
||||||
echo "NODE_ENV=production" >> .env
|
echo "NODE_ENV=production" >> .env
|
||||||
|
|
||||||
|
- name: Verify icon file exists
|
||||||
|
working-directory: electron-app
|
||||||
|
run: |
|
||||||
|
if (Test-Path "resources/icons/icon.ico") {
|
||||||
|
Write-Host "Icon file found"
|
||||||
|
Get-Item "resources/icons/icon.ico" | Select-Object FullName, Length
|
||||||
|
} else {
|
||||||
|
Write-Error "Icon file not found!"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
- name: Build TypeScript
|
- name: Build TypeScript
|
||||||
working-directory: electron-app
|
working-directory: electron-app
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Build Windows portable executable
|
- name: Build Windows portable executable (skip signing)
|
||||||
working-directory: electron-app
|
working-directory: electron-app
|
||||||
|
env:
|
||||||
|
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||||
run: npx electron-builder --win portable --config electron-builder.yml
|
run: npx electron-builder --win portable --config electron-builder.yml
|
||||||
|
|
||||||
- name: Upload Windows portable artifact
|
- name: Upload Windows portable artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user