@lazycatcloud/lzc-cli 1.2.43 → 1.2.45

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.
package/README.md CHANGED
@@ -31,3 +31,5 @@ lzc-cli project devshell
31
31
  # 经过测试后,将包发布到懒猫云商店中去
32
32
  lzc-cli appstore publish
33
33
  ```
34
+
35
+ [changelog](./changelog.md)
package/changelog.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.2.44
2
+
3
+ 1. 修复查询状态等接口没有使用ipv6地址
4
+ 2. 修复 rsync 进程没有系统环境变量
5
+
1
6
  # 1.2.43
2
7
 
3
8
  1. 支持通过命令行注册应用,新上架的应用不再需要通过界面配置
@@ -41,17 +41,18 @@ export class DebugBridge {
41
41
 
42
42
  async common(cmd, args) {
43
43
  const resolvedIp = await resolveDomain(this.domain)
44
- const resolvedCmd = cmd.replace(this.domain, resolvedIp)
45
- const ssh = spawn.sync(resolvedCmd, args, {
44
+ args = args.map((arg) => arg.replace(this.domain, resolvedIp))
45
+ const ssh = spawn.sync(cmd, args, {
46
46
  shell: true,
47
47
  encoding: "utf-8",
48
48
  stdio: ["pipe", "pipe", "pipe"]
49
49
  })
50
+ logger.debug(`执行命令 ${cmd} ${args.join(" ")}`)
50
51
  return new Promise((resolve, reject) => {
51
52
  ssh.status == 0
52
53
  ? resolve(ssh.stdout)
53
54
  : reject(
54
- `执行命令 ${resolvedCmd} ${args.join(" ")} 出错\n${ssh.stderr ?? ""}`
55
+ `执行命令 ${cmd} ${args.join(" ")} 出错\n${ssh.stdout ?? ""}\n${ssh.stderr ?? ""}`
55
56
  )
56
57
  })
57
58
  }
@@ -486,7 +486,7 @@ class DevShell {
486
486
  ]
487
487
  logger.debug("同步代码: ", rsyncCmd, rsyncArgs.join(" "))
488
488
  const rsyncStream = spawn.sync(rsyncCmd, rsyncArgs, {
489
- env: { RSYNC_PASSWORD: "fakefakefake" },
489
+ env: { ...process.env, RSYNC_PASSWORD: "fakefakefake" },
490
490
  shell: true,
491
491
  stdio: ["ignore", isDebugMode() ? "inherit" : "ignore", "inherit"]
492
492
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-cli",
3
- "version": "1.2.43",
3
+ "version": "1.2.45",
4
4
  "description": "lazycat cloud developer kit",
5
5
  "files": [
6
6
  "template",
@@ -4,4 +4,7 @@ import vue from '@vitejs/plugin-vue'
4
4
  // https://vitejs.dev/config/
5
5
  export default defineConfig({
6
6
  plugins: [vue()],
7
+ build: {
8
+ outDir: "./dist/dist"
9
+ }
7
10
  })