Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
hallelujah
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Dec 25, 2023
0 parents commit f3765ad
Show file tree
Hide file tree
Showing 9 changed files with 120 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: ci

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install dependencies
run: |
brew install \
fmt \
extra-cmake-modules \
json-c \
ninja
- name: Download prebuilt and Fcitx5.app
run: |
wget https://github.com/fcitx-contrib/fcitx5-macos-prebuilder/releases/download/latest/local-x86_64.tar.bz2
wget https://github.com/fcitx-contrib/fcitx5-macos/releases/download/latest/Fcitx5-x86_64.dmg
- name: Extract prebuilt and Fcitx5.app
run: |
tar xjvf local-x86_64.tar.bz2 -C /usr/local --strip-components=1
hdiutil attach Fcitx5-x86_64.dmg
sudo cp -r /Volumes/Fcitx5/{Fcitx5.app,"Input Methods"}
- name: Build all
run: ./all.sh

- name: Upload artifact
if: ${{ github.ref != 'refs/heads/master' }}
uses: actions/upload-artifact@v4
with:
path: |
build/*.tar.bz2
- name: Release
if: ${{ github.ref == 'refs/heads/master' }}
uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: true
title: "Nightly Build"
files: |
build/*.tar.bz2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
build
*.bz2
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "fcitx5-hallelujah"]
path = fcitx5-hallelujah
url = https://github.com/fcitx-contrib/fcitx5-hallelujah
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 fcitx5-macos contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Fcitx5 macOS plugins
Build plugins for [fcitx5-macos](https://github.com/fcitx-contrib/fcitx5-macos).

## Plugins
### English
* [hallelujah](https://github.com/fcitx-contrib/fcitx5-hallelujah): GPL-3.0-only

## Manual installation
```sh
tar -xjvC /usr/local -f hallelujah-x86_64.tar.bz2
```
1 change: 1 addition & 0 deletions all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts/hallelujah.sh
20 changes: 20 additions & 0 deletions common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name=$1
export DESTDIR=`pwd`/build/$name
cd fcitx5-$name

cbr() {
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_ROOT_PATH="/Library/Input Methods/Fcitx5.app/Contents" "$@"
}

cb() {
cmake --build build
}

ci() {
cmake --install build
}

tbz() {
cd $DESTDIR/..
tar cjvf $name-x86_64.tar.bz2 -C $name/usr/local lib share
}
1 change: 1 addition & 0 deletions fcitx5-hallelujah
Submodule fcitx5-hallelujah added at 279b23
5 changes: 5 additions & 0 deletions scripts/hallelujah.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
. ./common.sh hallelujah
cbr -D ENABLE_TEST=OFF
cb
ci
tbz

0 comments on commit f3765ad

Please sign in to comment.