mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00

It's rarely updated, and the old approach resulted in a 'proper' aqt build only being done on a Mac.
20 lines
554 B
Bash
Executable file
20 lines
554 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
set -e
|
|
|
|
# Get the project root directory
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJ_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
|
|
# Build the dylib first
|
|
echo "Building macOS helper dylib..."
|
|
"$PROJ_ROOT/out/pyenv/bin/python" "$SCRIPT_DIR/helper_build.py"
|
|
|
|
# Create the wheel using uv
|
|
echo "Creating wheel..."
|
|
cd "$SCRIPT_DIR"
|
|
"$PROJ_ROOT/out/extracted/uv/uv" build --wheel
|
|
|
|
echo "Build complete!"
|