@lazycatcloud/lzc-cli 1.2.50 → 1.2.52
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/changelog.md +9 -1
- package/lib/app/lpk_devshell.js +4 -2
- package/lib/appstore/index.js +1 -1
- package/lib/appstore/publish.js +1 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
package/lib/app/lpk_devshell.js
CHANGED
|
@@ -21,7 +21,8 @@ import {
|
|
|
21
21
|
resolveDomain,
|
|
22
22
|
isWindows,
|
|
23
23
|
isMacOs,
|
|
24
|
-
isLinux
|
|
24
|
+
isLinux,
|
|
25
|
+
pkgInfo
|
|
25
26
|
} from "../utils.js"
|
|
26
27
|
import os from "node:os"
|
|
27
28
|
import chokidar from "chokidar"
|
|
@@ -99,7 +100,8 @@ class AppDevShellMonitor {
|
|
|
99
100
|
: ""
|
|
100
101
|
this.newHash = {
|
|
101
102
|
build: buildHash,
|
|
102
|
-
manifest: manifestHash
|
|
103
|
+
manifest: manifestHash,
|
|
104
|
+
lzcVersion: pkgInfo.version
|
|
103
105
|
}
|
|
104
106
|
if (!_.isEqual(this.oldHash, this.newHash)) {
|
|
105
107
|
fs.writeFileSync(this.cacheFilePath, JSON.stringify(this.newHash))
|
package/lib/appstore/index.js
CHANGED
|
@@ -68,7 +68,7 @@ export function appstoreCommand(program) {
|
|
|
68
68
|
command: "copy-image <imageName>",
|
|
69
69
|
desc: "复制镜像至懒猫微服官方源",
|
|
70
70
|
handler: async ({ imageName }) => {
|
|
71
|
-
const baseUrl = "https://
|
|
71
|
+
const baseUrl = "https://appstore.api.lazycat.cloud/api/v2/developer"
|
|
72
72
|
logger.info(
|
|
73
73
|
`Waiting ... ( copy ${imageName} to lazycat offical registry)`
|
|
74
74
|
)
|
package/lib/appstore/publish.js
CHANGED
|
@@ -131,7 +131,7 @@ async function askWhetherCreateLPK(baseUrl, manifest) {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export class Publish {
|
|
134
|
-
constructor(baseUrl = "https://
|
|
134
|
+
constructor(baseUrl = "https://appstore.api.lazycat.cloud/api/v2/developer") {
|
|
135
135
|
this.baseUrl = baseUrl
|
|
136
136
|
}
|
|
137
137
|
|