Skip to content

Commit b0cddf5

Browse files
committed
fix: point native install commands at the CDN install scripts
The pythinker.com/install.{sh,ps1} URLs serve a stale bootstrap from an older installer flow, so the update notice and docs pointed users at a script that cannot find current release assets. Use the CDN-hosted scripts under code.pythinker.com/pythinker-code/ everywhere.
1 parent 351205d commit b0cddf5

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

apps/pythinker-code/src/constant/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export const ANTHROPIC_PLUGIN_MARKETPLACE_REPOSITORY = 'anthropics/claude-plugin
6767
export const CLAUDE_PLUGIN_MARKETPLACE_PATH = '.claude-plugin/marketplace.json';
6868
export const ANTHROPIC_PLUGIN_MARKETPLACE_URL =
6969
`https://raw.githubusercontent.com/${ANTHROPIC_PLUGIN_MARKETPLACE_REPOSITORY}/HEAD/${CLAUDE_PLUGIN_MARKETPLACE_PATH}`;
70-
export const PYTHINKER_CODE_INSTALL_SH_URL = 'https://pythinker.com/install.sh';
71-
export const PYTHINKER_CODE_INSTALL_PS1_URL = 'https://pythinker.com/install.ps1';
70+
export const PYTHINKER_CODE_INSTALL_SH_URL = 'https://code.pythinker.com/pythinker-code/install.sh';
71+
export const PYTHINKER_CODE_INSTALL_PS1_URL = 'https://code.pythinker.com/pythinker-code/install.ps1';
7272

7373
// Native install commands, split by platform. Use these for prompt copy and spawn calls only; do not assemble the strings elsewhere.
7474
export const NATIVE_INSTALL_COMMAND_UNIX = `curl -fsSL ${PYTHINKER_CODE_INSTALL_SH_URL} | bash`;

apps/pythinker-code/test/cli/update/preflight.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ describe('runUpdatePreflight', () => {
494494
// pipefail must come before the pipeline so a failed `curl` is not masked
495495
// by the trailing `bash` exiting 0 (see "surfaces a failed curl" below).
496496
expect(script).toContain('set -o pipefail');
497-
expect(script).toContain('curl -fsSL https://pythinker.com/install.sh');
497+
expect(script).toContain('curl -fsSL https://code.pythinker.com/pythinker-code/install.sh');
498498
expect(script).toContain('| bash');
499499
} finally {
500500
Object.defineProperty(process, 'platform', { value: originalPlatform });
@@ -510,7 +510,7 @@ describe('runUpdatePreflight', () => {
510510
try {
511511
const { stdout, options } = captureOutput();
512512
await expect(runUpdatePreflight('0.4.0', options)).resolves.toBe('continue');
513-
expect(stdout.join('')).toContain('irm https://pythinker.com/install.ps1 | iex');
513+
expect(stdout.join('')).toContain('irm https://code.pythinker.com/pythinker-code/install.ps1 | iex');
514514
expect(promptForInstallChoice).not.toHaveBeenCalled();
515515
expect(mocks.spawn).not.toHaveBeenCalled();
516516
} finally {

apps/pythinker-web/public/install.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
# (added to the user PATH).
77
#
88
# Usage:
9-
# irm https://pythinker.com/install.ps1 | iex
9+
# irm https://code.pythinker.com/pythinker-code/install.ps1 | iex
1010
#
1111
# To pin a version when running the hosted script, set:
12-
# $env:PYTHINKER_VERSION = "0.6.0"; irm https://pythinker.com/install.ps1 | iex
12+
# $env:PYTHINKER_VERSION = "0.6.0"; irm https://code.pythinker.com/pythinker-code/install.ps1 | iex
1313
#
1414
# Or run the script directly:
1515
# .\install.ps1 -Version 0.6.0
@@ -26,8 +26,8 @@ $Repo = "Pythoughts-labs/pythinker-code"
2626
# CDN source of truth for the latest published version — same endpoint the
2727
# in-app updater reads, so a fresh install and an auto-update always agree.
2828
$CdnLatestUrl = "https://code.pythinker.com/pythinker-code/latest"
29-
$InstallShUrl = "https://pythinker.com/install.sh"
30-
$InstallPs1Url = "https://pythinker.com/install.ps1"
29+
$InstallShUrl = "https://code.pythinker.com/pythinker-code/install.sh"
30+
$InstallPs1Url = "https://code.pythinker.com/pythinker-code/install.ps1"
3131
$NoColor = $env:NO_COLOR
3232

3333
try { [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 } catch {}

apps/pythinker-web/public/install.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
# ~/.local/bin/pythinker
88
#
99
# Usage:
10-
# curl -fsSL https://pythinker.com/install.sh | bash
10+
# curl -fsSL https://code.pythinker.com/pythinker-code/install.sh | bash
1111
#
1212
# # Pin a specific version:
13-
# curl -fsSL https://pythinker.com/install.sh | bash -s -- --version 0.6.0
13+
# curl -fsSL https://code.pythinker.com/pythinker-code/install.sh | bash -s -- --version 0.6.0
1414
#
1515
# # Custom install prefix (default $HOME/.local):
16-
# curl -fsSL https://pythinker.com/install.sh | bash -s -- --prefix /opt/pythinker
16+
# curl -fsSL https://code.pythinker.com/pythinker-code/install.sh | bash -s -- --prefix /opt/pythinker
1717
#
1818
# Supported targets (matches release artifact names pythinker-code-<target>.zip):
1919
# linux-x64 (Linux x86_64)
2020
# linux-arm64 (Linux ARM64)
2121
# darwin-arm64 (macOS Apple Silicon)
2222
# darwin-x64 (macOS Intel)
2323
#
24-
# Windows users: irm https://pythinker.com/install.ps1 | iex
24+
# Windows users: irm https://code.pythinker.com/pythinker-code/install.ps1 | iex
2525
set -euo pipefail
2626

2727
VERSION=""
@@ -38,21 +38,21 @@ installs it at
3838
~/.local/bin/pythinker
3939
4040
Usage:
41-
curl -fsSL https://pythinker.com/install.sh | bash
41+
curl -fsSL https://code.pythinker.com/pythinker-code/install.sh | bash
4242
4343
# Pin a specific version:
44-
curl -fsSL https://pythinker.com/install.sh | bash -s -- --version 0.6.0
44+
curl -fsSL https://code.pythinker.com/pythinker-code/install.sh | bash -s -- --version 0.6.0
4545
4646
# Custom install prefix (default $HOME/.local):
47-
curl -fsSL https://pythinker.com/install.sh | bash -s -- --prefix /opt/pythinker
47+
curl -fsSL https://code.pythinker.com/pythinker-code/install.sh | bash -s -- --prefix /opt/pythinker
4848
4949
Supported targets (matches release artifact names pythinker-code-<target>.zip):
5050
linux-x64 (Linux x86_64)
5151
linux-arm64 (Linux ARM64)
5252
darwin-arm64 (macOS Apple Silicon)
5353
darwin-x64 (macOS Intel)
5454
55-
Windows users: irm https://pythinker.com/install.ps1 | iex
55+
Windows users: irm https://code.pythinker.com/pythinker-code/install.ps1 | iex
5656
EOF
5757
}
5858

@@ -594,7 +594,7 @@ case "$os/$arch" in
594594
platform_display="macOS x64" ;;
595595
MINGW*/*|MSYS*/*|CYGWIN*/*)
596596
fail "On Windows, use the PowerShell installer:
597-
powershell -c \"irm https://pythinker.com/install.ps1 | iex\"" ;;
597+
powershell -c \"irm https://code.pythinker.com/pythinker-code/install.ps1 | iex\"" ;;
598598
*)
599599
fail "unsupported target: $os/$arch" ;;
600600
esac

0 commit comments

Comments
 (0)