mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 02:36:04 +10:00
chore: add electron builder workflow
This commit is contained in:
34
.github/workflows/windows-build.yml
vendored
Normal file
34
.github/workflows/windows-build.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: Windows Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Generate Windows icons
|
||||||
|
run: npm run prebuild:win
|
||||||
|
|
||||||
|
- name: Build Windows artifacts
|
||||||
|
uses: electron-builder/action@v1
|
||||||
|
with:
|
||||||
|
args: --win --x64
|
||||||
@@ -6,7 +6,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"prebuild:win": "electron-icon-builder --input=icon.png --output=build --flatten",
|
"prebuild:win": "electron-icon-builder --input=icon.png --output=build --flatten",
|
||||||
"build:win": "electron-builder --win --x64"
|
"build:win": "electron-builder --win --x64",
|
||||||
|
"build": "npm run build:win"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^30.0.0",
|
"electron": "^30.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user