Skip to content

Commit c102ae2

Browse files
committed
appimage curl dependency
1 parent b9c617a commit c102ae2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README-AppImage.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ This script will:
3434

3535
The AppImage includes:
3636
- TIC-80 executable (tic80 binary)
37+
- Required libraries (curl, etc. for Linux networking)
3738
- Desktop integration files (.desktop, icon)
3839
- AppRun script for proper execution
3940

@@ -56,6 +57,6 @@ The AppImage is automatically built and deployed via GitHub Actions:
5657

5758
## Notes
5859

59-
- TIC-80 is designed to be statically linked, so the AppImage should not require external libraries
60+
- The AppImage bundles all required libraries (like curl for networking), making it truly portable
6061
- Desktop integration works automatically when the AppImage is run
6162
- For development tools and demo assets, users should download the full TIC-80 distribution

build-appimage.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ exec "${HERE}/usr/bin/tic80" "$@"
4242
EOF
4343
chmod +x "$APPDIR/AppRun"
4444

45-
# Copy required libraries (if any - TIC-80 should be statically linked)
46-
# ldd build/bin/tic80 | grep "=>" | awk '{print $3}' | xargs -I {} cp {} "$APPDIR/usr/lib/" 2>/dev/null || true
45+
# Copy required libraries (TIC-80 links against curl on Linux)
46+
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
47+
echo "Copying required libraries..."
48+
ldd build/bin/tic80 | grep "=>" | awk '{print $3}' | xargs -I {} cp {} "$APPDIR/usr/lib/" 2>/dev/null || true
49+
fi
4750

4851
# Download appimagetool if not present
4952
if [ ! -f "appimagetool.AppImage" ]; then

0 commit comments

Comments
 (0)