diff options
| author | ruki <[email protected]> | 2023-12-21 14:41:31 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-21 14:41:31 +0800 |
| commit | b9bcacc934f10e034e7429a53921814c16d994ec (patch) | |
| tree | 88f65d5e7491a08f21010042b670cfc08344022d /tests | |
| parent | 1597b1aab9db774d123f37a4ae38d145cef3f1bb (diff) | |
| parent | 16271a7919d9ee12203f1ba5774d73f720b79451 (diff) | |
Merge pull request #4515 from xmake-io/rpm
Support to pack srpm package
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/plugins/pack/xmake.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua index 33d50b3d2..fc45c7fad 100644 --- a/tests/plugins/pack/xmake.lua +++ b/tests/plugins/pack/xmake.lua @@ -19,15 +19,17 @@ target("foo") add_packages("zlib") xpack("test") - set_formats("nsis", "zip", "targz", "srczip", "srctargz", "runself") + set_formats("nsis", "srpm", "zip", "targz", "srczip", "srctargz", "runself") set_title("hello") set_author("ruki") set_description("A test installer.") set_homepage("https://xmake.io") + set_license("Apache-2.0") set_licensefile("LICENSE.md") add_targets("test", "foo") add_installfiles("src/(assets/*.png)", {prefixdir = "images"}) add_sourcefiles("(src/**)") + add_sourcefiles("xmake.lua") set_iconfile("src/assets/xmake.ico") add_components("LongPath") @@ -40,7 +42,7 @@ xpack("test") end) after_installcmd(function (package, batchcmds) - if package:from_source() then + if package:format() == "runself" then batchcmds:runv("echo", {"hello"}) else batchcmds:mkdir(package:installdir("resources")) |
