Skip to content

kevin2li

kevin2li #12

Workflow file for this run

name: deploy
run-name: ${{ github.actor }}
on:
push:
branches:
- mac
jobs:
deploy-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 安装 Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: 安装 Go
uses: actions/setup-go@v2
with:
go-version: 1.20.5
- name: 安装 Python
uses: actions/setup-python@v2
with:
python-version: 3.10.12
- name: 安装依赖 && 编译
run: |
go install github.com/wailsapp/wails/v2/cmd/wails@latest
go mod tidy
echo $PWD
cd frontend
npm install
cd ../thirdparty
pip install -r requirements.txt
pyinstaller -F -w pdf.py
cp -r dist/ ../build/bin/
cd ..
brew install nsis
wails build -nsis
- name: 上传Artifacts
uses: actions/upload-artifact@v2
with:
name: macos-artifact
path: build/bin