Skip to content
Open
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
31 changes: 27 additions & 4 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,15 @@ jobs:
const fs = require("node:fs");
const baseUrl = process.env.INSTALL_BASE_URL;
if (!baseUrl) throw new Error("INSTALL_BASE_URL is required");
const installer = fs.readFileSync("install.sh", "utf8");
const renderInstaller = (channel) => installer
const renderInstaller = (source, channel) => source
.replaceAll("__PRIME_AGENT_DOWNLOAD_BASE_URL__", baseUrl)
.replaceAll("__PRIME_AGENT_DEFAULT_RELEASE_CHANNEL__", channel);
fs.writeFileSync("/tmp/prime-agent-install.sh", renderInstaller("stable"));
fs.writeFileSync("/tmp/prime-agent-install-beta.sh", renderInstaller("beta"));
const shellInstaller = fs.readFileSync("install.sh", "utf8");
fs.writeFileSync("/tmp/prime-agent-install.sh", renderInstaller(shellInstaller, "stable"));
fs.writeFileSync("/tmp/prime-agent-install-beta.sh", renderInstaller(shellInstaller, "beta"));
const powershellInstaller = fs.readFileSync("install.ps1", "utf8");
fs.writeFileSync("/tmp/prime-agent-install.ps1", renderInstaller(powershellInstaller, "stable"));
fs.writeFileSync("/tmp/prime-agent-install-beta.ps1", renderInstaller(powershellInstaller, "beta"));
NODE

- name: Extract production release notes
Expand Down Expand Up @@ -298,6 +301,16 @@ jobs:
--content-type text/x-shellscript \
--cache-control no-cache

aws s3 cp /tmp/prime-agent-install.ps1 "s3://${R2_BUCKET}/install.ps1" \
--endpoint-url "$R2_ENDPOINT_URL" \
--content-type text/plain \
--cache-control no-cache

aws s3 cp /tmp/prime-agent-install-beta.ps1 "s3://${R2_BUCKET}/install-beta.ps1" \
--endpoint-url "$R2_ENDPOINT_URL" \
--content-type text/plain \
--cache-control no-cache

- name: Create production GitHub release
if: env.PUBLISH_PRODUCTION == 'true'
env:
Expand Down Expand Up @@ -379,6 +392,16 @@ jobs:
--content-type text/x-shellscript \
--cache-control no-cache

aws s3 cp /tmp/prime-agent-install.ps1 "s3://${R2_BUCKET}/install.ps1" \
--endpoint-url "$R2_ENDPOINT_URL" \
--content-type text/plain \
--cache-control no-cache

aws s3 cp /tmp/prime-agent-install-beta.ps1 "s3://${R2_BUCKET}/install-beta.ps1" \
--endpoint-url "$R2_ENDPOINT_URL" \
--content-type text/plain \
--cache-control no-cache

printf 'Automated beta build from `%s` (`%s`).\n' "$DEFAULT_BRANCH" "$BUILD_REF" > /tmp/beta-release-notes.md

if gh api "repos/${GITHUB_REPOSITORY}/git/ref/tags/beta" >/dev/null 2>&1; then
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ Install the latest stable release on macOS or Linux:
curl -fsSL https://app.primeintellect.ai/prime-agent/install.sh | sh
```

On Windows, install from PowerShell (see [Windows setup](packages/coding-agent/docs/windows.md)):

```powershell
irm https://app.primeintellect.ai/prime-agent/install.ps1 | iex
```

The installer downloads a versioned release, verifies its SHA-256 checksum, installs the `prime-agent` command, and can prepare the IPython runtime used by the agent.

Start Prime Agent from the repository or directory you want it to work in:
Expand Down
Loading