fcitx / flatpak-fcitx5

Flatpak script for fcitx 5
23 stars 6 forks source link

Offline Build Support for bzlmod #27

Closed phoepsilonix closed 1 month ago

phoepsilonix commented 1 month ago

Add bazel-central-registry to the sources. Add the --registry option to the bazel command.

Add bazel_mirror.py and downloader.cfg.(#23, @wengxt) Add the --experimental_downloader_config option to the bazel command of update_mozc_deps.

Added MODULE.bazel to zip-code.patch for offline building with bzlmod.

remove sdk-extensions of bazel. install bazel version 7.3.1 from github for bzlmod and offline build. sdk: dependency: org.kde.Sdk//6.6 or 6.7 org.freedesktop.Sdk.Extension.bazel//23.08 bazel 7.1.1

bazel-7.3.1: Only one flag is accepted per --linkopt option.

Update mozc-deps.yaml and zip-code.patch

phoepsilonix commented 1 month ago

@wengxt

Hi. This is a clean copy of #23. In the sdk-extensions, LLVM 18 has been retained, while Bazel has been changed to the one from GitHub releases.

Please check it.

phoepsilonix commented 1 month ago

Since it seems that cpython needs to be separated for x86_64 and aarch64, it might be a bit difficult to do everything with a script.

phoepsilonix commented 1 month ago

I would be happy if you could check this as well. https://github.com/flathub/org.fcitx.Fcitx5.Addon.Mozc/pull/10