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 f03db9e commit bf95583
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 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-12]
os: [windows-2019, macos-14]

steps:
# step1: check out repository
Expand All @@ -37,14 +37,13 @@ jobs:

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

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

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

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

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

0 comments on commit bf95583

Please sign in to comment.