From bf955831f538d65bef28eb15a517f5c87046415e Mon Sep 17 00:00:00 2001 From: xianfei Date: Thu, 4 Jul 2024 00:22:07 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23defbe..51d7331 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 # 获取文件扩展名