Redefine VERSION_EXPANDED from pkg2appimage functions.sh

This commit is contained in:
Lee Miller 2022-06-15 16:46:02 +03:00
parent eb43f2c068
commit d41503ee8a
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Cleanup
rm -rf PyBitmessage
@ -18,10 +18,18 @@ fi
./pkg2appimage packages/AppImage/PyBitmessage.yml
if [ -f "out/PyBitmessage-${VERSION}.glibc2.15-x86_64.AppImage" ]; then
./pkg2appimage --appimage-extract
. ./squashfs-root/usr/share/pkg2appimage/functions.sh
GLIBC=$(glibc_needed)
VERSION_EXPANDED=${VERSION}.glibc${GLIBC}-${SYSTEM_ARCH}
if [ -f "out/PyBitmessage-${VERSION_EXPANDED}.AppImage" ]; then
echo "Build Successful";
echo "Run out/PyBitmessage-${VERSION}.glibc2.15-x86_64.AppImage";
out/PyBitmessage-${VERSION}.glibc2.15-x86_64.AppImage -t
echo "Run out/PyBitmessage-${VERSION_EXPANDED}.AppImage";
out/PyBitmessage-${VERSION_EXPANDED}.AppImage -t
else
echo "Build Failed";
exit 1