@deveco-test/deveco-code 0.2.0-Test → 1.10.0

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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.5 (2026-07-27)
4
+
5
+ ### DevEco Code 核心
6
+
7
+ #### 新特性
8
+
9
+ - 启动前弹出工作区信任确认,防止在不受信目录下误执行(`e4c18b6`)
10
+
11
+ ### TUI 终端界面
12
+
13
+ #### 新特性
14
+
15
+ - 新增通知设置对话框,支持全局开关、音量调节及 6 类事件的独立音效选择(`c3f91a6`)
16
+
17
+ #### 优化
18
+
19
+ - 移除日志收集菜单与崩溃后自动上报弹窗(`0483e25`)
20
+
21
+ #### 缺陷修复
22
+
23
+ - 规范化 btw 浮层错误展示:按错误码映射 i18n 文案,修复出错时提示键误显示(`1f0e98e`)
24
+
3
25
  ## v0.1.4 (2026-07-24)
4
26
 
5
27
  ### DevEco Code 核心
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
package/bin/deveco CHANGED
@@ -70,7 +70,14 @@ let arch = archMap[os.arch()]
70
70
  if (!arch) {
71
71
  arch = os.arch()
72
72
  }
73
- const base = "@deveco-test/deveco-code-" + platform + "-" + arch
73
+ let mainPkg = {}
74
+ try {
75
+ mainPkg = JSON.parse(fs.readFileSync(path.join(scriptDir, "..", "package.json"), "utf8"))
76
+ } catch {
77
+ // dev mode or missing package.json
78
+ }
79
+ const scope = mainPkg.name && mainPkg.name.includes("/") ? mainPkg.name.split("/")[0] : "@deveco"
80
+ const base = scope + "/deveco-code-" + platform + "-" + arch
74
81
  const binary = platform === "windows" ? "deveco.exe" : "deveco"
75
82
 
76
83
  function supportsAvx2() {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "scripts": {
7
7
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
8
8
  },
9
- "version": "0.2.0-Test",
9
+ "version": "1.10.0",
10
10
  "license": "MIT",
11
11
  "files": [
12
12
  "bin/**/*",
@@ -16,9 +16,9 @@
16
16
  "CHANGELOG.md"
17
17
  ],
18
18
  "optionalDependencies": {
19
- "@deveco-test/deveco-code-windows-x64": "0.2.0-Test",
20
- "@deveco-test/deveco-code-darwin-x64": "0.2.0-Test",
21
- "@deveco-test/deveco-code-darwin-arm64": "0.2.0-Test",
22
- "@deveco-test/deveco-code-windows-x64-baseline": "0.2.0-Test"
19
+ "@deveco-test/deveco-code-darwin-x64": "1.10.0",
20
+ "@deveco-test/deveco-code-darwin-arm64": "1.10.0",
21
+ "@deveco-test/deveco-code-windows-x64-baseline": "1.10.0",
22
+ "@deveco-test/deveco-code-windows-x64": "1.10.0"
23
23
  }
24
24
  }
package/postinstall.mjs CHANGED
@@ -24,7 +24,8 @@ const archMap = {
24
24
 
25
25
  const platform = platformMap[os.platform()] ?? os.platform()
26
26
  const arch = archMap[os.arch()] ?? os.arch()
27
- const base = `@deveco-test/deveco-code-${platform}-${arch}`
27
+ const scope = packageJson.name && packageJson.name.includes("/") ? packageJson.name.split("/")[0] : "@deveco"
28
+ const base = `${scope}/deveco-code-${platform}-${arch}`
28
29
  const sourceBinary = platform === "windows" ? "deveco.exe" : "deveco"
29
30
  const targetBinary = path.join(__dirname, "bin", "deveco.exe")
30
31
 
@@ -136,9 +137,6 @@ function copyDir(src, dst) {
136
137
  copyDir(srcPath, dstPath)
137
138
  } else {
138
139
  fs.copyFileSync(srcPath, dstPath)
139
- if (process.platform !== "win32") {
140
- fs.chmodSync(dstPath, fs.statSync(srcPath).mode)
141
- }
142
140
  }
143
141
  }
144
142
  }
@@ -148,24 +146,7 @@ function copyVendor(packageDir) {
148
146
  const vendorDst = path.join(__dirname, "vendor")
149
147
  if (fs.existsSync(vendorSrc)) {
150
148
  copyDir(vendorSrc, vendorDst)
151
- restoreDevecoCliDeps(path.join(vendorDst, "deveco-cli"))
152
- restoreDevecoCliDeps(path.join(packageDir, "vendor", "deveco-cli"))
153
- }
154
- }
155
-
156
- function restoreDevecoCliDeps(cliDir) {
157
- const tarPath = path.join(cliDir, "deps.tar.gz")
158
- if (!fs.existsSync(tarPath)) return
159
- const result = childProcess.spawnSync("tar", ["-xzf", tarPath, "-C", cliDir], {
160
- stdio: "inherit",
161
- windowsHide: true,
162
- shell: true,
163
- })
164
- if (result.status !== 0) {
165
- console.warn("Warning: failed to restore deveco-cli dependencies")
166
- return
167
149
  }
168
- fs.unlinkSync(tarPath)
169
150
  }
170
151
 
171
152
  function installPackage(name) {