From 956e7b7db9408601c332c2dfbe9a8d45771f3ee1 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 1 Jul 2021 14:23:04 +0800 Subject: fix install precompiled package --- xmake/core/package/package.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1