Launch Werkzeug as an own-program ZX bundle (build/Werkzeug.zx via werk-zx-player) with the shared app view, child app launching and the hosted platform layer. Align kryon/apps/entity pins on 3fc33496 with the shared bb0323ce toolchain, repackage AppImage/Deb flows, and expect the three new entity picture resources in the GUI test.
32 lines
1.5 KiB
Bash
Executable File
32 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
version=$(sed -n '1p' "$root/VERSION")
|
|
arch=${APPIMAGE_ARCH:-$(uname -m)}
|
|
linuxdeploy=${LINUXDEPLOY:-linuxdeploy}
|
|
artifacts=${WERK_BUILD_DIR:-$root/build}
|
|
appdir="$root/build/package/appimage/werk.AppDir"
|
|
out="$root/build/release/werk-${version}-${arch}.AppImage"
|
|
|
|
test -n "$version"
|
|
rm -rf "$appdir"
|
|
mkdir -p "$appdir/usr/bin" "$appdir/usr/lib/werk/apps" "$appdir/usr/share/applications" \
|
|
"$appdir/usr/share/metainfo" "$appdir/usr/share/icons/hicolor/512x512/apps" "$(dirname "$out")"
|
|
cp "$artifacts/werk" "$appdir/usr/bin/werk"
|
|
cp "$artifacts"/apps/*.zx "$appdir/usr/lib/werk/apps/"
|
|
cp "$artifacts/pfp.webp" "$appdir/usr/lib/werk/pfp.webp"
|
|
mkdir -p "$appdir/usr/lib/werk/tools"
|
|
cp "$artifacts"/tools/* "$appdir/usr/lib/werk/tools/"
|
|
python3 "$root/scripts/install-launchers.py" --data-dir "$appdir/usr/share"
|
|
cp "$root/packaging/linux/xyz.waozi.werk.appdata.xml" "$appdir/usr/share/metainfo/xyz.waozi.werk.appdata.xml"
|
|
cp "$root/assets/app/icon.png" "$root/build/package/appimage/werk.png"
|
|
run_dir=$(mktemp -d "$root/build/package/appimage/output.XXXXXX")
|
|
(cd "$run_dir" && ARCH="$arch" "$linuxdeploy" --appdir "$appdir" --desktop-file "$root/packaging/linux/xyz.waozi.werk.desktop" \
|
|
--icon-file "$root/build/package/appimage/werk.png" --output appimage)
|
|
image=$(find "$run_dir" -maxdepth 1 -type f -name '*.AppImage' -print | head -n 1)
|
|
test -n "$image"
|
|
mv "$image" "$out"
|
|
chmod 0755 "$out"
|
|
printf 'built %s\n' "$out"
|