From 927e96a675321fc25ffa762e63315dbbfd22a73d Mon Sep 17 00:00:00 2001 From: qqmaplealone Date: Sat, 28 Jun 2025 10:29:40 +0800 Subject: [PATCH 1/6] delete build.yml from pakeplus --- .github/workflows/build.yml | 65 ------------------------------------- 1 file changed, 65 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 4866c3bd2..000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Android Build - -on: - workflow_dispatch: - # push: - # branches: - # - 'main' - -jobs: - build: - name: Build APK - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '17' - cache: gradle - - - name: Set up Android SDK - uses: android-actions/setup-android@v3 - - - 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: Init Project Config - run: | - pnpm install - pnpm pp:worker - - - name: Grant Execute Permission for Gradle - run: chmod +x ./gradlew - - - name: Build Debug APK - run: ./gradlew assembleDebug - - - name: Rename APK file - run: | - cd app/build/outputs/apk/debug/ - mv app-debug.apk ${{ env.NAME }}-v${{ env.VERSION }}.apk - - - name: Create GitHub Release - uses: softprops/action-gh-release@v1 - with: - files: app/build/outputs/apk/debug/*.apk - tag_name: '${{ env.NAME }}' - name: '${{ env.NAME }} v${{ env.VERSION }}' - body: '${{ env.PUBBODY }}' - draft: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NAME: ${{ env.NAME }} - VERSION: ${{ env.VERSION }} - PUBBODY: ${{ env.PUBBODY }} From 2b582721f4487b0db30ad0c04280fb3d5908af52 Mon Sep 17 00:00:00 2001 From: qqmaplealone Date: Sat, 28 Jun 2025 10:29:42 +0800 Subject: [PATCH 2/6] 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..18fe9c3a3 --- /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 6e1936b57f9a34455f0650eaa9bc2c458b14a45e Mon Sep 17 00:00:00 2001 From: qqmaplealone Date: Tue, 1 Jul 2025 16:11:13 +0800 Subject: [PATCH 3/6] 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 18fe9c3a3..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 1c8da31eb3c9d1cacffb27a97c9b6c39218153fb Mon Sep 17 00:00:00 2001 From: qqmaplealone Date: Tue, 1 Jul 2025 16:11:15 +0800 Subject: [PATCH 4/6] 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..18fe9c3a3 --- /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 108b9a49cf18a61aeb64f3fc9f026843128f9c6e Mon Sep 17 00:00:00 2001 From: qqmaplealone Date: Tue, 1 Jul 2025 16:12:28 +0800 Subject: [PATCH 5/6] 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 18fe9c3a3..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 d8baa01ba88a4a41addfdc20b6b444b1c0a45111 Mon Sep 17 00:00:00 2001 From: qqmaplealone Date: Tue, 1 Jul 2025 16:12:30 +0800 Subject: [PATCH 6/6] 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..18fe9c3a3 --- /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'