Update desktop-build.yml
This commit is contained in:
parent
9b0fb7714d
commit
d11c388965
1 changed files with 9 additions and 49 deletions
58
.github/workflows/desktop-build.yml
vendored
58
.github/workflows/desktop-build.yml
vendored
|
|
@ -14,28 +14,15 @@ jobs:
|
|||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Generate icons
|
||||
run: |
|
||||
npm install --save-dev electron-icon-builder
|
||||
npx electron-icon-builder --input=build/icons/icon.svg --output=build --flatten
|
||||
|
||||
- name: Build desktop renderer
|
||||
run: npm run build:desktop
|
||||
|
||||
- name: Build Windows installer
|
||||
run: npx electron-builder --win --config electron-builder.yml
|
||||
- run: npm ci
|
||||
- run: npm run build:desktop
|
||||
- run: npx electron-builder --win --config electron-builder.yml
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-build
|
||||
|
|
@ -45,28 +32,15 @@ jobs:
|
|||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Generate icons
|
||||
run: |
|
||||
npm install --save-dev electron-icon-builder
|
||||
npx electron-icon-builder --input=build/icons/icon.svg --output=build --flatten
|
||||
|
||||
- name: Build desktop renderer
|
||||
run: npm run build:desktop
|
||||
|
||||
- name: Build macOS installer
|
||||
run: npx electron-builder --mac --config electron-builder.yml
|
||||
- run: npm ci
|
||||
- run: npm run build:desktop
|
||||
- run: npx electron-builder --mac --x64 --config electron-builder.yml
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: macos-build
|
||||
|
|
@ -76,28 +50,15 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Generate icons
|
||||
run: |
|
||||
npm install --save-dev electron-icon-builder
|
||||
npx electron-icon-builder --input=build/icons/icon.svg --output=build --flatten
|
||||
|
||||
- name: Build desktop renderer
|
||||
run: npm run build:desktop
|
||||
|
||||
- name: Build Linux installers
|
||||
run: npx electron-builder --linux --config electron-builder.yml
|
||||
- run: npm ci
|
||||
- run: npm run build:desktop
|
||||
- run: npx electron-builder --linux --config electron-builder.yml
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-build
|
||||
|
|
@ -113,7 +74,6 @@ jobs:
|
|||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
generate_release_notes: true
|
||||
|
|
|
|||
Loading…
Reference in a new issue