Skip to content

Commit bd30e2a

Browse files
committed
Support ARM releases to resolve #291
1 parent 89998b1 commit bd30e2a

1 file changed

Lines changed: 11 additions & 17 deletions

File tree

pkg.sh

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,26 @@
22

33
PACKAGE="npx @electron/packager"
44

5-
BIN_LIN="livebot-linux-x64"
6-
BIN_OSX="livebot-darwin-x64"
7-
BIN_WIN="livebot-windows-x64"
8-
95
# Make sure the patch is applied
106
tar -xvf patch.tar
117

128
# Create and move into the build directory, perform the build
139
mkdir build
1410
cd build
1511

16-
$PACKAGE ../ --platform=darwin,linux,win32 --arch=x64 --icon=../resources/icons/logo
17-
18-
tar -czvf "$BIN_LIN".tar.gz "$BIN_LIN" &
19-
tar -czvf "$BIN_OSX".tar.gz "$BIN_OSX" &
20-
zip -rv "$BIN_WIN".zip livebot-win32-x64
12+
$PACKAGE ../ --platform=darwin,linux,win32 --arch=x64,arm64 --icon=../resources/icons/logo
2113

22-
gpg -ab "$BIN_LIN".tar.gz
23-
gpg -ab "$BIN_OSX".tar.gz
24-
gpg -ab "$BIN_WIN".zip
14+
# Archive
15+
for dir in $(ls); do
16+
zip -rv "$dir".tar.gz "$dir" &
17+
done
18+
wait
2519

26-
gpg --verify "$BIN_LIN".tar.gz.asc
27-
gpg --verify "$BIN_OSX".tar.gz.asc
28-
gpg --verify "$BIN_WIN".zip.asc
20+
# Sign
21+
for archive in $(ls *.gz); do
22+
gpg -ab "$archive"
23+
gpg --verify "$archive".asc
24+
done
2925

3026
echo
3127
echo "Your releases have been created in $(pwd)"
32-
33-
wait

0 commit comments

Comments
 (0)