From 56512e64db4f4e4e4e9f3d823759668da0988c32 Mon Sep 17 00:00:00 2001 From: Miku <26039249+xMikux@users.noreply.github.com> Date: Wed, 16 Nov 2022 08:57:16 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=87=AA=E5=8B=95=E6=89=93?= =?UTF-8?q?=E5=8C=85=E8=B3=87=E6=BA=90=E5=8C=85=E7=9A=84=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Packer.yml | 81 ++++++++++++++++++++++++++++++++++++ README.md | 5 ++- pack.mcmeta | 2 +- 3 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/Packer.yml diff --git a/.github/workflows/Packer.yml b/.github/workflows/Packer.yml new file mode 100644 index 0000000..a375165 --- /dev/null +++ b/.github/workflows/Packer.yml @@ -0,0 +1,81 @@ +name: Packer + +on: + push: + branches: + - main + paths: + - assets/** + - pack.mcmeta + - pack.png + workflow_dispatch: {} + +permissions: + contents: write + +jobs: + Packer: + runs-on: ubuntu-latest + + steps: + - name: 查看專案 + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: 修改版本 + id: version + run: | + sed -i 's/$VERSION/git '${GITHUB_SHA::7}'/1' pack.mcmeta + + - name: 輸出目前時間 + id: current_time + run: | + echo "time=$(TZ='Asia/Taipei' date +'最後更新:%Y 年 %m 月 %d 日 %H 點 %M 分')" >> $GITHUB_OUTPUT + + - name: 製作模組中文化資源包 + uses: ComunidadAylas/PackSquash-action@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + force_include_files: | + LICENSE + never_store_squash_times: true + path: ./ + + - name: 下載壓縮檔 + uses: actions/download-artifact@v2 + with: + name: Optimized pack + path: ./ + + - name: 刪除 Artifact + uses: geekyeggo/delete-artifact@v1 + with: + name: | + Optimized pack + + - name: 重新命名壓縮檔 + run: | + mv ./pack.zip MMLP-CN-to-ZW.zip + + - name: 自動更新發布 + uses: ncipollo/release-action@v1 + with: + artifacts: "*.zip" + token: ${{ secrets.GITHUB_TOKEN }} + tag: latest + allowUpdates: true + name: 簡轉繁資源包 + body: | + ## 下載 + + 下載下方的 Assets 內的 ``MMLP-CN-to-ZW.zip`` + 並放入遊戲的資源包中載入即可! + + ## 更新 + + 此翻譯包會在新增新內容時自動更新 + 只要到這個頁面重新下載 zip 即可! + + ### 最後更新時間 + ${{ steps.current_time.outputs.time }} diff --git a/README.md b/README.md index 65ef1e0..cc78859 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ # Minecraft Mod Language Package:CN to ZW ## **簡介** + 本儲存庫收錄由 [CFPA 組織][cfpa] 的 [簡中模組資源包][MMLP],繁體化而來的模組翻譯。
這些臨時轉換來的翻譯,會在翻譯組完成該模組翻譯後移除。
部分用語未在地化完全,或部分內容尚未翻譯完全,屬於正常現象。請耐心等候翻譯組於日後補齊翻譯。
目前臨時轉換而來的模組:
+ * [夸克 Quark][quark] * [RF 工具|核心 RFTools Base][rftoolsbase] * [RF 工具|儲存 RFTools Storage][rftoolsstorage] @@ -13,11 +15,12 @@ * [熱力系列 Thermal Series][thermal] ## **銘謝** + 感謝 [CFPA 組織][cfpa] 以及其所有貢獻者。 ## **授權條款** -本專案採用 [知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议][license]([正體中文])進行許可。 +本專案採用 [知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议][license]([正體中文])進行許可。 [cfpa]: https://github.com/CFPAOrg diff --git a/pack.mcmeta b/pack.mcmeta index 9a13e87..5bf4415 100644 --- a/pack.mcmeta +++ b/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { "pack_format": 8, - "description": "簡體中文資源包部分模組繁體化\n感謝 CFPA 組織以及其所有貢獻者" + "description": "簡體中文資源包部分模組繁體化 $VERSION\n感謝 CFPA 組織以及其所有貢獻者" } } \ No newline at end of file