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
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "routecode-cli"
version = "0.1.7"
version = "0.1.8"
edition = "2021"
authors = ["SpeerX <anasrhnim07@gmail.com>"]
description = "CLI application for RouteCode"
Expand Down
2 changes: 1 addition & 1 deletion install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $repo = "anasx07/routecode"
$latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/$repo/releases/latest"
$tag = $latestRelease.tag_name

$assetName = "routecode-windows-x86_64.exe"
$assetName = "RouteCode-cli-windows-x86_64.exe"
$url = "https://github.com/$repo/releases/download/$tag/$assetName"

$installDir = "$HOME\.routecode\bin"
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ ARCH=$(uname -m)

case "$OS" in
linux)
ASSET="routecode-linux-x86_64"
ASSET="RouteCode-cli-linux-x86_64"
;;
darwin)
if [ "$ARCH" = "arm64" ]; then
ASSET="routecode-macos-arm64"
ASSET="RouteCode-cli-macos-arm64"
else
ASSET="routecode-macos-x86_64"
ASSET="RouteCode-cli-macos-x86_64"
fi
;;
*)
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "routecode-sdk"
version = "0.1.7"
version = "0.1.8"
edition = "2021"
authors = ["SpeerX <anasrhnim07@gmail.com>"]
description = "Core logic for RouteCode"
Expand Down
16 changes: 8 additions & 8 deletions libs/sdk/src/update/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,31 @@ pub struct GitHubAsset {

pub fn get_platform_asset_name() -> Option<&'static str> {
if cfg!(target_os = "windows") {
Some("routecode-windows-x86_64.exe")
Some("RouteCode-cli-windows-x86_64.exe")
} else if cfg!(target_os = "macos") {
if cfg!(target_arch = "aarch64") {
Some("routecode-macos-arm64")
Some("RouteCode-cli-macos-arm64")
} else {
Some("routecode-macos-x86_64")
Some("RouteCode-cli-macos-x86_64")
}
} else if cfg!(target_os = "linux") {
Some("routecode-linux-x86_64")
Some("RouteCode-cli-linux-x86_64")
} else {
None
}
}

pub fn get_platform_checksum_asset_name() -> Option<&'static str> {
if cfg!(target_os = "windows") {
Some("routecode-windows-x86_64.exe.sha256")
Some("RouteCode-cli-windows-x86_64.exe.sha256")
} else if cfg!(target_os = "macos") {
if cfg!(target_arch = "aarch64") {
Some("routecode-macos-arm64.sha256")
Some("RouteCode-cli-macos-arm64.sha256")
} else {
Some("routecode-macos-x86_64.sha256")
Some("RouteCode-cli-macos-x86_64.sha256")
}
} else if cfg!(target_os = "linux") {
Some("routecode-linux-x86_64.sha256")
Some("RouteCode-cli-linux-x86_64.sha256")
} else {
None
}
Expand Down
Loading