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

Shrinks rslib.so from about 40MB to about 26MB, at the cost of considerably higher build time in a release build.
14 lines
226 B
Bash
Executable file
14 lines
226 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export PATH="$PATH:/state/rust/cargo/bin"
|
|
export BUILD_ROOT=/state/build
|
|
export RELEASE=2
|
|
ln -sf out/node_modules .
|
|
|
|
if [ $(uname -m) = "aarch64" ]; then
|
|
./ninja wheels:anki
|
|
else
|
|
./ninja bundle
|
|
fi
|