appdwarf/apps/mkmusl
Phantop 95be3a7d5d GitHub and AppImageHub support, fix environment variables
removes the apps/appimage script that did this. should function identically

replaces version numbering with dates because incrementing is a nightmare
2022-06-25 22:05:01 -04:00

15 lines
387 B
Bash
Executable file

#!/bin/sh
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
DIR=/tmp/appdwarf
mkdir -p $DIR
curl http://musl.cc/x86_64-linux-musl-native.tgz | tar xz -C$DIR
mv $DIR/x86_64-linux-musl-native $DIR/musl
ln -s gcc $DIR/musl/bin/cc
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/musl
sed -i '4d;3a exec "$@"' $DIR/musl/AppRun
appdwarf $DIR/musl
mv $DIR/musl.sh musl
rm -rf $DIR/musl