Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xianfei committed Jul 3, 2024
1 parent 5fa4dfc commit f03db9e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# create a build matrix for jobs
strategy:
matrix:
os: [windows-2019, macos-13]
os: [windows-2019, macos-12]

steps:
# step1: check out repository
Expand All @@ -32,18 +32,19 @@ jobs:
# step2: install node env
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: setup python
uses: actions/setup-python@v5
if: matrix.os == 'macos-13'
if: matrix.os == 'macos-12'
with:
python-version: 3.11.4

- name: setup appdmg
if: matrix.os == 'macos-13'
if: matrix.os == 'macos-12'
run: |
python3 -m pip install setuptools
npm install appdmg --python=python3.11
# step3: npm install
- name: npm install
Expand All @@ -60,7 +61,7 @@ jobs:
GH_TOKEN: ${{ secrets.SECRET_TOKEN }}

- name: build mac app
if: matrix.os == 'macos-13'
if: matrix.os == 'macos-12'
run: |
npm run package:mac64
npm run dmg
Expand All @@ -70,7 +71,7 @@ jobs:
GH_TOKEN: ${{ secrets.SECRET_TOKEN }}

- name: Get the version tag
if: matrix.os == 'macos-13'
if: matrix.os == 'macos-12'
run: echo "VERSION_TAG=$(git describe --tags)" >> $GITHUB_ENV

- name: Get the version tag win
Expand All @@ -80,7 +81,7 @@ jobs:
echo "VERSION_TAG=$versionTag" >> $GITHUB_ENV
- name: Rename files in OutApp/packages
if: matrix.os == 'macos-13'
if: matrix.os == 'macos-12'
run: |
for file in OutApp/packages/*; do
# 获取文件扩展名
Expand Down

0 comments on commit f03db9e

Please sign in to comment.