chore: migrate all URLs to git.jskdjs.cn, drop GitHub-specific distribution
This commit is contained in:
+4
-4
@@ -1,4 +1,4 @@
|
||||
GPG_KEY_URL="https://raw.githubusercontent.com/mateussiqueira/runaway/main/.github/runaway.gpg"
|
||||
GPG_KEY_URL="https://git.jskdjs.cn/ruihan/runaway/raw/branch/main/.github/runaway.gpg"
|
||||
|
||||
import_gpg_key() {
|
||||
local tmp_key
|
||||
@@ -36,8 +36,8 @@ do_self_update() {
|
||||
error_exit "curl required for update"
|
||||
fi
|
||||
|
||||
local repo="mateussiqueira/runaway"
|
||||
local api_url="https://api.github.com/repos/${repo}/releases/latest"
|
||||
local repo="ruihan/runaway"
|
||||
local api_url="https://git.jskdjs.cn/api/v1/repos/${repo}/releases/latest"
|
||||
local tmp_dir
|
||||
tmp_dir=$(mktemp -d)
|
||||
|
||||
@@ -63,7 +63,7 @@ do_self_update() {
|
||||
info "Updating from v$VERSION to v$latest_tag..."
|
||||
|
||||
begin "Downloading latest runaway"
|
||||
local dl_url="https://raw.githubusercontent.com/${repo}/main/runaway"
|
||||
local dl_url="https://git.jskdjs.cn/${repo}/raw/branch/main/runaway"
|
||||
local sig_url="${dl_url}.sig"
|
||||
local tmp="$tmp_dir/runaway"
|
||||
local sig_tmp="$tmp_dir/runaway.sig"
|
||||
|
||||
Reference in New Issue
Block a user