Skip to content

infra: serve install.sh from site root#163

Merged
marc0olo merged 2 commits into
mainfrom
infra/serve-install-sh
Apr 28, 2026
Merged

infra: serve install.sh from site root#163
marc0olo merged 2 commits into
mainfrom
infra/serve-install-sh

Conversation

@marc0olo
Copy link
Copy Markdown
Member

Summary

  • Adds a postbuild npm script that downloads the ICP SDK installer from the SDK `public-manifest` branch and places it at `dist/install.sh`
  • Adds an explicit `Content-Type: text/plain; charset=utf-8` + no-cache rule for `**/*.sh` in the asset canister config

Problem

`internetcomputer.org/install.sh` now redirects to `docs.internetcomputer.org/install.sh`. We were returning 404, breaking `curl -sL https://internetcomputer.org/install.sh | sh` for anyone installing the SDK.

Approach

Mirrors the portal's `download-redirected-files.sh` pattern exactly:

The file is fetched fresh on every build so it always tracks the latest SDK release. The `icp-cli-installer.sh` on icp-cli releases was considered but the portal sources from `dfinity/sdk` — kept consistent.

Sync recommendation

`informed by dfinity/portal — download-redirected-files.sh`

Mirrors the portal's download-redirected-files.sh pattern: a postbuild
script fetches the ICP SDK installer from the sdk public-manifest branch
and places it at dist/install.sh so it is served at /install.sh.

Required because internetcomputer.org/install.sh now redirects to
docs.internetcomputer.org/install.sh and we were returning 404.
@marc0olo marc0olo merged commit ad91993 into main Apr 28, 2026
1 check passed
@marc0olo marc0olo deleted the infra/serve-install-sh branch April 28, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant