@minhpnq1807/contextos 0.5.28 → 0.5.30
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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.30
|
|
4
|
+
|
|
5
|
+
- **Fix Windows skillshare post-install hang:** After the PowerShell installer adds skillshare to PATH, the current Node.js process still has the old `process.env.PATH`. Now injects the known Windows install directory (`%LOCALAPPDATA%\\Programs\\skillshare`) into `process.env.PATH` immediately after install, so `skillshare --version`, `skillshare init`, and subsequent calls resolve without restarting the terminal.
|
|
6
|
+
|
|
7
|
+
## 0.5.29
|
|
8
|
+
|
|
9
|
+
- **Fix Windows skillshare install `iex` not recognized:** The PowerShell pipe `irm ... | iex` was being intercepted by `cmd.exe` (the outer shell via `shell: true`) instead of PowerShell. Switched to `execSync` with properly double-quoted `-Command` argument so the pipe stays inside PowerShell's scope.
|
|
10
|
+
|
|
3
11
|
## 0.5.28
|
|
4
12
|
|
|
5
13
|
- **Consistent `◇`/`│` UI formatting for all install and setup output:** All progress bars, detail lines, and status messages from `ctx install` and `ctx setup` are now captured and re-emitted with `◇` step headers and `│`-indented detail lines. Added `captureSetupOutput` helper that intercepts both `console.log` and `process.stderr.write` to ensure nothing leaks unprefixed.
|
package/package.json
CHANGED
|
@@ -120,7 +120,14 @@ export async function installSkillshare({
|
|
|
120
120
|
|
|
121
121
|
const osName = detectOS(platform);
|
|
122
122
|
if (osName === "windows") {
|
|
123
|
-
|
|
123
|
+
runShellCommand(`powershell -NoProfile -ExecutionPolicy Bypass -Command "irm ${INSTALL_PS_URL} | iex"`, { stdio: "inherit", dryRun });
|
|
124
|
+
// The installer adds to the system PATH, but the current Node process
|
|
125
|
+
// still has the old PATH. Inject the known install dir so subsequent
|
|
126
|
+
// skillshare calls in this session can resolve the binary.
|
|
127
|
+
const winInstallDir = path.join(os.homedir(), "AppData", "Local", "Programs", "skillshare");
|
|
128
|
+
if (!dryRun && !process.env.PATH.includes(winInstallDir)) {
|
|
129
|
+
process.env.PATH = `${winInstallDir}${path.delimiter}${process.env.PATH}`;
|
|
130
|
+
}
|
|
124
131
|
} else {
|
|
125
132
|
runShellCommand(`curl -fsSL ${INSTALL_SH_URL} | sh`, { stdio: "inherit", dryRun });
|
|
126
133
|
}
|