Set up Rime Ice from the ISO's assets on China installs
This commit is contained in:
1 parent
b6bf851af4
commit
32ebf6b85b
6 files changed
+58
-2
No files matched your search
@@ -5,6 +5,7 @@ global)
|
||||
china)
|
||||
mkdir -p /etc/omarchy
|
||||
echo china >/etc/omarchy/region
|
||||
omarchy-pkg-add fcitx5-configtool fcitx5-rime librime opencc rime-ice-installer
|
||||
;;
|
||||
*)
|
||||
echo "Unknown OMARCHY_REGION: $OMARCHY_REGION" >&2
|
||||
|
||||
@@ -72,3 +72,11 @@ t2fanrd
|
||||
|
||||
# Framework 16
|
||||
qmk-hid
|
||||
|
||||
# China region input method (install/config/region.sh)
|
||||
dialog
|
||||
fcitx5-configtool
|
||||
fcitx5-rime
|
||||
librime
|
||||
opencc
|
||||
rime-ice-installer
|
||||
@@ -13,3 +13,4 @@ run_logged "$OMARCHY_INSTALL/user/hardware/vm-no-animations.sh"
|
||||
|
||||
run_logged "$OMARCHY_INSTALL/user/default-keyring.sh"
|
||||
run_logged "$OMARCHY_INSTALL/user/mise.sh"
|
||||
run_logged "$OMARCHY_INSTALL/user/region.sh"
|
||||
@@ -0,0 +1,9 @@
|
||||
region=$(omarchy-region)
|
||||
|
||||
if [[ $region == "China" ]]; then
|
||||
if [[ $OMARCHY_SETUP_CONTEXT == "iso-chroot" ]]; then
|
||||
rime-ice-installer --yes --asset-dir /opt/packages/rime-ice
|
||||
else
|
||||
echo "Skipping Rime Ice setup in $OMARCHY_SETUP_CONTEXT: only the ISO bundles its assets"
|
||||
fi
|
||||
fi
|
||||
Reference in new issue
Block a user