From c271664b318c85c775b0d5b95d58a9c7f0eecd93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E6=83=85=E7=9A=84=E6=9B=B2=E7=BA=BF?= <52827719+qqtaykey@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:07:46 +0800 Subject: [PATCH 1/4] delete build.yml from pakeplus --- .github/workflows/build.yml | 76 ------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index b179f80af..000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: Build IPA - -on: - workflow_dispatch: - # push: - # branches: - # - main - -permissions: - contents: write - pages: write - id-token: write - -jobs: - build: - runs-on: macos-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Set up Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: '16.4' - - - uses: pnpm/action-setup@v4 - with: - version: 10 - - - name: Sync node version and setup cache - uses: actions/setup-node@v4 - with: - node-version: 22.14.0 - - - name: Init Project Config - run: | - pnpm install --no-frozen-lockfile - pnpm pp:worker - - - name: Generate AppIcon - run: | - echo "Installing appicon tool..." - brew install Nonchalant/appicon/appicon - echo "Generating AppIcon..." - appicon app-icon.png --output-path ./PakePlus/Assets.xcassets/AppIcon.appiconset - - - name: Build for Release - run: | - xcodebuild -project PakePlus.xcodeproj -scheme PakePlus -configuration Release -sdk iphoneos \ - CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO - - - name: Package IPA - run: | - APP_PATH=$(find ~/Library/Developer/Xcode/DerivedData -type d -name "PakePlus.app" | grep Release-iphoneos | head -n 1) - echo "APP_PATH is $APP_PATH" - mkdir -p Payload - cp -R "$APP_PATH" Payload/ - NAME="${{ env.NAME }}" - VERSION="${{ env.VERSION }}" - ISHTML="${{ env.ISHTML }}" - ${ISHTML} && cp -R ./Scripts/www/* ./Payload/PakePlus.app/ - zip -r ${NAME}-${VERSION}.ipa Payload - mkdir -p export - mv ${NAME}-${VERSION}.ipa export/ - - - name: Publish IPA - uses: softprops/action-gh-release@v1 - with: - files: export/${{ env.NAME }}-${{ env.VERSION }}.ipa - tag_name: '${{ env.NAME }}' - name: '${{ env.NAME }} v${{ env.VERSION }}' - body: '${{ env.PUBBODY }}' - draft: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 3c3dcfd8711f2957c1d409c8ccd4fd0710be5ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E6=83=85=E7=9A=84=E6=9B=B2=E7=BA=BF?= <52827719+qqtaykey@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:07:48 +0800 Subject: [PATCH 2/4] create build.yml from pakeplus --- .github/workflows/build.yml | 96 +++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..0de7ddd77 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,96 @@ +name: Release + +on: + workflow_dispatch: + push: + tags: + - 'v*' + # branches: + # - 'main' + +jobs: + publish-tauri: + permissions: + contents: write + strategy: + fail-fast: false + matrix: + include: + - platform: 'macos-latest' # for Arm based macs (M1 and above). + target: 'aarch64-apple-darwin' + args: '--target aarch64-apple-darwin' + - platform: 'macos-latest' # for Intel based macs. + target: 'x86_64-apple-darwin' + args: '--target x86_64-apple-darwin' + + - platform: 'ubuntu-22.04' + target: 'x86_64-unknown-linux-gnu' + args: '' + - platform: 'ubuntu-22.04' + target: 'aarch64-unknown-linux-gnu' + args: '' + + - platform: 'windows-latest' + target: 'x86_64-pc-windows-msvc' + args: '' + - platform: 'windows-latest' + target: 'aarch64-pc-windows-msvc' + args: '--target aarch64-pc-windows-msvc' + + runs-on: ${{ matrix.platform }} + timeout-minutes: 60 + steps: + - uses: actions/checkout@v4 + + - name: Check Tauri + if: env.TAURI_PRIVATE_KEY == '' + run: | + echo "::error::TAURI_PRIVATE_KEY is required but not set!" + exit 1 + + - name: Install rust target + run: rustup target add ${{ matrix.target }} + + - uses: pnpm/action-setup@v3 + with: + version: latest + + - name: Sync node version and setup cache + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: Install frontend dependencies + run: pnpm install # change this to npm, pnpm or bun depending on which one you use. + + - name: install Rust stable + uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + + - name: Regenerate Icons + run: pnpm tauri icon + + - name: Create Apple icon + if: matrix.platform == 'macos-latest' + run: node ./scripts/creatIcon.cjs + + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-22.04' + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + + - uses: Sjj1024/tauri-zhaction@tauri-zhaciton + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tagName: 'PakePlus' + releaseName: 'PakePlus v__VERSION__' + releaseBody: 'This is a workflow to help you automate the publishing of your PakePlus project to GitHub Packages.' + releaseDraft: false + prerelease: false + publish: true + args: ${{ matrix.args }} + renameArtifacts: 'PakePlus' From 5fa589d04c0f9feeb11f6f15e5e3717a3c682be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E6=83=85=E7=9A=84=E6=9B=B2=E7=BA=BF?= <52827719+qqtaykey@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:22:49 +0800 Subject: [PATCH 3/4] delete build.yml from pakeplus --- .github/workflows/build.yml | 96 ------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 0de7ddd77..000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: Release - -on: - workflow_dispatch: - push: - tags: - - 'v*' - # branches: - # - 'main' - -jobs: - publish-tauri: - permissions: - contents: write - strategy: - fail-fast: false - matrix: - include: - - platform: 'macos-latest' # for Arm based macs (M1 and above). - target: 'aarch64-apple-darwin' - args: '--target aarch64-apple-darwin' - - platform: 'macos-latest' # for Intel based macs. - target: 'x86_64-apple-darwin' - args: '--target x86_64-apple-darwin' - - - platform: 'ubuntu-22.04' - target: 'x86_64-unknown-linux-gnu' - args: '' - - platform: 'ubuntu-22.04' - target: 'aarch64-unknown-linux-gnu' - args: '' - - - platform: 'windows-latest' - target: 'x86_64-pc-windows-msvc' - args: '' - - platform: 'windows-latest' - target: 'aarch64-pc-windows-msvc' - args: '--target aarch64-pc-windows-msvc' - - runs-on: ${{ matrix.platform }} - timeout-minutes: 60 - steps: - - uses: actions/checkout@v4 - - - name: Check Tauri - if: env.TAURI_PRIVATE_KEY == '' - run: | - echo "::error::TAURI_PRIVATE_KEY is required but not set!" - exit 1 - - - name: Install rust target - run: rustup target add ${{ matrix.target }} - - - uses: pnpm/action-setup@v3 - with: - version: latest - - - name: Sync node version and setup cache - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: pnpm - - - name: Install frontend dependencies - run: pnpm install # change this to npm, pnpm or bun depending on which one you use. - - - name: install Rust stable - uses: dtolnay/rust-toolchain@stable - with: - targets: ${{ matrix.target }} - - - name: Regenerate Icons - run: pnpm tauri icon - - - name: Create Apple icon - if: matrix.platform == 'macos-latest' - run: node ./scripts/creatIcon.cjs - - - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-22.04' - run: | - sudo apt-get update - sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - - - uses: Sjj1024/tauri-zhaction@tauri-zhaciton - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tagName: 'PakePlus' - releaseName: 'PakePlus v__VERSION__' - releaseBody: 'This is a workflow to help you automate the publishing of your PakePlus project to GitHub Packages.' - releaseDraft: false - prerelease: false - publish: true - args: ${{ matrix.args }} - renameArtifacts: 'PakePlus' From bd2b4dbc7adacbc015312de19bed23a3c812ad9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E6=83=85=E7=9A=84=E6=9B=B2=E7=BA=BF?= <52827719+qqtaykey@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:22:51 +0800 Subject: [PATCH 4/4] create build.yml from pakeplus --- .github/workflows/build.yml | 96 +++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..0de7ddd77 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,96 @@ +name: Release + +on: + workflow_dispatch: + push: + tags: + - 'v*' + # branches: + # - 'main' + +jobs: + publish-tauri: + permissions: + contents: write + strategy: + fail-fast: false + matrix: + include: + - platform: 'macos-latest' # for Arm based macs (M1 and above). + target: 'aarch64-apple-darwin' + args: '--target aarch64-apple-darwin' + - platform: 'macos-latest' # for Intel based macs. + target: 'x86_64-apple-darwin' + args: '--target x86_64-apple-darwin' + + - platform: 'ubuntu-22.04' + target: 'x86_64-unknown-linux-gnu' + args: '' + - platform: 'ubuntu-22.04' + target: 'aarch64-unknown-linux-gnu' + args: '' + + - platform: 'windows-latest' + target: 'x86_64-pc-windows-msvc' + args: '' + - platform: 'windows-latest' + target: 'aarch64-pc-windows-msvc' + args: '--target aarch64-pc-windows-msvc' + + runs-on: ${{ matrix.platform }} + timeout-minutes: 60 + steps: + - uses: actions/checkout@v4 + + - name: Check Tauri + if: env.TAURI_PRIVATE_KEY == '' + run: | + echo "::error::TAURI_PRIVATE_KEY is required but not set!" + exit 1 + + - name: Install rust target + run: rustup target add ${{ matrix.target }} + + - uses: pnpm/action-setup@v3 + with: + version: latest + + - name: Sync node version and setup cache + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: Install frontend dependencies + run: pnpm install # change this to npm, pnpm or bun depending on which one you use. + + - name: install Rust stable + uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + + - name: Regenerate Icons + run: pnpm tauri icon + + - name: Create Apple icon + if: matrix.platform == 'macos-latest' + run: node ./scripts/creatIcon.cjs + + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-22.04' + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + + - uses: Sjj1024/tauri-zhaction@tauri-zhaciton + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tagName: 'PakePlus' + releaseName: 'PakePlus v__VERSION__' + releaseBody: 'This is a workflow to help you automate the publishing of your PakePlus project to GitHub Packages.' + releaseDraft: false + prerelease: false + publish: true + args: ${{ matrix.args }} + renameArtifacts: 'PakePlus'