451c550b19
* Simplify creating an AppImage - package.sh packages the build result into an AppImage. It requires squashfs-tools to work - runtime-x86_64 is a binary distributed by the AppImage project that takes care of extracting and running the image * use AppRun from AppImage project * clean up no longer needed bits * Keep docker way of working around - Docker now also uses `package.sh`, so no more need for FUSE. - Fetch binaries instead of storing in git. * Fix details * wait a little longer for the container to start
27 lines
726 B
Bash
Executable File
27 lines
726 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Set the TAG environment variable to move to a versioned name while extracting
|
|
|
|
# Make sure we're in the same directory as this script
|
|
pushd $(dirname "$(realpath "$0")")
|
|
|
|
SUFFIX=""
|
|
[ -n "$TAG" ] && SUFFIX=":$TAG"
|
|
|
|
# Remove old containers
|
|
docker rm imhex 2>&1 > /dev/null
|
|
|
|
docker run -d --name imhex imhex-appimage-build${SUFFIX} sleep 30 &
|
|
sleep 15
|
|
docker cp imhex:/ImHex-x86_64.AppImage .
|
|
|
|
# Move to tagged name if $TAG set
|
|
if [ -n "$TAG" ]; then
|
|
mv ImHex-x86_64.AppImage ImHex-${TAG}-x86_64.AppImage
|
|
echo -e "\nThe created AppImage can be found here:\n $(pwd)/ImHex-${TAG}-x86_64.AppImage\n\n"
|
|
else
|
|
echo -e "\nThe created AppImage can be found here:\n $(pwd)/ImHex-x86_64.AppImage\n\n"
|
|
fi
|
|
|
|
popd
|