Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/pages/install.ps1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,18 @@ export const prerender = false;
* application/octet-stream. Both are fixed in v0.1.4, which was then run end
* to end on Windows 11 against the real release.
*
* v0.1.5 and not v0.1.4, because v0.1.4's script closed the terminal it ran
* in. `iex` executes in the CURRENT session, so the `exit 1` on every failure
* path ended the session rather than the script: the tab shut instantly and
* took the error message with it. Reported from Warp, reproduced, and fixed in
* helmcode/nan-cli#6, where the body became a function that throws.
*
* If this tag ever stops existing, the upstream fetch 404s and the route
* answers with the error script below - the correct degraded behaviour for
* something piped into `iex`.
*/
const SCRIPT_URL =
'https://raw.githubusercontent.com/helmcode/nan-cli/v0.1.4/scripts/install.ps1';
'https://raw.githubusercontent.com/helmcode/nan-cli/v0.1.5/scripts/install.ps1';

export const GET: APIRoute = async () => {
let upstream: Response;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const prerender = false;
* it, which explains neither what happened nor what to do.
*/
const SCRIPT_URL =
'https://raw.githubusercontent.com/helmcode/nan-cli/v0.1.4/scripts/install.sh';
'https://raw.githubusercontent.com/helmcode/nan-cli/v0.1.5/scripts/install.sh';

export const GET: APIRoute = async () => {
let upstream: Response;
Expand Down
Loading