Commit Graph

146 Commits

Author SHA1 Message Date
Damien Elmes
63f05b2b1e Update translations 2022-05-02 21:14:10 +10:00
Damien Elmes
a989e50838 Update translations 2022-04-25 14:35:35 +10:00
Damien Elmes
031fc625fd Update Mac build to Qt 6.3 2022-04-20 21:33:31 +10:00
Damien Elmes
ff9aed91de Update translations 2022-04-20 19:12:10 +10:00
Damien Elmes
a7ad6aebba Update translations 2022-04-09 13:08:35 +10:00
Damien Elmes
26d40c3a8e Update translations 2022-04-06 11:51:49 +10:00
Damien Elmes
c96ef8cd0a Update translations 2022-04-05 11:23:07 +10:00
Damien Elmes
6718e67883 Update translations 2022-03-31 14:48:08 +10:00
Damien Elmes
ebe33a993c Update translations 2022-03-29 10:53:45 +10:00
Damien Elmes
07ac2e6352 Update translations 2022-03-28 18:54:40 +10:00
Damien Elmes
44342660d8 Update translations
Update translations
2022-03-21 21:49:28 +10:00
Damien Elmes
02c580e4f8 Update translations 2022-03-17 21:09:49 +10:00
Damien Elmes
02ba50f277 Update translations 2022-03-15 16:52:15 +10:00
Damien Elmes
e7f99356e9 Update translations 2022-03-09 18:06:58 +10:00
Damien Elmes
2c80bcb571 Update to latest rules_rust, which unblocks the tokio upgrade
Rust version has been pinned, as 1.59 gets stuck compiling pyo3_macros,
and appears to have other issues:
https://github.com/rust-lang/rust/issues/94390
2022-03-03 19:48:17 +10:00
Damien Elmes
3564ece6b5 Update translations 2022-02-25 17:24:53 +10:00
Damien Elmes
902f125954 Update rules_nodejs 2022-02-25 16:19:26 +10:00
Damien Elmes
4ed499fbab fix bundle_extras_linux_amd64 link 2022-02-22 23:42:21 +10:00
Damien Elmes
d4f27d1d56 update translations 2022-02-14 18:54:19 +10:00
Damien Elmes
95dbf30fb9 updates to the build process and binary bundles
All platforms:

- rename scripts/ to tools/: Bazelisk expects to find its wrapper script
(used by the Mac changes below) in tools/. Rather than have a separate
scripts/ and tools/, it's simpler to just move everything into tools/.
- wheel outputs and binary bundles now go into .bazel/out/dist. While
not technically Bazel build products, doing it this way ensures they get
cleaned up when 'bazel clean' is run, and it keeps them out of the source
folder.
- update to the latest Bazel

Windows changes:

- bazel.bat has been removed, and tools\setup-env.bat has been added.
Other scripts like .\run.bat will automatically call it to set up the
environment.
- because Bazel is now on the path, you can 'bazel test ...' from any
folder, instead of having to do \anki\bazel.
- the bat files can handle being called from any working directory,
so things like running "\anki\tools\python" from c:\ will work.
- build installer as part of bundling process

Mac changes:

- `arch -arch x86_64 bazel ...` will now automatically use a different
build root, so that it is cheap to switch back and forth between archs
on a new Mac.
- tools/run-qt* will now automatically use Rosetta
- disable jemalloc in Mac x86 build for now, as it won't build under
Rosetta (perhaps due to its build scripts using $host_cpu instead of
$target_cpu)
- create app bundle as part of bundling process

Linux changes:

- remove arm64 orjson workaround in Linux bundle, as without a
readily-available, relatively distro-agonstic PyQt/Qt build
we can use, the arm64 Linux bundle is of very limited usefulness.
- update Docker files for release build
- include fcitx5 in both the qt5 and qt6 bundles
- create tarballs as part of the bundling process
2022-02-10 19:23:07 +10:00
Damien Elmes
66c7a5d420 update translations 2022-02-07 22:25:35 +10:00
Damien Elmes
8cdb978a03 update to Rust 1.58.1
https://blog.rust-lang.org/2022/01/20/cve-2022-21658.html
2022-01-24 13:21:00 +10:00
Damien Elmes
a6c6de8a29 update translations 2022-01-16 15:48:46 +10:00
Damien Elmes
732c33c2b3 update to latest rules_python 2022-01-15 16:16:33 +10:00
Damien Elmes
27f6585307 update to latest rules_rust + Rust 1.58 2022-01-15 14:22:21 +10:00
Damien Elmes
a3b09b0c81 update rules_rust 2021-12-20 17:28:52 +10:00
Damien Elmes
cf4c555169 update translations 2021-12-20 12:57:35 +10:00
Damien Elmes
fa71b40df9 update translations 2021-12-08 10:23:27 +10:00
Damien Elmes
67ee6f9c0e update to Rust 1.57 + latest rules_rust 2021-12-03 20:35:52 +10:00
Damien Elmes
763932cbed update translations 2021-12-03 19:51:28 +10:00
Damien Elmes
c20bc0a726 update translations 2021-11-24 14:44:02 +10:00
Damien Elmes
11042a16ce Fix latest Rusqlite on Windows
https://github.com/bazelbuild/rules_rust/pull/1025
2021-11-19 10:44:02 +10:00
Damien Elmes
b4faa2f459 update Rust to 1.56.1 2021-11-18 20:44:15 +10:00
Damien Elmes
757cabf915 update translations 2021-11-15 16:03:31 +10:00
Damien Elmes
f40d3a299f update translations 2021-11-12 15:02:17 +10:00
Damien Elmes
5a8e064a7d updated package scripts 2021-10-28 18:46:45 +10:00
Damien Elmes
af9650991f update translations 2021-10-26 08:30:13 +10:00
Damien Elmes
cf71ebfe7c drop rules_pip
Our vendored Python includes a recent pip, so we no longer need rules_pip's
dependencies for our PyQt scripts.
2021-10-16 16:54:35 +10:00
Damien Elmes
819ec40a3e update rules_python 2021-10-15 15:07:31 +10:00
Damien Elmes
a4db8c5c75 update translations 2021-10-13 08:44:30 +10:00
Damien Elmes
86572f09fd update to the latest rules_rust 2021-10-02 15:13:37 +10:00
Damien Elmes
60aa75226b update translations 2021-10-01 20:48:20 +10:00
Damien Elmes
a3d9f90af5 update to latest rules_nodejs & switch to ts_project
ts_library() is deprecated and will presumably be dropped from a
future rules_nodejs, and it wasn't working with the jest tests
after updating, so we switch over to ts_project().

There are some downsides:

- It's a bit slower, as the worker mode doesn't appear to function
at the moment.
- Getting it working with a mix of source files and generated files
was quite tricky, especially as things behave differently on Windows,
and differently when editing with VS Code. Solved with a small patch
to the rules, and a wrapper script that copies everything into the
bin folder first. To keep VS Code working correctly as well, the built
files are symlinked into the source folder.
- TS libraries are not implicitly linked to node_modules, so they
can't be imported with an absolute name like "lib/proto" - we need
to use relative paths like "../lib/proto" instead. Adjusting "paths"
in tsconfig.json makes it work for TS compilation, but then it fails
at the esbuild stage. We could resolve it by wrapping the TS
libraries in a subsequent js_library() call, but that has the downside
of losing the transient dependencies, meaning they need to be listed
again.  Alternatively we might be able to solve it in the future by
adjusting esbuild, but for now the paths have been made relative to
keep things simple.

Upsides:

- Along with updates to the Svelte tooling, Svelte typing has improved.
All exports made in a Svelte file are now visible to other files that
import them, and we no longer rebuild the Svelte files when TS files
are updated, as the Svelte files do no type checking themselves, and
are just a simple transpilation. Svelte-check now works on Windows again,
and there should be no errors when editing in VS Code after you've
built the project. The only downside seems to be that cmd+clicking
on a Svelte imports jumps to the .d.ts file instead of the original now;
presumably they'll fix that in a future plugin update.
- Each subfolder now has its own tsconfig.json, and tsc can be called
directly for testing purposes (but beware it will place build products
in the source tree): ts/node_modules/.bin/tsc -b ts
- We can drop the custom esbuild_toolchain, as it's included in the
latest rules_nodejs.

Other changes:

- "image_module_support" is moved into lib/, and imported with
<reference types=...>
- Images are now imported directly from their npm package; the
extra copy step has been removed.

Windows users may need to use "bazel clean" before building this,
due to old files lying around in the build folder.
2021-10-01 12:52:53 +10:00
Damien Elmes
2ea7a06234 update translations 2021-09-13 14:58:03 +10:00
Damien Elmes
9f0929db32 update translations 2021-09-08 19:19:53 +10:00
Damien Elmes
31b0729ee1 update translations 2021-09-06 18:31:36 +10:00
Damien Elmes
3077a1f98a update translations 2021-08-25 11:21:21 +10:00
Damien Elmes
8417cde5c9 update translations 2021-08-22 15:32:46 +10:00
Damien Elmes
d34ee84844 update translations 2021-08-19 20:26:43 +10:00
Damien Elmes
ead71a8895 update translations 2021-07-30 18:28:19 +10:00