-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made the AppImage updatable & get rid of libfuse2 dependency #36
Changes from 6 commits
d23b7d8
da7bb5c
476bd5d
0ec2a20
503105d
28cf144
be7586f
b428372
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -45,6 +45,7 @@ sudo DEBIAN_FRONTEND=noninteractive -i sh -c "apt update && apt -y upgrade && \ | |||||
cmake \ | ||||||
curl \ | ||||||
$CC \ | ||||||
desktop-file-utils \ | ||||||
libboost-dev \ | ||||||
libboost-filesystem-dev \ | ||||||
libboost-system-dev \ | ||||||
|
@@ -68,7 +69,8 @@ sudo DEBIAN_FRONTEND=noninteractive -i sh -c "apt update && apt -y upgrade && \ | |||||
patchelf \ | ||||||
python3 \ | ||||||
rustc \ | ||||||
zlib1g-dev" | ||||||
zlib1g-dev \ | ||||||
zsync" | ||||||
|
||||||
# needed for spidermonkey build | ||||||
#export SHELL=/bin/bash | ||||||
|
@@ -209,13 +211,22 @@ linuxdeploy \ | |||||
--library=/usr/lib/$ARCH-linux-gnu/libthai.so.0 \ | ||||||
--custom-apprun=$WORKSPACE/AppRun \ | ||||||
--appdir $APPDIR \ | ||||||
--output appimage \ | ||||||
--plugin gtk | ||||||
fi | ||||||
|
||||||
DATE_STR=$(date +%y%m%d%H%M) | ||||||
OUT_APPIMAGE="0ad-$VERSION-$DATE_STR-$ARCH.AppImage" | ||||||
mv 0_A.D.-$VERSION-$ARCH.AppImage $OUT_APPIMAGE | ||||||
|
||||||
REPO="0ad-appimage" | ||||||
TAG="latest" | ||||||
[ -z "$GITHUB_REPOSITORY_OWNER" ] && GITHUB_REPOSITORY_OWNER="0ad-matters" | ||||||
UPINFO="gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|$REPO|$TAG|*$ARCH.AppImage.zsync" | ||||||
|
||||||
./appimagetool --appimage-extract-and-run \ | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
It's in the PATH, installed to $HOME/.local/bin https://github.com/andy5995/linuxdeploy-build-helper-container/blob/3f70f7b215753306b9474f3d95c777498a0c7186/Dockerfile#L99 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. great There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmmm... failed. Strange that this option isn't available:
I'm installing it in the docker image from https://github.com/AppImage/appimagetool Could we just run that argument from the appimage first?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that argument is used widelly in systems without a working FUSE, such as a docker container... I added that flag because before the command was a local file and worked. In this case, we should not need to extract and run the AppImage from $PATH |
||||||
--comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 \ | ||||||
-u "$UPINFO" \ | ||||||
"$APPDIR" "$OUT_APPIMAGE" | ||||||
|
||||||
sha1sum $OUT_APPIMAGE > "$OUT_APPIMAGE.sha1sum" | ||||||
cat "$OUT_APPIMAGE.sha1sum" | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivan-hc Why is this needed now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometime appimagetool require to check if the .desktop file has valid entries, if not to bundle the AppImage fails.
I don't know you, but in my experience I had long workflows failed at the last moment because appigetool was looking for
desktop-file-validate
in $PATH, so from then I always added this in all my projects.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then it sounds like this would be another package that should be added to the linuxdeploy image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivan-hc Oh, it should already be installed https://github.com/andy5995/linuxdeploy-build-helper-container/blob/cb4f350b2d420d9942fe4591db52504388dfdca0/Dockerfile#L13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is :) https://productionresultssa12.blob.core.windows.net/actions-results/5cd3d511-a661-4566-b039-02caecf7092e/workflow-job-run-fdb05dcd-fd11-5f8f-808e-10dbaba077c7/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-02-01T05%3A14%3A43Z&sig=o9pSzsuvKicNvRE6Dg8V5j2Wg1txh8jkcoHq2xniFmQ%3D&ske=2025-02-01T13%3A09%3A46Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-02-01T01%3A09%3A46Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-01-05&sp=r&spr=https&sr=b&st=2025-02-01T05%3A04%3A38Z&sv=2025-01-05
I'll remove it later. Harmless for now.