packaging: make build-appimage.sh source-only
Some checks failed
CI / build-and-test (clang) (push) Has been cancelled
CI / build-and-test (gcc) (push) Has been cancelled
CI / strict-warnings (clang, -Wall -Wextra -Wpedantic -Wshadow -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -O2 -std=c11 -Werror) (push) Has been cancelled
CI / strict-warnings (gcc, -Wall -Wextra -Wpedantic -Wshadow -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -Wformat-security -Wlogical-op -Wjump-misses-init -Wdouble-promotion -O2 -std=c11 -Werror) (push) Has been cancelled
CI / sanitizers (push) Has been cancelled
CI / pie-hardening (push) Has been cancelled
CI / cross-aarch64 (push) Has been cancelled
CI / dist-reproducibility (push) Has been cancelled
CI / packaging-syntax (push) Has been cancelled
CI / release (push) Has been cancelled
Some checks failed
CI / build-and-test (clang) (push) Has been cancelled
CI / build-and-test (gcc) (push) Has been cancelled
CI / strict-warnings (clang, -Wall -Wextra -Wpedantic -Wshadow -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -O2 -std=c11 -Werror) (push) Has been cancelled
CI / strict-warnings (gcc, -Wall -Wextra -Wpedantic -Wshadow -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -Wformat-security -Wlogical-op -Wjump-misses-init -Wdouble-promotion -O2 -std=c11 -Werror) (push) Has been cancelled
CI / sanitizers (push) Has been cancelled
CI / pie-hardening (push) Has been cancelled
CI / cross-aarch64 (push) Has been cancelled
CI / dist-reproducibility (push) Has been cancelled
CI / packaging-syntax (push) Has been cancelled
CI / release (push) Has been cancelled
The CLI AppImage no longer bundles libzuptsdk/libpqvaptvupt (removed in the 4.1.0 source-only switch); the binary links only libc/libm/pthread from the host. Drop the vendored-library install and the LD_LIBRARY_PATH in AppRun, and default VERSION to 4.2.0.
This commit is contained in:
parent
846faac428
commit
97cf7b4e5c
1 changed files with 4 additions and 9 deletions
|
|
@ -6,7 +6,7 @@
|
|||
set -e
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
VERSION="${VERSION:-3.0.0}"
|
||||
VERSION="${VERSION:-4.2.0}"
|
||||
ARCH="${ARCH:-x86_64}"
|
||||
PKGNAME="vaptvupt"
|
||||
LEGACY="zupt"
|
||||
|
|
@ -14,21 +14,16 @@ NAME="$PKGNAME-$VERSION-$ARCH"
|
|||
OUT="/tmp/${NAME}.AppDir"
|
||||
|
||||
rm -rf "$OUT"
|
||||
mkdir -p "$OUT/usr/bin" "$OUT/usr/lib" "$OUT/usr/share/applications" "$OUT/usr/share/icons/hicolor/256x256/apps"
|
||||
mkdir -p "$OUT/usr/bin" "$OUT/usr/share/applications" "$OUT/usr/share/icons/hicolor/256x256/apps"
|
||||
|
||||
# Source-only build: the binary links only libc/libm/pthread from the host,
|
||||
# so the AppDir ships no bundled libraries.
|
||||
install -m 755 $PKGNAME "$OUT/usr/bin/$PKGNAME"
|
||||
ln -sf $PKGNAME "$OUT/usr/bin/$LEGACY"
|
||||
install -m 644 vendor/zuptsdk/libzuptsdk.so.2.0.0 "$OUT/usr/lib/"
|
||||
ln -sf libzuptsdk.so.2.0.0 "$OUT/usr/lib/libzuptsdk.so.2"
|
||||
ln -sf libzuptsdk.so.2 "$OUT/usr/lib/libzuptsdk.so"
|
||||
install -m 644 vendor/pqvaptvupt/libpqvaptvupt.so.0.6.0 "$OUT/usr/lib/"
|
||||
ln -sf libpqvaptvupt.so.0.6.0 "$OUT/usr/lib/libpqvaptvupt.so.0"
|
||||
ln -sf libpqvaptvupt.so.0 "$OUT/usr/lib/libpqvaptvupt.so"
|
||||
|
||||
cat > "$OUT/AppRun" <<APPRUN
|
||||
#!/bin/bash
|
||||
HERE="\$(dirname "\$(readlink -f "\${0}")")"
|
||||
export LD_LIBRARY_PATH="\$HERE/usr/lib:\$LD_LIBRARY_PATH"
|
||||
export PATH="\$HERE/usr/bin:\$PATH"
|
||||
exec "\$HERE/usr/bin/$PKGNAME" "\$@"
|
||||
APPRUN
|
||||
|
|
|
|||
Loading…
Reference in a new issue