From 76d63abc88586d3e51179773c1112f1eee76a8e8 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Nov 2023 00:35:53 +0800 Subject: improve installdir for xpack --- tests/plugins/pack/xmake.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/plugins/pack/xmake.lua') diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua index 2828524f2..d10af4d54 100644 --- a/tests/plugins/pack/xmake.lua +++ b/tests/plugins/pack/xmake.lua @@ -28,13 +28,14 @@ xpack("test") set_iconfile("src/assets/xmake.ico") after_installcmd(function (package, batchcmds) - batchcmds:cp("src/assets/*.txt", "resources/", {rootdir = "src"}) - batchcmds:mkdir("stub") + batchcmds:mkdir(package:installdir("resources")) + batchcmds:cp("src/assets/*.txt", package:installdir("resources"), {rootdir = "src"}) + batchcmds:mkdir(package:installdir("stub")) end) after_uninstallcmd(function (package, batchcmds) - batchcmds:rmdir("resources") - batchcmds:rmdir("stub") + batchcmds:rmdir(package:installdir("resources")) + batchcmds:rmdir(package:installdir("stub")) end) add_nsis_installcmds("Enable Long Path", [[ -- cgit v1.3.1