diff options
| -rw-r--r-- | xmake/core/package/package.lua | 6 |
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 |
