Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
fix: output Raspberry Pi package as tar archive
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Dmitrienko committed Jun 17, 2024
1 parent 50603ac commit f7fe5e3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/package-raspberry-pi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,30 @@ jobs:
${{ github.workspace }}/armv6-unknown-linux-gnueabihf/bin/armv6-unknown-linux-gnueabihf-strip ./nostr-wallet-connect
patchelf --force-rpath --set-rpath '$ORIGIN/lib' ./nostr-wallet-connect
# TODO: remove this; it produces a ZIP archive that loses all permissions (for now, the update.sh script uses this artifact).
- name: Archive the artifacts
uses: actions/upload-artifact@v4
with:
name: nostr-wallet-connect.zip
path: |
lib/
nostr-wallet-connect
- name: Add Linux perms
run: chmod +x ./nostr-wallet-connect

# Store everything in a tar archive to preserve permissions
# (specifically, the executable bit on the app executable).
- name: Make output tar archive
run: |
mkdir -p ./tmp
mv ./nostr-wallet-connect ./tmp/
mv ./lib ./tmp/
tar -cjf nostr-wallet-connect.tar.bz2 -C ./tmp .
rm -Rf ./tmp
- name: Upload the package
uses: actions/upload-artifact@v4
with:
name: nostr-wallet-connect.tar.bz2
path: nostr-wallet-connect.tar.bz2
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Download Raspberry Pi archive
uses: actions/download-artifact@v4
with:
name: nostr-wallet-connect.zip
name: nostr-wallet-connect.tar.bz2
path: artifacts

- name: Download Linux desktop archive
Expand Down

0 comments on commit f7fe5e3

Please sign in to comment.