Skip to content

Commit 8f9d047

Browse files
authored
adapt xkeyboard-config-2.45 directory change (#53)
1 parent 4239d32 commit 8f9d047

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/compare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- name: Install bsdtar
1111
run: |
12-
sudo apt install -y libarchive-tools
12+
sudo apt update && sudo apt install -y libarchive-tools
1313
sudo ln -sf /usr/bin/bsdtar /usr/bin/tar
1414
1515
- name: Download artifact

entry/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ option(BUILD_SPELL_DICT "" OFF)
4646
# Override iso-codes paths and xkb default rules file
4747
set(ISOCODES_ISO3166_JSON "${CMAKE_INSTALL_PREFIX}/share/iso-codes/json/iso_3166-1.json")
4848
set(ISOCODES_ISO639_JSON "${CMAKE_INSTALL_PREFIX}/share/iso-codes/json/iso_639-3.json")
49-
set(XKEYBOARDCONFIG_XKBBASE "${CMAKE_INSTALL_PREFIX}/share/X11/xkb")
49+
set(XKEYBOARDCONFIG_XKBBASE "${CMAKE_INSTALL_PREFIX}/share/xkeyboard-config-2")
5050
set(XKEYBOARDCONFIG_DATADIR "${CMAKE_INSTALL_PREFIX}/share")
5151

5252
add_subdirectory(fcitx5)

entry/src/main/cpp/src/fcitx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void setupEnv(const std::string &bundle, const std::string &resfile) {
5959
::fs::path xdg_data_dirs = resfilePath / "usr" / "share";
6060
std::string fcitx_data_dirs = xdg_data_dirs / "fcitx5";
6161
std::string libime_model_dirs = resfilePath / "usr" / "lib" / "libime";
62-
std::string xkb_config_root = xdg_data_dirs / "X11" / "xkb";
62+
std::string xkb_config_root = xdg_data_dirs / "xkeyboard-config-2";
6363
setenv("XDG_DATA_DIRS", xdg_data_dirs.c_str(), 1);
6464
setenv("FCITX_DATA_DIRS", fcitx_data_dirs.c_str(), 1);
6565
setenv("LIBIME_MODEL_DIRS", libime_model_dirs.c_str(), 1);

scripts/install-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ for addon in "${addons[@]}"; do
3939
file=$addon-any.tar.bz2
4040
[[ -f cache/$file ]] || wget -P cache https://github.com/fcitx-contrib/fcitx5-plugins/releases/download/macos-latest/$file
4141
tar xf cache/$file -C $RES_EXTRACT_DIR lib || true
42-
tar xf cache/$file -C $RES_EXTRACT_DIR share
42+
tar xf cache/$file -C $RES_EXTRACT_DIR --exclude share/icons share # symlink extraction error on Windows
4343
done
4444

4545
RAW_DIR=entry/src/main/resources/rawfile

scripts/postbuild.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ mkdirSync(isoJsonDir, { recursive: true })
1212

1313
const commands = [
1414
['cmake', '--install', buildDir, '--component', 'config'],
15-
['cp', '-r', `${prebuiltUsrDir}/share/X11`, destShareDir],
15+
['cp', '-r', `${prebuiltUsrDir}/share/xkeyboard-config-2`, destShareDir],
1616
['cp', `${prebuiltUsrDir}/share/iso-codes/json/iso_3166-1.json`, isoJsonDir],
1717
['cp', `${prebuiltUsrDir}/share/iso-codes/json/iso_639-3.json`, isoJsonDir],
1818
]

0 commit comments

Comments
 (0)