From abdf4264ee4fed867fa83534abe799c16e359b28 Mon Sep 17 00:00:00 2001 From: Z-fly <10470892+Z-fly@users.noreply.github.com> Date: Tue, 3 Sep 2024 21:13:39 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 64 ----------------------------------- 1 file changed, 64 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0805674..d5b3a5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -106,70 +106,6 @@ jobs: asset_name: ${{ env.PACKAGENAME }}.dmg asset_content_type: application/gzip - macos_arm: - needs: [setup, release] - runs-on: macos-latest - env: - PACKAGENAME: ${{ needs.setup.outputs.PACKAGE_PREFIX }}_macos_arm - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.7 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pyinstaller PySide6 websocket-client requests urllib3 pillow Pysocks natsort - # pip install https://github.com/tonquer/waifu2x-vulkan/releases/download/v1.1.6/waifu2x_vulkan-1.1.6-cp37-cp37m-macosx_10_15_x86_64.whl - brew install create-dmg - - name: Build - run: | - cd src - cp ../res/icon/Icon.icns ./ - pyinstaller --clean --onedir --name PicACG \ - --hidden-import waifu2x_vulkan --hidden-import PySide6 --hidden-import requests \ - --hidden-import urllib3 --hidden-import websocket-client --hidden-import pillow \ - --hidden-import config \ - --hidden-import component \ - --hidden-import server \ - --hidden-import task \ - --hidden-import tools \ - --hidden-import view \ - --strip --windowed -i Icon.icns \ - start.py - # rm -rf dist/PicACG - # cp Icon.icns dist/ - # ln -s /Applications/ dist/Applications - cp -avf db dist/PicACG.app/Contents/MacOS - xattr -cr dist/PicACG.app - create-dmg --volname "PicACG" --volicon "Icon.icns" --icon "PicACG.app" 200 190 \ - --window-pos 200 120 \ - --window-size 800 400 \ - --icon-size 100 \ - --hide-extension "PicACG.app" --app-drop-link 600 185 \ - ${{ env.PACKAGENAME }}.dmg dist/PicACG.app - - zip -9 bika.zip ${{ env.PACKAGENAME }}.dmg - mv ${{ env.PACKAGENAME }}.dmg .. - mv bika.zip .. - cd .. - - name: Upload - uses: actions/upload-artifact@v2 - with: - name: ${{ env.PACKAGENAME }} - path: bika.zip - - name: upload-macos - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.release.outputs.Up_Url }} - asset_path: ${{ env.PACKAGENAME }}.dmg - asset_name: ${{ env.PACKAGENAME }}.dmg - asset_content_type: application/gzip - windows: needs: [setup, release] runs-on: windows-latest