Skip to content
Merged
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
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
os: macos
arch: aarch64
ext: tar.gz
- name: macOS-x64
runner: macos-15-intel
os: macos
arch: x64
ext: tar.gz
- name: Linux-x64
runner: ubuntu-latest
os: linux
Expand Down Expand Up @@ -152,6 +157,12 @@ jobs:
os: macos
arch: arm64
ext: dmg
- name: macOS-x64
runner: macos-15-intel
task: packageReleaseDmg
os: macos
arch: x64
ext: dmg
- name: Linux-x64
runner: ubuntu-latest
task: packageReleaseDeb
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Download the latest apps from [GitHub Releases](https://github.com/linroid/Ketch
| Platform | Format |
|---|---|
| Android | `.apk` |
| macOS (arm64) | `.dmg` |
| macOS (x64, arm64) | `.dmg` |
| Linux (x64, arm64) | `.deb` |
| Windows (x64, arm64) | `.msi` |
| iOS | Build from [source](app/ios/) via Xcode |
Expand All @@ -144,7 +144,7 @@ ketch https://example.com/file.zip
ketch server --config /path/to/config.toml
```

Supported platforms: **macOS** (arm64), **Linux** (x64, arm64), **Windows** (x64). See the [CLI documentation](cli/README.md) for all commands, flags, and config file reference.
Supported platforms: **macOS** (x64, arm64), **Linux** (x64, arm64), **Windows** (x64). See the [CLI documentation](cli/README.md) for all commands, flags, and config file reference.

## How It Works

Expand Down
11 changes: 4 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ main() {

info "Installing ketch v${version} (${os}/${arch})"

# macOS CLI is only available for arm64
if [ "$os" = "macos" ] && [ "$arch" = "x64" ]; then
error "macOS x64 (Intel) builds are not available. Only arm64 (Apple Silicon) is supported."
fi

# Windows via this script is best-effort
if [ "$os" = "windows" ]; then
warn "For Windows, consider downloading the .zip manually from:"
Expand All @@ -106,9 +101,11 @@ main() {

local filename="ketch-cli-${version}-${os}-${arch}.${ext}"
local url="https://github.com/${REPO}/releases/download/v${version}/${filename}"
local tmpdir
local tmpdir cleanup_command
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
# Capture the path now: local variables are out of scope when the EXIT trap runs.
printf -v cleanup_command 'rm -rf -- %q' "$tmpdir"
trap "$cleanup_command" EXIT

info "Downloading ${url}"
if ! curl -fSL --progress-bar -o "${tmpdir}/${filename}" "$url"; then
Expand Down
Loading