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

Commit f7fe5e3

Browse files
committed
fix: output Raspberry Pi package as tar archive
1 parent 50603ac commit f7fe5e3

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/package-raspberry-pi.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,30 @@ jobs:
5555
${{ github.workspace }}/armv6-unknown-linux-gnueabihf/bin/armv6-unknown-linux-gnueabihf-strip ./nostr-wallet-connect
5656
patchelf --force-rpath --set-rpath '$ORIGIN/lib' ./nostr-wallet-connect
5757
58+
# TODO: remove this; it produces a ZIP archive that loses all permissions (for now, the update.sh script uses this artifact).
5859
- name: Archive the artifacts
5960
uses: actions/upload-artifact@v4
6061
with:
6162
name: nostr-wallet-connect.zip
6263
path: |
6364
lib/
6465
nostr-wallet-connect
66+
67+
- name: Add Linux perms
68+
run: chmod +x ./nostr-wallet-connect
69+
70+
# Store everything in a tar archive to preserve permissions
71+
# (specifically, the executable bit on the app executable).
72+
- name: Make output tar archive
73+
run: |
74+
mkdir -p ./tmp
75+
mv ./nostr-wallet-connect ./tmp/
76+
mv ./lib ./tmp/
77+
tar -cjf nostr-wallet-connect.tar.bz2 -C ./tmp .
78+
rm -Rf ./tmp
79+
80+
- name: Upload the package
81+
uses: actions/upload-artifact@v4
82+
with:
83+
name: nostr-wallet-connect.tar.bz2
84+
path: nostr-wallet-connect.tar.bz2

.github/workflows/publish-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Download Raspberry Pi archive
1515
uses: actions/download-artifact@v4
1616
with:
17-
name: nostr-wallet-connect.zip
17+
name: nostr-wallet-connect.tar.bz2
1818
path: artifacts
1919

2020
- name: Download Linux desktop archive

0 commit comments

Comments
 (0)