@cannbot-ai/install-helper 0.0.2-beta.46 → 0.0.2-beta.48
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/dist/index.js +69 -15
- package/dist/index.js.map +1 -1
- package/dist/install.ps1 +11 -13
- package/package.json +6 -6
package/dist/install.ps1
CHANGED
|
@@ -133,18 +133,16 @@ Write-Host ""
|
|
|
133
133
|
# 5. PATH
|
|
134
134
|
$UserPath = [Environment]::GetEnvironmentVariable("Path", "User")
|
|
135
135
|
if ($UserPath -notlike "*$InstallDir*") {
|
|
136
|
-
Write-Host " [INFO]
|
|
136
|
+
Write-Host " [INFO] Adding to PATH:" -ForegroundColor Yellow
|
|
137
137
|
Write-Host " $InstallDir"
|
|
138
|
-
Write-Host ""
|
|
139
138
|
try {
|
|
140
139
|
$addPath = Read-Host " Add to user PATH now? [Y/n]"
|
|
141
|
-
if ($addPath -eq "" -or $addPath -match "^[Yy]$") {
|
|
142
|
-
[Environment]::SetEnvironmentVariable("Path", "$UserPath;$InstallDir", "User")
|
|
143
|
-
Write-Host " [OK] Added to PATH (restart terminal to take effect)" -ForegroundColor Green
|
|
144
|
-
}
|
|
145
140
|
} catch {
|
|
146
|
-
|
|
147
|
-
|
|
141
|
+
$addPath = "Y"
|
|
142
|
+
}
|
|
143
|
+
if ($addPath -eq "" -or $addPath -match "^[Yy]$") {
|
|
144
|
+
[Environment]::SetEnvironmentVariable("Path", "$UserPath;$InstallDir", "User")
|
|
145
|
+
Write-Host " [OK] Added to PATH (restart terminal to take effect)" -ForegroundColor Green
|
|
148
146
|
}
|
|
149
147
|
Write-Host ""
|
|
150
148
|
}
|
|
@@ -161,10 +159,10 @@ Write-Host ""
|
|
|
161
159
|
# 7. Run now
|
|
162
160
|
try {
|
|
163
161
|
$runNow = Read-Host " Run install-helper now? [Y/n]"
|
|
164
|
-
if ($runNow -eq "" -or $runNow -match "^[Yy]$") {
|
|
165
|
-
Write-Host ""
|
|
166
|
-
& $BinaryDest
|
|
167
|
-
}
|
|
168
162
|
} catch {
|
|
169
|
-
|
|
163
|
+
$runNow = "Y"
|
|
164
|
+
}
|
|
165
|
+
if ($runNow -eq "" -or $runNow -match "^[Yy]$") {
|
|
166
|
+
Write-Host ""
|
|
167
|
+
& $BinaryDest
|
|
170
168
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cannbot-ai/install-helper",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.48",
|
|
4
4
|
"description": "Install Helper - Interactive installer for CANN operator development skills",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"yaml": "^2.6.0"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@cannbot-ai/install-helper-linux-x64": "0.0.2-beta.
|
|
45
|
-
"@cannbot-ai/install-helper-linux-arm64": "0.0.2-beta.
|
|
46
|
-
"@cannbot-ai/install-helper-darwin-x64": "0.0.2-beta.
|
|
47
|
-
"@cannbot-ai/install-helper-darwin-arm64": "0.0.2-beta.
|
|
48
|
-
"@cannbot-ai/install-helper-windows-x64": "0.0.2-beta.
|
|
44
|
+
"@cannbot-ai/install-helper-linux-x64": "0.0.2-beta.48",
|
|
45
|
+
"@cannbot-ai/install-helper-linux-arm64": "0.0.2-beta.48",
|
|
46
|
+
"@cannbot-ai/install-helper-darwin-x64": "0.0.2-beta.48",
|
|
47
|
+
"@cannbot-ai/install-helper-darwin-arm64": "0.0.2-beta.48",
|
|
48
|
+
"@cannbot-ai/install-helper-windows-x64": "0.0.2-beta.48"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^22.0.0",
|