diff --git a/app.metainfo.xml b/app.metainfo.xml new file mode 100644 index 0000000..19f5e74 --- /dev/null +++ b/app.metainfo.xml @@ -0,0 +1,47 @@ + + + + CC0-1.0 + + + + + +

Steam is a software distribution service with an online store, automated installation, automatic updates, achievements, SteamCloud synchronized savegame and screenshot functionality, and many social features.

+
+ + + + + + + + + + + + + + + + LicenseRef-proprietary=https://example.com/mylicense.html + + + + + + + + + + + + + + + pkgname-pkgversion + + + intense + +
\ No newline at end of file diff --git a/template.sh.in b/template.sh.in new file mode 100644 index 0000000..1425ed9 --- /dev/null +++ b/template.sh.in @@ -0,0 +1,54 @@ +#!/bin/sh + +## arguments for script and run + +set -eu +export ARCH="$(uname -m)" +export APPIMAGE_EXTRACT_AND_RUN=1 + +## tools that will be used next +APPIMAGETOOL="https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$ARCH.AppImage" +LIB4BN="https://raw.githubusercontent.com/VHSgunzo/sharun/refs/heads/main/lib4bin" +URUNTIME="$(wget -q https://api.github.com/repos/VHSgunzo/uruntime/releases -O - \ + | sed 's/[()",{} ]/\n/g' | grep -oi "https.*appimage.*dwarfs.*$ARCH$" | head -1)" + + +## useful meta for appimagetool +## APP_NAME= +## DESKTOP= +## ICON= +UPINFO="gh-releases-zsync|$(echo "$REPO" | tr '/' '|')|latest|*$ARCH.AppImage.zsync" + + +make_appdir() { + mkdir -p .AppDir + mkdir -p .AppDir/share/icon + mkdir -p .AppDir/share/metainfo + mkdir -p .AppDir/lib + mkdir -p .AppDir/bin +} + +build() { + CURRENTDIR="$(readlink -f "$(dirname "$0")")" + git clone $REPO +} + +sharun() { + ln -s ./bin/$APP ./AppRun + ./sharun -g +} + +generate_app() { + printf "$UPINFO" > data.upd_info + llvm-objcopy --update-section=.upd_info=data.upd_info \ + --set-section-flags=.upd_info=noload,readonly ./uruntime + printf 'AI\x02' | dd of=./uruntime bs=1 count=3 seek=8 conv=notrunc + wget -q "$URUNTIME" -O ./uruntime + chmod +x ./uruntime + ./uruntime --appimage-mkdwarfs -f \ + --set-owner 0 --set-group 0 \ + --no-history --no-create-timestamp \ + --compression zstd:level=22 -S24 -B16 \ + --header uruntime \ + -i ./AppDir -o "$PACKAGE"-"$VERSION"-anylinux-"$ARCH".AppImage +}