Minor tweaks to tools/

This commit is contained in:
Damien Elmes 2025-01-12 16:07:21 +11:00
parent 38821372dd
commit 3b4ada175d
4 changed files with 13 additions and 17 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# #
# Run a command with an alternative buildroot and Intel architecture target, for building Intel on an ARM Mac. # Run a command with an alternative buildroot and Intel architecture target, for building Intel on an ARM Mac.
# Eg ./mac-x86 ./tools/run-qt5.14 # Eg ./tools/mac-x86 ./tools/run-qt5.14
# #
# Uses hard-coded paths to Python and build folders. # Uses hard-coded paths to Python and build folders.
# #

6
tools/run-lin Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
#
# Invokes an external script to transfer files to a Linux machine and run Anki on it.
# You need to provide your own script if you wish to use this.
(cd ../release/lin && ./test)

6
tools/run-win Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
#
# Invokes an external script to transfer files to a Windows machine and run Anki on it.
# You need to provide your own script if you wish to use this.
(cd ../release/win && ./test)

View file

@ -1,16 +0,0 @@
@echo off
pushd "%~dp0"\..
REM add msys/bazel to path if they're not already on it
where /q bazel || (
set PATH=c:\msys64\usr\bin;\bazel;"%PATH%"
)
if not exist windows.bazelrc (
rem By default, Bazel will place build files in c:\users\<user>\_bazel_<user>, and this
rem can lead to build failures when the path names grow too long. So on Windows, the
rem default storage location is \bazel\anki instead.
echo startup --output_user_root=\\bazel\\anki > windows.bazelrc
)
popd