summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-07-01 14:23:04 +0800
committerGitHub <[email protected]>2021-07-01 14:23:04 +0800
commit956e7b7db9408601c332c2dfbe9a8d45771f3ee1 (patch)
tree82af5c2a97c2a11f8c1d4957694a814865287f0c
parent2fa35ada010fcb2a91c8565306c3e69b9a475398 (diff)
fix install precompiled package
-rw-r--r--xmake/core/package/package.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index b1afcaed6..f573e8623 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -248,9 +248,13 @@ function _instance:artifacts_set(artifacts_info)
sandbox_module.import("lib.detect.find_path")
local rootdir = find_path("manifest.txt", path.join(os.curdir(), "*", "*", "*"))
if not rootdir then
- os.raise("package(%s): manifest.txt not found when installing artifacts!", self:displayname())
+ os.raise("package(%s): manifest.txt not found when installing artifacts!", package:displayname())
end
os.cp(path.join(rootdir, "*"), package:installdir())
+ local manifest = package:manifest_load()
+ if not manifest then
+ os.raise("package(%s): load manifest.txt failed when installing artifacts!", package:displayname())
+ end
end)
self._IS_PRECOMPILED = true
end