Skip to content

Commit

Permalink
update version of xmake
Browse files Browse the repository at this point in the history
  • Loading branch information
jingkaimori committed May 25, 2024
1 parent 4714e39 commit fc24fbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/xmake-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/xmake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 2 additions & 18 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down

0 comments on commit fc24fbd

Please sign in to comment.