The fork takes its own name everywhere a user can see it: binaries (voculinux, voculinux-gui), desktop entry, autostart, tray, D-Bus namespace (com.voculinux.Voculinux, no alias for the old name), config/data/cache dirs, single-instance lock, IBus engine identity, tray icons, resource prefixes, VOCULINUX_* environment names, and the update-checker user agent. The internal Python module stays vocalinux and the distribution metadata keeps the upstream URLs as provenance. On first run a previous Vocalinux install's config.json, custom dictionary, and portal restore token are copied once into the new locations (new config always wins, no merge, no write-back); models re-resolve through the pinned-checksum download path. An offline naming-sweep test proves no old-name strings remain on user-visible surfaces outside the allowlist. Refs #18
41 lines
1.7 KiB
Bash
Executable File
41 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run the AppImage build inside the pinned base image.
|
|
#
|
|
# Usage: docker-build.sh <path-to-wheel> <version> [output-dir]
|
|
#
|
|
# This is what CI calls and what you should call locally, so that what you get
|
|
# is what CI gets: the base image decides the glibc floor and the GTK version
|
|
# the AppImage links against, and building on the host instead means shipping
|
|
# whatever that host happens to run.
|
|
#
|
|
# Honours VOCULINUX_APPIMAGE_REQUIRE_VULKAN / _SKIP_VULKAN like build.sh, and
|
|
# keeps glslc and the pywhispercpp Vulkan build in VOCULINUX_APPIMAGE_CACHE
|
|
# (~/.cache/voculinux-appimage by default) so the next build reuses them.
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/../.." && pwd)"
|
|
IMAGE="$(awk '$1=="base-image" {print $3}' "$REPO_ROOT/packaging/appimage/tool_checksums.txt")"
|
|
if [ -z "$IMAGE" ]; then
|
|
echo "No base-image pin in packaging/appimage/tool_checksums.txt" >&2
|
|
exit 1
|
|
fi
|
|
|
|
CACHE="${VOCULINUX_APPIMAGE_CACHE:-${XDG_CACHE_HOME:-$HOME/.cache}/voculinux-appimage}"
|
|
mkdir -p "$CACHE"
|
|
|
|
# The wheel and output dir are given as host paths; the repo is mounted at the
|
|
# same place it lives, so relative arguments keep working inside.
|
|
# seccomp=unconfined only to allow unshare: without it build.sh's isolated GI
|
|
# smoke test silently skips, which is how #585 shipped.
|
|
exec docker run --rm \
|
|
--security-opt seccomp=unconfined \
|
|
-v "$REPO_ROOT:$REPO_ROOT" -w "$REPO_ROOT" \
|
|
-v "$CACHE:/cache" \
|
|
-e VOCULINUX_APPIMAGE_CACHE=/cache \
|
|
-e VOCULINUX_APPIMAGE_REQUIRE_VULKAN \
|
|
-e VOCULINUX_APPIMAGE_SKIP_VULKAN \
|
|
-e CMAKE_BUILD_PARALLEL_LEVEL \
|
|
-e HOST_UID="$(id -u)" \
|
|
-e HOST_GID="$(id -g)" \
|
|
"$IMAGE" bash packaging/appimage/container-build.sh "$@"
|