Skip to content

Commit c7ca303

Browse files
author
sqlopt
committed
fix(install): point install scripts at dbopt-* release assets
install.sh/install.ps1 were untracked during the rename pass, so they still referenced sqlopt-* assets that won't exist. Repointed to dbopt-* (matching the renamed release artifacts) and dropped a no-op self-rename in the PowerShell one.
1 parent 7626e89 commit c7ca303

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

docs/install.ps1

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
$ErrorActionPreference = 'Stop'
66

77
$repo = 'singhpratech/dbopt'
8-
$asset = 'sqlopt-windows-x86_64.zip'
8+
$asset = 'dbopt-windows-x86_64.zip'
99
$url = "https://github.com/$repo/releases/latest/download/$asset"
1010
$dest = Join-Path $env:LOCALAPPDATA 'dbopt'
1111

@@ -16,11 +16,6 @@ Invoke-WebRequest -Uri $url -OutFile $zip
1616
Expand-Archive -Path $zip -DestinationPath $dest -Force
1717
Remove-Item $zip -Force
1818

19-
# Install as dbopt.exe
20-
if (Test-Path (Join-Path $dest 'sqlopt.exe')) {
21-
Move-Item -Force (Join-Path $dest 'sqlopt.exe') (Join-Path $dest 'dbopt.exe')
22-
}
23-
2419
# Add to the user PATH if missing
2520
$userPath = [Environment]::GetEnvironmentVariable('Path', 'User')
2621
if ($userPath -notlike "*$dest*") {

docs/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ arch="$(uname -m)"
1313
case "$os" in
1414
Linux)
1515
case "$arch" in
16-
x86_64|amd64) asset="sqlopt-linux-x86_64.tar.gz" ;;
16+
x86_64|amd64) asset="dbopt-linux-x86_64.tar.gz" ;;
1717
*) echo "dbopt: unsupported Linux arch '$arch'. See https://github.com/$REPO/releases" >&2; exit 1 ;;
1818
esac ;;
1919
Darwin)
2020
case "$arch" in
21-
arm64|aarch64) asset="sqlopt-macos-arm64.tar.gz" ;;
21+
arm64|aarch64) asset="dbopt-macos-arm64.tar.gz" ;;
2222
*) echo "dbopt: macOS requires Apple Silicon (arm64); Intel Macs are not supported." >&2; exit 1 ;;
2323
esac ;;
2424
*)
@@ -36,7 +36,7 @@ curl -fsSL "$url" -o "$tmp/pkg.tar.gz"
3636
tar -xzf "$tmp/pkg.tar.gz" -C "$tmp"
3737

3838
mkdir -p "$DEST"
39-
mv "$tmp/sqlopt" "$DEST/$BIN"
39+
mv "$tmp/dbopt" "$DEST/$BIN"
4040
chmod +x "$DEST/$BIN"
4141

4242
echo "dbopt: installed to $DEST/$BIN"

0 commit comments

Comments
 (0)