diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 409d196a..6690f92f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,7 +4,7 @@ ## 1.0.3 -* Rollback #247 +* Rollback [#247](https://github.com/Riey/kime/issues/247) ## 1.0.2 diff --git a/scripts/build.sh b/scripts/build.sh index 6830747a..04caa427 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -61,6 +61,8 @@ cargo_build -p kime-xim -p kime-wayland -p kime-indicator cp $TARGET_DIR/kime-xim $KIME_OUT cp $TARGET_DIR/kime-wayland $KIME_OUT cp $TARGET_DIR/kime-indicator $KIME_OUT +cp src/engine/cffi/kime_engine.h $KIME_OUT +cp src/engine/cffi/kime_engine.hpp $KIME_OUT cp $TARGET_DIR/libkime_engine.so $KIME_OUT cp LICENSE $KIME_OUT cp res/default_config.yaml $KIME_OUT diff --git a/scripts/install.sh b/scripts/install.sh index 27749f12..bdf25e24 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -13,6 +13,10 @@ if [ -z "$KIME_BIN_DIR" ]; then KIME_BIN_DIR=usr/bin fi +if [ -z "$KIME_INCLUDE_DIR" ]; then + KIME_INCLUDE_DIR=usr/include +fi + if [ -z "$KIME_CONFIG_DIR" ]; then KIME_CONFIG_DIR=etc/xdg/kime fi @@ -59,9 +63,12 @@ install_bin kime-indicator install_bin kime-xim install_bin kime-wayland +install -Dm644 $KIME_OUT/kime_engine.h -t "$PREFIX/$KIME_INCLUDE_DIR" +install -Dm644 $KIME_OUT/kime_engine.hpp -t "$PREFIX/$KIME_INCLUDE_DIR" install -Dm644 $KIME_OUT/default_config.yaml -T "$PREFIX/$KIME_CONFIG_DIR/config.yaml" install -Dm644 $KIME_OUT/icons/* -t "$PREFIX/$KIME_DATA_DIR/icons" install -Dm755 $KIME_OUT/libkime_engine.so -t "$PREFIX/$KIME_LIB_DIR" + install_if libkime-gtk2.so 755 -T "$KIME_GTK2_DIR/im-kime.so" install_if libkime-gtk3.so 755 -T "$KIME_GTK3_DIR/im-kime.so" install_if libkime-gtk4.so 755 -t "$KIME_GTK4_DIR"