Skip to content

Commit

Permalink
Modify Release Artifacts Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayKalose committed Nov 29, 2024
1 parent d5c7a0d commit 875e3bf
Showing 2 changed files with 27 additions and 4 deletions.
29 changes: 26 additions & 3 deletions .github/actions/wails-build-action/action.yml
Original file line number Diff line number Diff line change
@@ -234,16 +234,39 @@ runs:
echo "Signing Installer" & 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /fd sha256 /tr http://ts.ssl.com /f certificate\certificate.pfx /p '${{ inputs.sign-windows-cert-password }}' '.\build\bin\${{inputs.build-name}}-amd64-installer.exe'
# Upload build assets
- name: Prepare Linux Release Builds
shell: bash
if: inputs.build-platform == 'linux/amd64'
working-directory: ${{ inputs.app-working-directory }}
run: |
mkdir build/bin/publish
tar -czvf "build/bin/publish/$(echo "${{ inputs.build-name }}" | sed "s/ /-/g")-linux-amd64.tar.gz" 'build/bin/${{ inputs.build-name }}'
- name: Prepare Windows Release Builds
shell: powershell
if: inputs.build-platform == 'windows/amd64'
working-directory: ${{ inputs.app-working-directory }}
run: |
mkdir build/bin/publish
Compress-Archive -Path 'build/bin/${{ inputs.build-name }}.exe' -DestinationPath 'build/bin/publish/${{ inputs.build-name }}-windows-amd64.zip'.replace(' ', '-')
mv 'build/bin/${{ inputs.build-name }}-amd64-installer.exe' 'build/bin/publish/${{ inputs.build-name }}-windows-amd64-installer.exe'.replace(' ', '-')
- name: Prepare macOS Release Builds
shell: bash
if: inputs.build-platform == 'macos/universal'
working-directory: ${{ inputs.app-working-directory }}
run: |
mkdir build/bin/publish
mv 'build/bin/${{ inputs.build-name }}.app.zip' "build/bin/publish/$(echo "${{ inputs.build-name }}" | sed "s/ /-/g")-macOS-universal.app.zip"
mv 'build/bin/${{ inputs.build-name }}.pkg' "build/bin/publish/$(echo "${{ inputs.build-name }}" | sed "s/ /-/g")-macOS-universal-installer.pkg"
- uses: actions/upload-artifact@v3
if: inputs.package == 'true'
with:
name: Wails Build ${{runner.os}} ${{inputs.build-name}}
path: |
*/bin/
*\bin\*
*/bin/publish/
*\bin\publish\*
- name: Release
uses: softprops/action-gh-release@v2
if: inputs.package == 'true' && startsWith(github.ref, 'refs/tags/')
with:
files: |
*/bin/*
*/bin/publish/*
2 changes: 1 addition & 1 deletion wails.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
"info": {
"companyName": "Minesweeper XP",
"productName": "Minesweeper XP",
"productVersion": "0.0.6",
"productVersion": "0.0.7",
"copyright": "Copyright 2024 Akshay Kalose",
"comments": "The classic Minesweeper XP (+ 98) on macOS, Windows, and Linux."
}

0 comments on commit 875e3bf

Please sign in to comment.