Skip to content

Commit

Permalink
try zipping windows files
Browse files Browse the repository at this point in the history
  • Loading branch information
rayxke authored Aug 25, 2024
1 parent e319285 commit 8f0d3cd
Showing 1 changed file with 40 additions and 29 deletions.
69 changes: 40 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,45 +197,57 @@ jobs:
if: ${{ matrix.name == 'macOS' }}
working-directory: ${{ env.ARTIFACTS_PATH }}
run: 7z a -tzip "${{ env.ARTIFACT_NAME }}.zip" "-xr!lib${{ env.PRODUCT_NAME }}_SharedCode.a" .

- name: Generate Installer
- name: Zip (Windows)
if: ${{ matrix.name == 'Windows' }}
run: |
iscc "packaging\installer.iss"
mv "packaging/Output/${{ env.ARTIFACT_NAME }}.exe" "${{ env.ARTIFACTS_PATH }}/"
working-directory: ${{ env.ARTIFACTS_PATH }}
run: 7z a -tzip "${{ env.ARTIFACT_NAME }}.zip" "-xr!lib${{ env.PRODUCT_NAME }}_SharedCode.a" .

- name: Codesign with Azure Trusted Signing
if: ${{ matrix.name == 'Windows' }}
uses: azure/[email protected]
with:
# The Azure Active Directory tenant (directory) ID.
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
#- name: Generate Installer
# if: ${{ matrix.name == 'Windows' }}
# run: |
# iscc "packaging\installer.iss"
# mv "packaging/Output/${{ env.ARTIFACT_NAME }}.exe" "${{ env.ARTIFACTS_PATH }}/"

# The client (application) ID of an App Registration in the tenant.
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
#- name: Codesign with Azure Trusted Signing
# if: ${{ matrix.name == 'Windows' }}
# uses: azure/[email protected]
# with:
# # The Azure Active Directory tenant (directory) ID.
# azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}

# # The client (application) ID of an App Registration in the tenant.
# azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}

# A client secret that was generated for the App Registration.
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
# # A client secret that was generated for the App Registration.
# azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}

# The Code Signing Account endpoint. The URI value must have a URI that aligns to the region your Code Signing Account and Certificate Profile you are specifying were created in during the setup of these resources.
endpoint: ${{ secrets.AZURE_ENDPOINT }}
# # The Code Signing Account endpoint. The URI value must have a URI that aligns to the region your Code Signing Account and Certificate Profile you are specifying were created in during the setup of these resources.
# endpoint: ${{ secrets.AZURE_ENDPOINT }}

# The Code Signing Account name.
trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
# # The Code Signing Account name.
# trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }}

# The Certificate Profile name.
certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }}
# # The Certificate Profile name.
# certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }}

# This signs all exes inside the folder
files-folder: ${{ env.ARTIFACTS_PATH }}
files-folder-filter: exe
# # This signs all exes inside the folder
# files-folder: ${{ env.ARTIFACTS_PATH }}
# files-folder-filter: exe

- name: Upload Exe (Windows)
#- name: Upload Exe (Windows)
# if: ${{ matrix.name == 'Windows' }}
# uses: actions/upload-artifact@v4
# with:
# name: ${{ env.ARTIFACT_NAME }}.exe
# path: "${{ env.ARTIFACTS_PATH }}/${{ env.ARTIFACT_NAME }}.exe"

- name: Upload Zip (Windows)
if: ${{ matrix.name == 'Windows' }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}.exe
path: "${{ env.ARTIFACTS_PATH }}/${{ env.ARTIFACT_NAME }}.exe"
name: ${{ env.ARTIFACT_NAME }}.zip
path: "${{ env.ARTIFACTS_PATH }}/${{ env.ARTIFACT_NAME }}.zip"

- name: Upload Zip (Linux)
if: ${{ matrix.name == 'Linux' }}
Expand Down Expand Up @@ -275,5 +287,4 @@ jobs:
files: |
*/*.exe
*/*.zip
*/*.app
#*/*.dmg
*/*.dmg

0 comments on commit 8f0d3cd

Please sign in to comment.