diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9f2279b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,53 @@ +--- +name: Build package for luci-app-fleth + +on: + push: + tags: + - '*' + branches: + - master + - test-ci +jobs: + build: + name: Generic build + runs-on: ubuntu-24.04 + steps: + - name: Fetch luci-app-fleth code + uses: actions/checkout@v4 + with: + path: 'huggy/luci-app-fleth' + - name: Fetch po2lmo code + uses: actions/checkout@v4 + with: + repository: 'openwrt-dev/po2lmo' + ref: 'db656750ab032f3056d329c5e727a10af9ba15dd' + path: 'huggy/luci-app-fleth/po2lmo' + - name: 'Make po2lmo binary' + run: 'cd $GITHUB_WORKSPACE/huggy/luci-app-fleth/po2lmo && make' + - name: 'Manual convert i18n(lmo) file' + run: | + mkdir -p $GITHUB_WORKSPACE/huggy/luci-app-fleth/root/usr/lib/lua/luci/i18n + $GITHUB_WORKSPACE/huggy/luci-app-fleth/po2lmo/src/po2lmo $GITHUB_WORKSPACE/huggy/luci-app-fleth/po/ja/fleth.po $GITHUB_WORKSPACE/huggy/luci-app-fleth/root/usr/lib/lua/luci/i18n/fleth.ja.lmo + $GITHUB_WORKSPACE/huggy/luci-app-fleth/po2lmo/src/po2lmo $GITHUB_WORKSPACE/huggy/luci-app-fleth/po/zh_Hans/fleth.po $GITHUB_WORKSPACE/huggy/luci-app-fleth/root/usr/lib/lua/luci/i18n/fleth.zh_Hans.lmo + $GITHUB_WORKSPACE/huggy/luci-app-fleth/po2lmo/src/po2lmo $GITHUB_WORKSPACE/huggy/luci-app-fleth/po/zh_Hant/fleth.po $GITHUB_WORKSPACE/huggy/luci-app-fleth/root/usr/lib/lua/luci/i18n/fleth.zh_Hant.lmo + + - name: Build + uses: openwrt/gh-action-sdk@main + env: + # We only use lua and shellscript, so it will worked on arm / mips router + ARCH: x86_64-22.03.2 + PACKAGES: luci-app-fleth + FEEDNAME: huggy + NO_REFRESH_CHECK: true + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + path: bin/packages/x86_64/huggy/ + - name: 'Remove i18n ipk' + run: rm -fr $GITHUB_WORKSPACE/bin/packages/x86_64/huggy/luci-app-fleth*git*.ipk + - name: Release + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v2 + with: + files: bin/packages/x86_64/huggy/ \ No newline at end of file diff --git a/Makefile b/Makefile index 03beb14..0f774fd 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-fleth LUCI_TITLE:=LuCI Support for Flet'h LUCI_DESCRIPTION:=luci-app-fleth is a helper that can configure IPv4 over IPv6 tunnel automatically in Japan. -PKG_VERSION:=0.6 +PKG_VERSION:=0.7 PKG_RELEASE:=1 LUCI_PKGARCH:=all diff --git a/logo/fleth-banner.svg b/logo/fleth-banner.svg new file mode 100644 index 0000000..29bd2a2 --- /dev/null +++ b/logo/fleth-banner.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + FLET'H + + ネットワーク設定を簡単に + diff --git a/po/ja/fleth.po b/po/ja/fleth.po index 84d92c9..2a642bd 100644 --- a/po/ja/fleth.po +++ b/po/ja/fleth.po @@ -56,7 +56,7 @@ msgid "Available ports" msgstr "利用可能なポート" msgid "Auto Configure tunnel Interface" -msgstr "トンネルインターフェースをの自動的に設定" +msgstr "トンネル インターフェースをの自動的に設定" msgid "Auto Add IPv6 PD in IPv6 Interface" msgstr "IPv6 インターフェースに IPv6 PD を自動的に追加" diff --git a/po/en/fleth.po b/po/zh_Hans/fleth.po similarity index 51% rename from po/en/fleth.po rename to po/zh_Hans/fleth.po index 6ab9bb8..7922326 100644 --- a/po/en/fleth.po +++ b/po/zh_Hans/fleth.po @@ -2,79 +2,79 @@ msgid "" msgstr "Content-Type: text/plain; charset=UTF-8" msgid "Flet'h Configuration" -msgstr "Flet'h Configuration" +msgstr "Flet'h 配置" msgid "Flet'h is a helper that can configure your IPv4 over IPv6 tunnel automatically." -msgstr "Flet'h is a helper that can configure your IPv4 over IPv6 tunnel automatically." +msgstr "Flet'h 是一个可以自动配置您的 IPv4 over IPv6 隧道的助手。" msgid "Area" -msgstr "Area" +msgstr "区域" msgid "EAST" -msgstr "EAST" +msgstr "东日本" msgid "WEST" -msgstr "WEST" +msgstr "西日本" msgid "DS-Lite Provider" -msgstr "DS-Lite Provider" +msgstr "DS-Lite 提供商" msgid "UNKNOWN" -msgid "UNKNOWN" +msgstr "未知" msgid "MAP-E Provider" -msgstr "MAP-E Provider" +msgstr "MAP-E 提供商" msgid "IP Address" -msgstr "IP Address" +msgstr "IP 地址" msgid "Peer Address" -msgstr "Peer Address" +msgstr "对端地址" msgid "IPv4 prefix" -msgstr "IPv4 prefix" +msgstr "IPv4 前缀" msgid "IPv4 Prefix Length" -msgstr "IPv4 Prefix Length" +msgstr "IPv4 前缀长度" msgid "IPv6 Prefix" -msgstr "IPv6 Prefix" +msgstr "IPv6 前缀" msgid "IPv6 Prefix Length" -msgstr "IPv6 Prefix Length" +msgstr "IPv6 前缀长度" msgid "EA Length" -msgstr "EA Length" +msgstr "EA 长度" msgid "PSID Length" -msgstr "PSID Length" +msgstr "PSID 长度" msgid "Offset" -msgstr "Offset" +msgstr "偏移量" msgid "Available ports" -msgstr "Available ports" +msgstr "可用端口" msgid "Auto Configure tunnel Interface" -msgstr "Auto Configure tunnel Interface" +msgstr "自动配置隧道接口" msgid "Auto Add IPv6 PD in IPv6 Interface" -msgstr "Auto Add IPv6 PD in IPv6 Interface" +msgstr "在 IPv6 接口中自动添加 IPv6 PD" msgid "We recommend enabling it in MAP-E and when not using Hikari Denwa." -msgstr "We recommend enabling it in MAP-E and when not using Hikari Denwa." +msgstr "我们建议您在 MAP-E 并且在不使用光电话时中启用此选项。" msgid "IPv6 Interface" -msgstr "IPv6 Interface" +msgstr "IPv6 接口" msgid "Uplink interface" -msgstr "Uplink interface" +msgstr "上行接口" msgid "Tunnel Interface" -msgstr "Tunnel Interface" +msgstr "隧道接口" msgid "Tunnel Interface MTU" -msgstr "Tunnel Interface MTU" +msgstr "隧道接口 MTU" msgid "We recommend setting MTU to 1460 in MAP-E and DS-Lite." -msgstr "We recommend setting MTU to 1460 in MAP-E and DS-Lite." +msgstr "我们建议在 MAP-E 和 DS-Lite 中将 MTU 设置为 1460。" diff --git a/po/zh_Hant/fleth.po b/po/zh_Hant/fleth.po new file mode 100644 index 0000000..b7b84d8 --- /dev/null +++ b/po/zh_Hant/fleth.po @@ -0,0 +1,80 @@ +msgid "" +msgstr "Content-Type: text/plain; charset=UTF-8" + +msgid "Flet'h Configuration" +msgstr "Flet'h 設定" + +msgid "Flet'h is a helper that can configure your IPv4 over IPv6 tunnel automatically." +msgstr "Flet'h 是一個可以自動配置您的 IPv4 over IPv6 隧道的助手。" + +msgid "Area" +msgstr "區域" + +msgid "EAST" +msgstr "東日本" + +msgid "WEST" +msgstr "西日本" + +msgid "DS-Lite Provider" +msgstr "DS-Lite 提供商" + +msgid "UNKNOWN" +msgstr "未知" + +msgid "MAP-E Provider" +msgstr "MAP-E 提供商" + +msgid "IP Address" +msgstr "IP 地址" + +msgid "Peer Address" +msgstr "對端地址" + +msgid "IPv4 prefix" +msgstr "IPv4 前綴" + +msgid "IPv4 Prefix Length" +msgstr "IPv4 前綴長度" + +msgid "IPv6 Prefix" +msgstr "IPv6 前綴" + +msgid "IPv6 Prefix Length" +msgstr "IPv6 前綴長度" + +msgid "EA Length" +msgstr "EA 長度" + +msgid "PSID Length" +msgstr "PSID 長度" + +msgid "Offset" +msgstr "偏移量" + +msgid "Available ports" +msgstr "可用端口" + +msgid "Auto Configure tunnel Interface" +msgstr "自動配置隧道介面" + +msgid "Auto Add IPv6 PD in IPv6 Interface" +msgstr "在 IPv6 介面中自動添加 IPv6 PD" + +msgid "We recommend enabling it in MAP-E and when not using Hikari Denwa." +msgstr "我們建議在 MAP-E 中啟用此選項,並且在不使用光電話時使用。" + +msgid "IPv6 Interface" +msgstr "IPv6 介面" + +msgid "Uplink interface" +msgstr "上行介面" + +msgid "Tunnel Interface" +msgstr "隧道介面" + +msgid "Tunnel Interface MTU" +msgstr "隧道介面 MTU" + +msgid "We recommend setting MTU to 1460 in MAP-E and DS-Lite." +msgstr "我們建議在 MAP-E 和 DS-Lite 中將 MTU 設置為 1460。" diff --git a/readme-en.md b/readme-en.md index f033298..edbc32b 100644 --- a/readme-en.md +++ b/readme-en.md @@ -1,3 +1,4 @@ +![banner](./logo/fleth-banner.svg) # luci-app-fleth luci-app-fleth is a helper that can configure your IPv4 over IPv6 tunnel automatically. > Japan use only diff --git a/readme-zhs.md b/readme-zhs.md index 4673c84..10d3b24 100644 --- a/readme-zhs.md +++ b/readme-zhs.md @@ -1,3 +1,4 @@ +![banner](./logo/fleth-banner.svg) # luci-app-fleth luci-app-fleth 是一个助手,可以帮您自动配置 IPv4 over IPv6 隧道。 diff --git a/readme.md b/readme.md index 1823a2d..b6a6797 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,4 @@ +![banner](./logo/fleth-banner.svg) # luci-app-fleth [English](./readme-en.md) || [Chinese Simplified](./readme-zhs.md)