GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — commit and push · Rots/opencode@d3b2763

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • install
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
## Installation
88

9+
### Curl
10+
11+
```
12+
curl -fsSL https://opencode.ai/install | bash
13+
```
14+
915
### NPM
1016

1117
```
@@ -21,7 +27,7 @@ yarn global add opencode-ai@latest
2127
brew install sst/tap/opencode
2228
```
2329

24-
### Aur
30+
### AUR
2531

2632
```
2733
paru -S opencode-bin
Collapse file

‎install‎

Copy file name to clipboardExpand all lines: install
+13-7Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,28 @@ requested_version=${VERSION:-}
1212

1313
os=$(uname -s | tr '[:upper:]' '[:lower:]')
1414
if [[ "$os" == "darwin" ]]; then
15-
os="mac"
15+
os="darwin"
1616
fi
1717
arch=$(uname -m)
1818

1919
if [[ "$arch" == "aarch64" ]]; then
2020
arch="arm64"
21+
elif [[ "$arch" == "x86_64" ]]; then
22+
arch="x64"
2123
fi
2224

23-
filename="$APP-$os-$arch.tar.gz"
25+
filename="$APP-$os-$arch.zip"
2426

2527

2628
case "$filename" in
2729
*"-linux-"*)
28-
[[ "$arch" == "x86_64" || "$arch" == "arm64" || "$arch" == "i386" ]] || exit 1
30+
[[ "$arch" == "x64" || "$arch" == "arm64" ]] || exit 1
2931
;;
30-
*"-mac-"*)
31-
[[ "$arch" == "x86_64" || "$arch" == "arm64" ]] || exit 1
32+
*"-darwin-"*)
33+
[[ "$arch" == "x64" || "$arch" == "arm64" ]] || exit 1
34+
;;
35+
*"-windows-"*)
36+
[[ "$arch" == "x64" ]] || exit 1
3237
;;
3338
*)
3439
echo "${RED}Unsupported OS/Arch: $os/$arch${NC}"
@@ -88,8 +93,9 @@ check_version() {
8893
download_and_install() {
8994
print_message info "Downloading ${ORANGE}opencode ${GREEN}version: ${YELLOW}$specific_version ${GREEN}..."
9095
mkdir -p opencodetmp && cd opencodetmp
91-
curl -# -L $url | tar xz
92-
mv opencode $INSTALL_DIR
96+
curl -# -L -o "$filename" "$url"
97+
unzip -q "$filename"
98+
mv opencode "$INSTALL_DIR"
9399
cd .. && rm -rf opencodetmp
94100
}
95101

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.