diff options
Diffstat (limited to 'tests/plugins/pack/xmake.lua')
| -rw-r--r-- | tests/plugins/pack/xmake.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua index 94ad97409..f964d58bc 100644 --- a/tests/plugins/pack/xmake.lua +++ b/tests/plugins/pack/xmake.lua @@ -26,12 +26,20 @@ xpack("test") set_basename("test-$(plat)-$(arch)-v$(version)") add_installfiles("src/(assets/*.png)", {prefixdir = "images"}) set_iconfile("src/assets/xmake.ico") + after_installcmd(function (package, batchcmds) batchcmds:cp("src/assets/*.txt", "resources/", {rootdir = "src"}) batchcmds:mkdir("stub") end) + after_uninstallcmd(function (package, batchcmds) batchcmds:rmdir("resources") batchcmds:rmdir("stub") end) + add_nsis_sections("Enable Long Path", [[ + ${If} $NoAdmin == "false" + ; Enable long path + WriteRegDWORD ${HKLM} "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1 + ${EndIf}]], {description = "Increases the maximum path length limit, up to 32,767 characters (before 256)."}) + |
