From 9da6a1ed47d21027b8a825118ce7b8ce0c69ab7a Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Fri, 12 Jul 2024 16:25:32 +0800 Subject: [PATCH] Publish to PPA --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 1 + debian/.gitignore | 12 ++++++++++++ debian/control | 19 +++++++++++++++++++ debian/rime-data-japanese.install | 2 ++ debian/rules | 9 +++++++++ 6 files changed, 74 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 .gitignore create mode 100644 debian/.gitignore create mode 100644 debian/control create mode 100644 debian/rime-data-japanese.install create mode 100755 debian/rules diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a2adaeb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +--- +"on": + push: + paths-ignore: + - "**.md" + pull_request: + paths-ignore: + - "**.md" + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: | + n=rime-japanese-0.0~git$(date +%Y%m%d).$(git rev-parse HEAD | cut -c-6) + cd .. + mv rime-japanese $n + tar vcaf ./$n.tar.gz $n + mv ./*.tar.* $n + mv $n rime-japanese + - uses: Freed-Wu/publish-ppa-package@dev + with: + repository: freedwu/rime + gpg_private_key: ${{secrets.GPG_PRIVATE_KEY}} + gpg_passphrase: ${{secrets.GPG_PASSPHRASE}} + tarball: ./*.tar.* + deb_email: ${{secrets.DEB_EMAIL}} + deb_fullname: freedwu diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84c048a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/build/ diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..2fa834b --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,12 @@ +# debmake +/copyright +/changelog + +/.debhelper/ +/debhelper-build-stamp +/files +/*.substvars +*.log + +DEBIAN/ +usr/ diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..20f0ef2 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: rime-japanese +Section: utils +Priority: optional +Maintainer: Geza Kovacs +Uploaders: Wu, Zhenyu +Build-Depends: debhelper-compat (= 9), + librime-bin, + librime-data-stroke, + librime-data-terra-pinyin +Rules-Requires-Root: no +Standards-Version: 4.6.0 +Homepage: https://github.com/rime/rime-japanese +Vcs-Git: https://salsa.debian.org/input-method-team/rime-japanese.git +Vcs-Browser: https://salsa.debian.org/input-method-team/rime-japanese + +Package: rime-data-japanese +Architecture: any +Depends: ${misc:Depends} +Description: This is a layout for typing in Japanese 日本語. Supports words in all 3 scripts (Kanji, Hiragana, Katakana). diff --git a/debian/rime-data-japanese.install b/debian/rime-data-japanese.install new file mode 100644 index 0000000..2d582d7 --- /dev/null +++ b/debian/rime-data-japanese.install @@ -0,0 +1,2 @@ +build/japanese.* usr/share/rime-data/build/ +japanese.*.yaml usr/share/rime-data diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3a1bea9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_configure: + +override_dh_auto_build: + debian-rime-processor default