Compare commits

...

3 commits

Author SHA1 Message Date
Phantop 50ab3e3fbb fix workflow w/ ubuntu updates 2024-11-02 01:07:16 -04:00
Phantop 76daa9ca27 fix outfunc handling better 2024-08-19 02:00:57 -04:00
Phantop a9d91c3471 fix appdwarf indentation 2024-08-19 01:59:41 -04:00
4 changed files with 24 additions and 18 deletions

View file

@ -30,7 +30,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install packaging dependencies
run: sudo apt install -y aria2 libarchive-tools
run: |
sudo apt update -y
sudo apt install -y aria2 libarchive-tools
- name: Setup DwarFS
run: |
sudo cp appdwarf /bin

View file

@ -205,22 +205,22 @@ if [ ! -d "$1" ]; then # directory doesn't exist, see if this is an appimage
printf '\e[0m'
zzexe -z "$@"
fi
fi
fi
head="$(mktemp)"
if [ "$bundle" ]; then { # behavior for bundling a dwarfs executable
zdata="$(mktemp)"
zstd -cq "$bundle" > "$zdata"
outfunc
echo "off=$(($( (outfunc; outfunc bundlehead; outfunc header) | wc -l)+3))"
echo "len=$(($(wc -l < "$zdata")+1))"
outfunc bundlehead
} > "$head"
fi
outfunc header >> "$head"
test "$bundle" && cat "$zdata" >> "$head"
echo >> "$head"
head="$(mktemp)"
if [ "$bundle" ]; then { # behavior for bundling a dwarfs executable
zdata="$(mktemp)"
zstd -cq "$bundle" > "$zdata"
outfunc
echo "off=$(($( (outfunc; outfunc bundlehead; outfunc header) | wc -l)+3))"
echo "len=$(($(wc -l < "$zdata")+1))"
outfunc bundlehead
} > "$head"
fi
outfunc header >> "$head"
test "$bundle" && cat "$zdata" >> "$head"
echo >> "$head"
mkdwarfs -o "$(realpath "$1").sh" -B5 --header "$head" -i "$@" --categorize=pcmaudio -C pcmaudio/waveform::flac:level=8
rm -rf "$head" "$1"
chmod +x "$(realpath "$1").sh"
mkdwarfs -o "$(realpath "$1").sh" -B5 --header "$head" -i "$@" --categorize=pcmaudio -C pcmaudio/waveform::flac:level=8
rm -rf "$head" "$1"
chmod +x "$(realpath "$1").sh"

View file

@ -21,6 +21,7 @@ VER=$(curl $LINK/"$VER"/latest.version)
LINK="$LINK/$VER/dotnet-$TYPE-$VER-linux-x64.tar.gz"
ungz
script="$0"
apprun() {
export DOTNET_ROOT="$APPDIR"
case "$(basename "$ARGV0")" in
@ -32,4 +33,5 @@ esac
}
appa
script="$(which appdwarf)"
appmk

View file

@ -17,6 +17,7 @@ t=winetricks
wget -O"$DIR"/bin/$t github.com/$t/$t/raw/master/src/$t
chmod +x "$DIR"/bin/$t
script="$0"
apprun() {
export PATH="$APPDIR"/bin:"$PATH"
export LD_LIBRARY_PATH="$APPDIR"/lib64:"$APPDIR"/lib:"$LD_LIBRARY_PATH"
@ -37,4 +38,5 @@ if [ "$PREFIX" ]; then
appa
fi
script="$(which appdwarf)"
appmk