mirror of
https://github.com/ankitects/anki.git
synced 2025-11-22 20:47:14 -05:00
- Switch to Qt 6.8 for repo default, as 6.7 depends on an older libwebp/tiff which is unavailable on newer installs - Drop tools/mac-x86, as we no longer need to test against Qt 5 - Add flags to cross compile wheels on Mac and Linux - Bump glibc target to 2_36, building on Debian Stable - Increase mpv timeout on macOS to allow for initial gatekeeper checks - Ship both arm64 and amd64 uv on Linux, with a bash stub to pick the appropriate arch.
30 lines
No EOL
708 B
Bash
30 lines
No EOL
708 B
Bash
#!/bin/bash
|
|
# Universal Anki launcher script
|
|
|
|
# Get the directory where this script is located
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# Determine architecture
|
|
ARCH=$(uname -m)
|
|
case "$ARCH" in
|
|
x86_64|amd64)
|
|
LAUNCHER="$SCRIPT_DIR/launcher.amd64"
|
|
;;
|
|
aarch64|arm64)
|
|
LAUNCHER="$SCRIPT_DIR/launcher.arm64"
|
|
;;
|
|
*)
|
|
echo "Error: Unsupported architecture: $ARCH"
|
|
echo "Supported architectures: x86_64, aarch64"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# Check if launcher exists
|
|
if [ ! -f "$LAUNCHER" ]; then
|
|
echo "Error: Launcher not found: $LAUNCHER"
|
|
exit 1
|
|
fi
|
|
|
|
# Execute the appropriate launcher with all arguments
|
|
exec "$LAUNCHER" "$@" |