@lazycatcloud/lzc-cli 1.2.18 → 1.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,11 +78,11 @@ async function fetchIconTo(options, cwd, destDir) {
78
78
  // 提供一些方便的环境变量,可以在 lzc-build.yml 中直接使用
79
79
  // - LocalIP 本地局域网ip
80
80
  function localIp() {
81
- const regex = /inet6 (fc03:1136:[0-9a-fA-F:]+)\/\d+ scope global/;
81
+ const regex = /inet6 (fc03:1136:[0-9a-fA-F:]+)[?:\/ ]/;
82
82
 
83
83
  let output = "";
84
84
  if (isMacos) {
85
- const result = spawnSync("sh", ["-c", "ifconfig", "heiyu-0"], {
85
+ const result = spawnSync("sh", ["-c", "ifconfig"], {
86
86
  encoding: "utf-8",
87
87
  });
88
88
  if (result.status != 0 || result.error) {
@@ -102,7 +102,7 @@ function localIp() {
102
102
  }
103
103
  const match = output.match(regex);
104
104
  if (match) {
105
- return match[1];
105
+ return `[${match[1]}]`;
106
106
  } else {
107
107
  logger.debug("get LocalIP environment error", output.stderr);
108
108
  return "";
package/lib/shellapi.js CHANGED
@@ -113,7 +113,10 @@ class ShellApi {
113
113
  }
114
114
  })
115
115
  .catch(() => {
116
- logger.warn(`你的懒猫微服开发者工具版本较低,请从商店中更新`);
116
+ const skip = process.env.SKIP_CHECK_DEVTOOLS;
117
+ if (skip != "1") {
118
+ logger.warn(`你的懒猫微服开发者工具版本较低,请从商店中更新`);
119
+ }
117
120
  });
118
121
  }
119
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-cli",
3
- "version": "1.2.18",
3
+ "version": "1.2.21",
4
4
  "description": "lazycat cloud developer kit",
5
5
  "files": [
6
6
  "template",