Anki/scripts/build
Damien Elmes f842ab7c9d switch convenience symlinks to .bazel/
Unfortunately 5efaf5a4be broke the Svelte
language tools - presumably having paths outside of the repo is confusing
them.

As a plan B, the symlinks have been shifted to a single subdir. Along
with some exclusions in the VS Code config, this should allow VS Code
to continue to work out of the box, but the docs will need updating
to reflect the extra work required for PyCharm/IntelliJ.

+ fix svelte-check execution on a system without node installed. It
still throws up some errors that are presumably caused by our multiple
rootDirs - not sure if there's an easy way to work around that.
2022-01-24 11:06:02 +10:00

12 lines
167 B
Bash
Executable file

#!/bin/bash
set -e
test -e WORKSPACE || (
echo "Run from project root"
exit 1
)
rm -rf bazel-dist
bazel build --config opt dist
tar xvf .bazel/bin/dist.tar