Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

feature: #11 调整储存位置为当前软件目录下 #21

feature: #11 调整储存位置为当前软件目录下

feature: #11 调整储存位置为当前软件目录下 #21

Workflow file for this run

name: Electron Build
on:
push:
branches:
- main # 执行分支on:
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
jobs:
build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install Dependencies
run: npm install
- name: Build macOS app
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npm run build
GH_TOKEN=${{ secrets.GH_TOKEN }} npm run pack:mac
- name: Upload macOS Artifact
uses: actions/[email protected]
with:
name: release-${{env.BUILD_TIME}}-mac
path: ./dist_electron/*.dmg
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install Dependencies
run: npm install
- name: Build Windows app
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npm run build
GH_TOKEN=${{ secrets.GH_TOKEN }} npm run pack:windows
- name: Upload Windows Artifact
uses: actions/[email protected]
with:
name: release-${{env.BUILD_TIME}}-win
path: ./dist_electron/*.exe
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install Dependencies
run: npm install
- name: Build Linux app
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npm run build
GH_TOKEN=${{ secrets.GH_TOKEN }} npm run pack:linux
- name: Upload Linux Artifact
uses: actions/[email protected]
with:
name: release-${{env.BUILD_TIME}}-linux
path: ./dist_electron/*.AppImage