From 64d40e8889a3a93fba01be8acf6c8c37815b6b35 Mon Sep 17 00:00:00 2001 From: Darcy Shen Date: Sat, 17 Aug 2024 16:45:22 +0800 Subject: [PATCH] [73_22] xmake: ends with portable.zip for portable MoganResearch ## What ## Why ## How to test your changes? --- xmake/research.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xmake/research.lua b/xmake/research.lua index e404c4aa42..de899379cd 100644 --- a/xmake/research.lua +++ b/xmake/research.lua @@ -314,7 +314,14 @@ xpack("research") do set_iconfile(path.join(os.projectdir(), "packages/windows/Xmacs.ico")) set_bindir("bin") add_installfiles(path.join(os.projectdir(), "build/packages/app.mogan/data/bin/(**)|MoganResearch.exe"), {prefixdir = "bin"}) - set_basename("MoganResearch-v" .. XMACS_VERSION .. "-64bit-installer") + on_load(function (package) + local format = package:format() + if format == "nsis" then + package:set("basename", "MoganResearch-v" .. package:version() .. "-64bit-installer") + else + package:set("basename", "MoganResearch-v" .. package:version() .. "-64bit-portable") + end + end) end end