summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-08 22:41:30 +0800
committerruki <[email protected]>2026-08-09 18:28:59 +0800
commit8564ea66201d1398cb8ee5b91efc784a379c4a64 (patch)
treea1f909bc0c06a456d423e299733ab10d86cbeb47 /xmake/core/package/package.lua
parent4fc05750f6da0568df7a0fa836e114128d3ba849 (diff)
fix plugin bug and add description
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 2b56ee332..9d0cdc49d 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1216,10 +1216,11 @@ function _instance:_rawenvs()
end
-- add plugin env for on_test
- if self:is_addon() then
- -- e.g. ~/.xmake/addons/<name>/<version>/plugins
- envs.XMAKE_PLUGIN_DIRS = path.join(self:installdir(), "plugins")
- elseif self:is_plugin() then
+ --
+ -- @note we need not do it for the addon packages, they are registered
+ -- to the addons registry after installing, and xmake can find their payloads directly
+ --
+ if self:is_plugin() then
envs.XMAKE_PLUGIN_DIRS = path.directory(self:installdir())
end
self._RAWENVS = envs