Skip to content

Commit

Permalink
fix(setup): use the right repository (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored Nov 22, 2024
1 parent bb15220 commit 366e397
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 146 deletions.
6 changes: 3 additions & 3 deletions setup/install.ab
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { includes } from "std/array"
import { file_exist } from "std/fs"
import { get_os, get_arch, get_place, get_bins_folder } from "./shared.ab"

let name = "AmberNative"
let name = "amber"
let target = "amber"
let archive = "amber.tar.xz"
let agent = has_failed("uname -a")
Expand All @@ -14,7 +14,7 @@ let agent = has_failed("uname -a")
echo ""

fun get_latest_release_tag() {
let tag_url = "https://api.github.com/repos/Ph0enixKM/{name}/releases/latest"
let tag_url = "https://api.github.com/repos/amber-lang/{name}/releases/latest"
let tag_json = $ curl -sL "{tag_url}" $?
// Get the tag name from the JSON
let tag = $ echo "\${nameof tag_json}" \
Expand Down Expand Up @@ -79,7 +79,7 @@ main(args) {
}

// Set the download link
let url = "https://github.com/Ph0enixKM/{name}/releases/download/{tag}/amber-{arch}-{os}.tar.xz"
let url = "https://github.com/amber-lang/{name}/releases/download/{tag}/amber-{arch}-{os}.tar.xz"

// Download amber
silent $ curl -L -o "{archive}" "{url}" $ failed {
Expand Down
Loading

0 comments on commit 366e397

Please sign in to comment.