diff --git a/.github/workflows/1.yml b/.github/workflows/1.yml deleted file mode 100644 index 450e2f4..0000000 --- a/.github/workflows/1.yml +++ /dev/null @@ -1,57 +0,0 @@ -# AUTO_MAA:A MAA Multi Account Management and Automation Tool -# Copyright © 2024-2025 DLmaster361 - -# This file is part of AUTO_MAA. - -# AUTO_MAA is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published -# by the Free Software Foundation, either version 3 of the License, -# or (at your option) any later version. - -# AUTO_MAA is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty -# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with AUTO_MAA. If not, see . - -# Contact: DLmaster_361@163.com - -name: Build AUTO_MAA Test b - -on: - workflow_dispatch: - -permissions: - contents: write - actions: write - -jobs: - - build_AUTO_MAA: - runs-on: windows-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Upload unsigned artifact - id: upload-unsigned-artifact - uses: actions/upload-artifact@v4 - with: - name: AUTO_MAA - path: AUTO_MAA.exe - - - name: Sign main program - id: sign_main_program - uses: signpath/github-action-submit-signing-request@v1.2 - with: - api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' - organization-id: '787a1d5f-6177-4f30-9559-d2646473584a' - project-slug: 'AUTO_MAA_' - signing-policy-slug: 'test-signing' - artifact-configuration-slug: "AUTO_MAA" - github-artifact-id: '${{ steps.upload-unsigned-artifact.outputs.artifact-id }}' - wait-for-completion: true - output-artifact-directory: 'AUTO_MAA' diff --git a/.github/workflows/build-app-test.yml b/.github/workflows/build-app-test.yml index 4626f64..8dbeee0 100644 --- a/.github/workflows/build-app-test.yml +++ b/.github/workflows/build-app-test.yml @@ -94,8 +94,8 @@ jobs: output-file: AUTO_MAA output-dir: AUTO_MAA - - name: Upload unsigned artifact - id: upload-unsigned-artifact + - name: Upload unsigned main program + id: upload-unsigned-main-program uses: actions/upload-artifact@v4 with: name: AUTO_MAA @@ -109,7 +109,8 @@ jobs: organization-id: '787a1d5f-6177-4f30-9559-d2646473584a' project-slug: 'AUTO_MAA_' signing-policy-slug: 'test-signing' - github-artifact-id: '${{ steps.upload-unsigned-artifact.outputs.artifact-id }}' + artifact-configuration-slug: "AUTO_MAA" + github-artifact-id: '${{ steps.upload-unsigned-main-program.outputs.artifact-id }}' wait-for-completion: true output-artifact-directory: 'AUTO_MAA' @@ -141,13 +142,29 @@ jobs: with: path: AUTO_MAA.iss + - name: Upload unsigned setup program + id: upload-unsigned-setup-program + uses: actions/upload-artifact@v4 + with: + name: AUTO_MAA-Setup + path: AUTO_MAA-Setup.exe + + - name: Sign setup program + id: sign_setup_program + uses: signpath/github-action-submit-signing-request@v1.2 + with: + api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' + organization-id: '787a1d5f-6177-4f30-9559-d2646473584a' + project-slug: 'AUTO_MAA_' + signing-policy-slug: 'test-signing' + artifact-configuration-slug: "AUTO_MAA-Setup" + github-artifact-id: '${{ steps.upload-unsigned-setup-program.outputs.artifact-id }}' + wait-for-completion: true + output-artifact-directory: 'AUTO_MAA_Setup' + - name: Compress setup exe shell: pwsh - run: | - $root = "${{ github.workspace }}" - New-Item -ItemType Directory -Force -Path "$root/AUTO_MAA_Setup" - Move-Item "$root/AUTO_MAA-Setup.exe" "$root/AUTO_MAA_Setup/" - Compress-Archive -Path AUTO_MAA_Setup/* -DestinationPath AUTO_MAA_${{ steps.get_version.outputs.main_version }}.zip + run: Compress-Archive -Path AUTO_MAA_Setup/* -DestinationPath AUTO_MAA_${{ steps.get_version.outputs.main_version }}.zip - name: Generate version info shell: python diff --git a/AUTO_MAA.exe b/AUTO_MAA.exe deleted file mode 100644 index e69de29..0000000