From fc24fbd0382437f5c2f944c437997c2c3aa9eefa Mon Sep 17 00:00:00 2001 From: jingkaimori Date: Sat, 25 May 2024 16:32:47 +0800 Subject: [PATCH] update version of xmake --- .github/workflows/xmake-release.yaml | 2 +- .github/workflows/xmake.yaml | 2 +- xmake.lua | 20 ++------------------ 3 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/xmake-release.yaml b/.github/workflows/xmake-release.yaml index 409ed217..d9fbe442 100644 --- a/.github/workflows/xmake-release.yaml +++ b/.github/workflows/xmake-release.yaml @@ -14,7 +14,7 @@ jobs: steps: - uses: xmake-io/github-action-setup-xmake@v1 with: - xmake-version: v2.8.3 + xmake-version: v2.9.2 - name: update repo run: | xrepo update-repo diff --git a/.github/workflows/xmake.yaml b/.github/workflows/xmake.yaml index ba6bb8d0..71232e98 100644 --- a/.github/workflows/xmake.yaml +++ b/.github/workflows/xmake.yaml @@ -36,7 +36,7 @@ jobs: steps: - uses: xmake-io/github-action-setup-xmake@v1 with: - xmake-version: v2.8.3 + xmake-version: v2.9.2 - name: update repo run: | xrepo update-repo diff --git a/xmake.lua b/xmake.lua index c0f9752d..8b71fdf0 100644 --- a/xmake.lua +++ b/xmake.lua @@ -28,24 +28,8 @@ end target("translation") do set_kind("phony") - add_packages("qt5widgets") - on_build(function (target) - print("compiling translation file") - import("core.project.config") - import("lib.detect.find_tool") - - -- get lrelease - local lrelease_tool = assert( - find_tool("lrelease", {check = "-help"}), - "lrelease.exe not found!") - local lrelease = lrelease_tool.program - - local translation_declare = {} - for _, filepath in ipairs(os.files("locale/*.ts")) do - table.insert(translation_declare, filepath) - end - os.iorunv(lrelease, translation_declare) - end) + add_rules("qt.widgetapp") + add_files("locale/*.ts") end local installdir = "packaging/org.midieditor.midieditor/data/"