Przeglądaj źródła

fix package instance apis

ruki 4 lat temu
rodzic
commit
45a909aa32

+ 5 - 5
mirror/zh-cn/manual/package_instance.html

@@ -290,23 +290,23 @@ package:sourcehash(package:url_alias(package:urls()[1]))
 </ul>
 <h4 id="packageis_supported">package:is_supported</h4>
 <ul>
-<li>Wether the package is supported by the current platform and architecture</li>
+<li>当前平台和架构是否支持该包</li>
 </ul>
 <h4 id="packagedebug">package:debug</h4>
 <ul>
-<li>Wether the the package gets built with debug mode (deprecated: use <a href="#packageis_debug"><code>package:is_debug</code></a> instead)</li>
+<li>包是否使用调试模式构建(不推荐使用:使用 <a href="#packageis_debug"><code>package:is_debug</code></a> 代替)</li>
 </ul>
 <h4 id="packageis_cross">package:is_cross</h4>
 <ul>
-<li>Wether the package is getting cross-compiled</li>
+<li>包是否正在交叉编译</li>
 </ul>
 <h4 id="packagecachedir">package:cachedir</h4>
 <ul>
-<li>Get the cache directory of the package</li>
+<li>获取包的缓存目录</li>
 </ul>
 <h4 id="packageinstalldir">package:installdir</h4>
 <ul>
-<li>Get the installation directory of the package. Can also be used to get a subdirectory. If the given directory tree does not exist it will be created.</li>
+<li>获取包的安装目录。 也可用于获取子目录。 如果给定的目录树不存在,它将被创建。</li>
 </ul>
 <pre><code class="lang-lua">-- returns the installation directory
 package:installdir()

+ 86 - 86
sitemap.xml

@@ -12,432 +12,432 @@
 
 <url>
   <loc>https://xmake.io/mirror/guide/project_examples.html</loc>
-  <lastmod>2021-10-09T18:52:52+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/other_features.html</loc>
-  <lastmod>2021-10-09T18:52:52+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/quickstart.html</loc>
-  <lastmod>2021-10-09T18:52:52+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/faq.html</loc>
-  <lastmod>2021-10-09T18:52:52+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/configuration.html</loc>
-  <lastmod>2021-10-09T18:52:53+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/syntax_description.html</loc>
-  <lastmod>2021-10-09T18:52:53+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/installation.html</loc>
-  <lastmod>2021-10-09T18:52:53+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/plugin_development.html</loc>
-  <lastmod>2021-10-09T18:52:53+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/more_plugins.html</loc>
-  <lastmod>2021-10-09T18:52:53+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/builtin_plugins.html</loc>
-  <lastmod>2021-10-09T18:52:53+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/awesome.html</loc>
-  <lastmod>2021-10-09T18:52:54+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/technical_support.html</loc>
-  <lastmod>2021-10-09T18:52:54+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/changelog.html</loc>
-  <lastmod>2021-10-09T18:52:54+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/contact.html</loc>
-  <lastmod>2021-10-09T18:52:54+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/introduction.html</loc>
-  <lastmod>2021-10-09T18:52:54+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/who_is_using_xmake.html</loc>
-  <lastmod>2021-10-09T18:52:55+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/sponsor.html</loc>
-  <lastmod>2021-10-09T18:52:55+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/project_examples.html</loc>
-  <lastmod>2021-10-09T18:52:55+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/other_features.html</loc>
-  <lastmod>2021-10-09T18:52:55+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:36+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/quickstart.html</loc>
-  <lastmod>2021-10-09T18:52:55+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/faq.html</loc>
-  <lastmod>2021-10-09T18:52:56+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/configuration.html</loc>
-  <lastmod>2021-10-09T18:52:56+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/syntax_description.html</loc>
-  <lastmod>2021-10-09T18:52:56+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/installation.html</loc>
-  <lastmod>2021-10-09T18:52:56+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:37+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/plugin_development.html</loc>
-  <lastmod>2021-10-09T18:52:56+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/more_plugins.html</loc>
-  <lastmod>2021-10-09T18:52:57+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/builtin_plugins.html</loc>
-  <lastmod>2021-10-09T18:52:57+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/awesome.html</loc>
-  <lastmod>2021-10-09T18:52:57+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/technical_support.html</loc>
-  <lastmod>2021-10-09T18:52:57+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/changelog.html</loc>
-  <lastmod>2021-10-09T18:52:57+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:38+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/contact.html</loc>
-  <lastmod>2021-10-09T18:52:58+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:39+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/peripheral_items.html</loc>
-  <lastmod>2021-10-09T18:52:58+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:39+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/introduction.html</loc>
-  <lastmod>2021-10-09T18:52:58+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/who_is_using_xmake.html</loc>
-  <lastmod>2021-10-09T18:52:58+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/sponsor.html</loc>
-  <lastmod>2021-10-09T18:52:58+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/course.html</loc>
-  <lastmod>2021-10-09T18:52:59+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/getting_started.html</loc>
-  <lastmod>2021-10-09T18:52:59+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/specification.html</loc>
-  <lastmod>2021-10-09T18:52:59+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:40+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_variables.html</loc>
-  <lastmod>2021-10-09T18:52:59+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:41+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/conditions.html</loc>
-  <lastmod>2021-10-09T18:52:59+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:41+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_rule.html</loc>
-  <lastmod>2021-10-09T18:53:00+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:41+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/target_instance.html</loc>
-  <lastmod>2021-10-09T18:53:00+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:41+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/project_target.html</loc>
-  <lastmod>2021-10-09T18:53:00+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:42+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_modules.html</loc>
-  <lastmod>2021-10-09T18:53:00+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:42+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_toolchain.html</loc>
-  <lastmod>2021-10-09T18:53:00+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:42+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/plugin_task.html</loc>
-  <lastmod>2021-10-09T18:53:01+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:42+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/package_dependencies.html</loc>
-  <lastmod>2021-10-09T18:53:01+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:43+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/configuration_option.html</loc>
-  <lastmod>2021-10-09T18:53:01+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:43+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/extension_modules.html</loc>
-  <lastmod>2021-10-09T18:53:01+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:43+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/helper_interfaces.html</loc>
-  <lastmod>2021-10-09T18:53:02+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:44+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/global_interfaces.html</loc>
-  <lastmod>2021-10-09T18:53:02+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:44+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/package_instance.html</loc>
-  <lastmod>2021-10-09T18:53:02+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:44+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/option_instance.html</loc>
-  <lastmod>2021-10-09T18:53:02+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:44+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/builtin_themes.html</loc>
-  <lastmod>2021-10-09T18:53:03+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:44+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/switch_theme.html</loc>
-  <lastmod>2021-10-09T18:53:03+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:45+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/index.html</loc>
-  <lastmod>2021-10-09T18:53:03+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:45+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/local_3rd_source_library.html</loc>
-  <lastmod>2021-10-09T18:53:03+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:45+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/local_package_old.html</loc>
-  <lastmod>2021-10-09T18:53:03+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:45+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/local_package.html</loc>
-  <lastmod>2021-10-09T18:53:04+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:45+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/system_package.html</loc>
-  <lastmod>2021-10-09T18:53:04+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:46+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/remote_package.html</loc>
-  <lastmod>2021-10-09T18:53:04+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:46+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/getting_started.html</loc>
-  <lastmod>2021-10-09T18:53:04+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:46+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/specification.html</loc>
-  <lastmod>2021-10-09T18:53:05+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:46+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_variables.html</loc>
-  <lastmod>2021-10-09T18:53:05+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:47+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/conditions.html</loc>
-  <lastmod>2021-10-09T18:53:05+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:47+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_rule.html</loc>
-  <lastmod>2021-10-09T18:53:05+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:47+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/target_instance.html</loc>
-  <lastmod>2021-10-09T18:53:06+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:47+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/project_target.html</loc>
-  <lastmod>2021-10-09T18:53:06+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:47+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_modules.html</loc>
-  <lastmod>2021-10-09T18:53:06+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:48+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_toolchain.html</loc>
-  <lastmod>2021-10-09T18:53:06+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:48+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/plugin_task.html</loc>
-  <lastmod>2021-10-09T18:53:06+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:48+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/package_dependencies.html</loc>
-  <lastmod>2021-10-09T18:53:07+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:48+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/configuration_option.html</loc>
-  <lastmod>2021-10-09T18:53:07+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:48+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/extension_modules.html</loc>
-  <lastmod>2021-10-09T18:53:07+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:49+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/helper_interfaces.html</loc>
-  <lastmod>2021-10-09T18:53:07+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:49+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/global_interfaces.html</loc>
-  <lastmod>2021-10-09T18:53:07+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:49+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/package_instance.html</loc>
-  <lastmod>2021-10-09T18:53:08+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:49+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/option_instance.html</loc>
-  <lastmod>2021-10-09T18:53:08+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:49+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/builtin_themes.html</loc>
-  <lastmod>2021-10-09T18:53:08+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:49+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/switch_theme.html</loc>
-  <lastmod>2021-10-09T18:53:08+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:50+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/index.html</loc>
-  <lastmod>2021-10-09T18:53:09+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:50+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/local_3rd_source_library.html</loc>
-  <lastmod>2021-10-09T18:53:09+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:50+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/local_package_old.html</loc>
-  <lastmod>2021-10-09T18:53:09+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:50+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/local_package.html</loc>
-  <lastmod>2021-10-09T18:53:09+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:50+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/system_package.html</loc>
-  <lastmod>2021-10-09T18:53:09+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:51+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/remote_package.html</loc>
-  <lastmod>2021-10-09T18:53:10+08:00</lastmod>
+  <lastmod>2021-10-09T18:57:51+08:00</lastmod>
 </url>
 
 </urlset>

+ 5 - 9
zh-cn/manual/package_instance.md

@@ -238,27 +238,23 @@ package:sourcehash(package:url_alias(package:urls()[1]))
 
 #### package:is_supported
 
-- Wether the package is supported by the current platform and architecture
-
+- 当前平台和架构是否支持该包
 
 #### package:debug
 
-- Wether the the package gets built with debug mode (deprecated: use [`package:is_debug`](#packageis_debug) instead)
-
+- 包是否使用调试模式构建(不推荐使用:使用 [`package:is_debug`](#packageis_debug) 代替)
 
 #### package:is_cross
 
-- Wether the package is getting cross-compiled
-
+- 包是否正在交叉编译
 
 #### package:cachedir
 
-- Get the cache directory of the package
-
+- 获取包的缓存目录
 
 #### package:installdir
 
-- Get the installation directory of the package. Can also be used to get a subdirectory. If the given directory tree does not exist it will be created.
+- 获取包的安装目录。 也可用于获取子目录。 如果给定的目录树不存在,它将被创建。
 
 ```lua
 -- returns the installation directory