Skip to content

Commit ac406d3

Browse files
committed
Updated installer entrypoints to use stable bootstrap script URLs
Replaced the user-facing desktop install commands in the README, download page, and release docs so they fetch install.sh and install.ps1 directly from the repository instead of GitHub release asset URLs that 404 before a stable release exists. This keeps GitHub Releases as the source of desktop binaries while making the bootstrap script entrypoint consistently reachable for macOS, Linux, and Windows users.
1 parent 1f5467d commit ac406d3

3 files changed

Lines changed: 24 additions & 13 deletions

File tree

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,31 @@ Install and authenticate at least one provider:
2222

2323
### Desktop App
2424

25-
Install the desktop app directly from GitHub Releases:
25+
Install the desktop app directly from GitHub Releases once a release has been published.
26+
27+
Important:
28+
29+
1. A successful `main` CI run does not publish install scripts or public release assets.
30+
2. Public install assets are only published by `.github/workflows/release.yml`.
31+
3. The bootstrap scripts below are fetched directly from the repository and then resolve the correct release asset automatically.
32+
4. You still need at least one published GitHub Release for the installer to download a desktop binary.
33+
5. To publish installable desktop assets, run the release workflow by pushing a version tag like `v1.2.3` or by using the workflow's `workflow_dispatch` input.
34+
35+
#### macOS / Linux
2636

2737
```bash
28-
curl -fsSL https://github.com/youpele52/bigCode/releases/latest/download/install.sh | sh
38+
curl -fsSL https://raw.githubusercontent.com/youpele52/bigCode/main/apps/marketing/public/install.sh | sh
2939
```
3040

41+
#### Windows
42+
3143
```powershell
32-
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://github.com/youpele52/bigCode/releases/latest/download/install.ps1 | iex"
44+
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/youpele52/bigCode/main/apps/marketing/public/install.ps1 | iex"
3345
```
3446

35-
`releases/latest/download/...` resolves only for the latest non-prerelease release. If only prereleases exist, use a tag-specific release URL instead.
47+
If no release has been published yet, the installer script will fail with a GitHub Releases error because there is no desktop binary available to download.
48+
49+
See [`docs/release.md`](./docs/release.md) for the release workflow and publishing steps.
3650

3751
### From Source
3852

apps/marketing/src/pages/download.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import Layout from "../layouts/Layout.astro";
1212
<section class="install-commands" aria-label="Command line installers">
1313
<div class="install-command-block">
1414
<h2 class="install-command-title">macOS / Linux</h2>
15-
<code class="install-command">curl -fsSL https://github.com/youpele52/bigCode/releases/latest/download/install.sh | sh</code>
15+
<code class="install-command">curl -fsSL https://raw.githubusercontent.com/youpele52/bigCode/main/apps/marketing/public/install.sh | sh</code>
1616
</div>
1717
<div class="install-command-block">
1818
<h2 class="install-command-title">Windows</h2>
19-
<code class="install-command">powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://github.com/youpele52/bigCode/releases/latest/download/install.ps1 | iex"</code>
19+
<code class="install-command">powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/youpele52/bigCode/main/apps/marketing/public/install.ps1 | iex"</code>
2020
</div>
2121
</section>
2222

docs/release.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,19 @@ This document covers how to run desktop releases from one tag, first without sig
4343
## Desktop bootstrap installers
4444

4545
- Keep GitHub Releases as the source of truth for desktop binaries.
46-
- Publish the bootstrap scripts as GitHub Release assets:
47-
- `install.sh`
48-
- `install.ps1`
4946
- User-facing install commands:
50-
- macOS/Linux: `curl -fsSL https://github.com/youpele52/bigCode/releases/latest/download/install.sh | sh`
51-
- Windows: `powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://github.com/youpele52/bigCode/releases/latest/download/install.ps1 | iex"`
47+
- macOS/Linux: `curl -fsSL https://raw.githubusercontent.com/youpele52/bigCode/main/apps/marketing/public/install.sh | sh`
48+
- Windows: `powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/youpele52/bigCode/main/apps/marketing/public/install.ps1 | iex"`
5249
- Installer behavior:
5350
- prefer GitHub `releases/latest` when a stable release exists
5451
- fall back to the general `releases` feed when only prereleases exist
5552
- select the right asset by OS/arch:
5653
- macOS `arm64` or `x64` DMG
5754
- Linux `x64` AppImage
5855
- Windows `x64` NSIS installer
59-
- The bootstrap script sources live in `apps/marketing/public/` and the release workflow copies them into `release-assets/` before publishing the GitHub Release.
56+
- The bootstrap script sources live in `apps/marketing/public/` and are fetched directly from the repository by the user-facing install commands.
6057
- For the current public repo setup, no GitHub auth token is required for the bootstrap installers.
61-
- GitHub `releases/latest/download/...` only resolves for the latest non-prerelease release. If you only have prereleases, use a tag-specific release URL until the first stable release exists.
58+
- The bootstrap script itself resolves the correct GitHub Release asset. If no desktop release exists yet, the script fails with a GitHub Releases error.
6259

6360
## CI vs release builds
6461

0 commit comments

Comments
 (0)