Skip to content

Commit

Permalink
APPIMAGE: better test for choosing native or appimage libc
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscon committed Sep 15, 2023
1 parent f16ed36 commit 99d6c84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions misc/appimage/appimage-manual_creation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ Categories=Game;
Keywords=quake;first;person;shooter;multiplayer;'

TESTPROGRAM='
#include "curl/curl.h"
int main(){
return 0;
curl_easy_init();
return 0;
}
'

Expand Down Expand Up @@ -64,7 +66,7 @@ mkdir -p "$DIR/AppDir/usr/lib" || exit 1
mkdir -p "$DIR/AppDir/usr/lib-override" || exit 1

echo "$TESTPROGRAM" > "$DIR/test.c" || exit 2
gcc "$DIR/test.c" -o "$DIR/AppDir/usr/bin/test" ||exit 2
gcc "$DIR/test.c" -o "$DIR/AppDir/usr/bin/test" -lcurl || exit 2
rm -f "$DIR/AppDir/test.c" || exit 2

VERSION=$(sed -n 's/.*VERSION_NUMBER.*"\(.*\)".*/\1/p' src/version.h)
Expand Down

0 comments on commit 99d6c84

Please sign in to comment.