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

https://forums.ankiweb.net/t/recent-anki-updates-bundle-id-change-disabling-app-nap-macos-anki-connect/65550
21 lines
566 B
Bash
Executable file
21 lines
566 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"
|
|
rm -rf dist
|
|
"$PROJ_ROOT/out/extracted/uv/uv" build --wheel
|
|
|
|
echo "Build complete!"
|