Skip to content

Commit

Permalink
Update mac signing again
Browse files Browse the repository at this point in the history
  • Loading branch information
erskingardner committed Jan 6, 2025
1 parent fc717c7 commit cb2f175
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
run: |
find src-tauri/gen/android/app/build/outputs/apk/*/release/*.apk -type f
find src-tauri/gen/android/app/build/outputs/bundle/universalRelease/*.aab -type f
# Add this before the artifact upload steps
- name: Generate artifact hashes
if: matrix.android
Expand All @@ -174,7 +174,7 @@ jobs:
find . -type f -name "*.aab" -exec sh -c '
sha256sum "$1" > "${1}.sha256"
' sh {} \;
- name: Generate desktop artifact hashes
if: ${{ !matrix.android }}
run: |
Expand All @@ -185,13 +185,15 @@ jobs:
sha256sum "$1" > "${1}.sha256"
' sh {} \;
elif [ "${{ matrix.platform }}" = "macos-latest" ]; then
cd src-tauri/target/release/bundle
cd src-tauri/target/aarch64-apple-darwin/release/bundle
# Generate hash for macOS app bundle
cd macos
find . -type f -name "*.app" -exec sh -c '
shasum -a 256 "$1" > "${1}.sha256"
' sh {} \;
find . -type f -name "*.app.tar.gz" -exec sh -c '
shasum -a 256 "$1" > "${1}.sha256"
' sh {} \;
# Generate hash for DMG
cd ../dmg
find . -type f -name "*.dmg" -exec sh -c '
Expand All @@ -217,13 +219,5 @@ jobs:
with:
name: desktop-artifacts-${{ matrix.platform }}${{ matrix.args && '-' }}${{ matrix.args }}
path: |
src-tauri/target/release/bundle/deb/*.deb
src-tauri/target/release/bundle/deb/*.deb.sha256
src-tauri/target/release/bundle/rpm/*.rpm
src-tauri/target/release/bundle/rpm/*.rpm.sha256
src-tauri/target/release/bundle/appimage/*.AppImage
src-tauri/target/release/bundle/appimage/*.AppImage.sha256
src-tauri/target/release/bundle/dmg/*.dmg
src-tauri/target/release/bundle/dmg/*.dmg.sha256
src-tauri/target/release/bundle/macos/*.app
src-tauri/target/release/bundle/macos/*.app.sha256
src-tauri/target/**/release/bundle/**/*.{deb,rpm,AppImage,dmg,app,app.tar.gz}
src-tauri/target/**/release/bundle/**/*.sha256
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts

- name: Display structure of downloaded files
run: ls -R artifacts

- name: Create Release
uses: softprops/action-gh-release@v1
env:
Expand All @@ -23,3 +31,5 @@ jobs:
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
body: "See the assets to download this version and install."
files: |
artifacts/**/*

0 comments on commit cb2f175

Please sign in to comment.