Skip to content

Commit bbc8485

Browse files
bbornclaude
andcommitted
Fix install script to match goreleaser tarball naming
The install script expected bare binaries (ty-linux-amd64) but goreleaser produces versioned tarballs (ty_0.2.26_linux_amd64.tar.gz). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 51d77c5 commit bbc8485

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

scripts/install.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,17 @@ install_ty() {
137137
local version=$3
138138
local tmp_dir=$4
139139

140-
local filename="ty-${os}-${arch}"
140+
local filename="ty_${version#v}_${os}_${arch}.tar.gz"
141141
local url="https://github.com/${REPO}/releases/download/${version}/${filename}"
142142

143143
info "Downloading ty ${version} for ${os}/${arch}..."
144144

145-
# Download binary
146-
if ! curl -fsSL "$url" -o "${tmp_dir}/ty"; then
145+
# Download and extract tarball
146+
if ! curl -fsSL "$url" -o "${tmp_dir}/ty.tar.gz"; then
147147
error "Failed to download from ${url}"
148148
fi
149149

150+
tar -xzf "${tmp_dir}/ty.tar.gz" -C "${tmp_dir}"
150151
chmod +x "${tmp_dir}/ty"
151152

152153
# Install binary
@@ -171,16 +172,17 @@ install_taskd() {
171172
return 0
172173
fi
173174

174-
local filename="taskd-${os}-${arch}"
175+
local filename="taskd_${version#v}_${os}_${arch}.tar.gz"
175176
local url="https://github.com/${REPO}/releases/download/${version}/${filename}"
176177

177178
info "Downloading taskd ${version} for ${os}/${arch}..."
178179

179-
# Download binary
180-
if ! curl -fsSL "$url" -o "${tmp_dir}/taskd"; then
180+
# Download and extract tarball
181+
if ! curl -fsSL "$url" -o "${tmp_dir}/taskd.tar.gz"; then
181182
error "Failed to download taskd from ${url}"
182183
fi
183184

185+
tar -xzf "${tmp_dir}/taskd.tar.gz" -C "${tmp_dir}"
184186
chmod +x "${tmp_dir}/taskd"
185187

186188
# Install binary

0 commit comments

Comments
 (0)