Flatpak ビルド対応と GitHub Releases ワークフローの追加#21
Open
jijinbei wants to merge 2 commits intotogatoga:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
libkarukan_im.so、CLI ツール)を配布するワークフローを追加karukan-im/fcitx5-addon/CMakeLists.txtを外部ビルドシステムから利用可能に変更変更内容
.github/workflows/release.ymlタグ push (
v*) をトリガーに、karukan-imとkarukan-cliをビルドして GitHub Releases に tar.gz として添付します。karukan-im/fcitx5-addon/CMakeLists.txt以下の CMake 変数を外部から設定可能にしました(既存の動作はデフォルト値で維持):
KARUKAN_RUST_LIB—libkarukan_im.soのパスKARUKAN_INCLUDE_DIR— ヘッダーのパスKARUKAN_SKIP_CARGO—ONにすると CMake 内の cargo ビルドをスキップ動機
fcitx/flatpak-fcitx5 で karukan を Flatpak アドオンとして配布するための前提作業です。
Flatpak ビルドでは SDK の Rust バージョン制約があるため、GitHub Releases のビルド済みバイナリを使用する方式にしています。これにより Flatpak ビルド時に Rust ツールチェーンが不要になります。
動作確認
Ubuntu 環境にて、以下を確認済みです:
org.fcitx.Fcitx5.Addon.Karukanマニフェストを作成flatpak-builderによるローカルビルドが成功flatpak installによるローカルインストールが成功し、org.fcitx.Fcitx5.Addon.Karukanとして認識される今後の予定
この PR が承認された場合、続けて fcitx/flatpak-fcitx5 本家にも
org.fcitx.Fcitx5.Addon.Karukan.yamlを追加する PR を送る予定です。これにより Flathub 経由で karukan を Flatpak アドオンとして配布できるようになります。