summaryrefslogtreecommitdiff
path: root/xmake/includes
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-16 23:29:03 +0800
committerruki <[email protected]>2023-11-16 23:29:03 +0800
commit2013ee491dbc719aa674d4d8be5d40a2408b5213 (patch)
tree2c4681252fea44e81626c4ead9d7092bc9661ffc /xmake/includes
parentf4bcce69c4bf01fa5c79d6d1f64e1691daea692b (diff)
add package scripts
Diffstat (limited to 'xmake/includes')
-rw-r--r--xmake/includes/xpack/xmake.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/xmake/includes/xpack/xmake.lua b/xmake/includes/xpack/xmake.lua
index bb7d03435..f7198600d 100644
--- a/xmake/includes/xpack/xmake.lua
+++ b/xmake/includes/xpack/xmake.lua
@@ -64,13 +64,19 @@ local apis = {
script = {
-- add custom load script
"xpack.on_load",
+ -- add custom package script before packing package
+ "xpack.before_package",
+ -- rewrite custom package script
+ "xpack.on_package",
+ -- add custom package script after packing package
+ "xpack.after_package",
-- add custom commands script before installing
"xpack.before_installcmd",
-- add custom commands script before uninstalling
"xpack.before_uninstallcmd",
- -- add custom install commands script, we will also get it from target/rules
+ -- rewrite custom install commands script, we will also get it from target/rules
"xpack.on_installcmd",
- -- add custom uninstall commands script, we will also get it from target/rules
+ -- rewrite custom uninstall commands script, we will also get it from target/rules
"xpack.on_uninstallcmd",
-- add custom commands script after installing
"xpack.after_installcmd",