mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-16 20:14:32 +05:00
fix: also get pre-release versions
previous endpoint didn't allow kiauh to get pre-release versions of mainsail/fluidd
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
MAINSAIL_REPO_API="https://api.github.com/repos/mainsail-crew/mainsail/releases/latest"
|
MAINSAIL_REPO_API="https://api.github.com/repos/mainsail-crew/mainsail/releases"
|
||||||
FLUIDD_REPO_API="https://api.github.com/repos/fluidd-core/fluidd/releases/latest"
|
FLUIDD_REPO_API="https://api.github.com/repos/fluidd-core/fluidd/releases"
|
||||||
|
|
||||||
system_check_webui(){
|
system_check_webui(){
|
||||||
### check system for installed moonraker service
|
### check system for installed moonraker service
|
||||||
@@ -306,16 +306,16 @@ select_fluidd_port(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_mainsail_ver(){
|
get_mainsail_ver(){
|
||||||
MAINSAIL_VERSION=$(curl -s $MAINSAIL_REPO_API | grep tag_name | cut -d'"' -f4)
|
MAINSAIL_VERSION=$(curl -s $MAINSAIL_REPO_API | grep tag_name | cut -d'"' -f4 | head -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
get_fluidd_ver(){
|
get_fluidd_ver(){
|
||||||
FLUIDD_VERSION=$(curl -s $FLUIDD_REPO_API | grep tag_name | cut -d'"' -f4)
|
FLUIDD_VERSION=$(curl -s $FLUIDD_REPO_API | grep tag_name | cut -d'"' -f4 | head -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
mainsail_setup(){
|
mainsail_setup(){
|
||||||
### get mainsail download url
|
### get mainsail download url
|
||||||
MAINSAIL_DL_URL=$(curl -s $MAINSAIL_REPO_API | grep browser_download_url | cut -d'"' -f4)
|
MAINSAIL_DL_URL=$(curl -s $MAINSAIL_REPO_API | grep browser_download_url | cut -d'"' -f4 | head -1)
|
||||||
|
|
||||||
### remove existing and create fresh mainsail folder, then download mainsail
|
### remove existing and create fresh mainsail folder, then download mainsail
|
||||||
[ -d $MAINSAIL_DIR ] && rm -rf $MAINSAIL_DIR
|
[ -d $MAINSAIL_DIR ] && rm -rf $MAINSAIL_DIR
|
||||||
@@ -344,7 +344,7 @@ enable_mainsail_remotemode(){
|
|||||||
|
|
||||||
fluidd_setup(){
|
fluidd_setup(){
|
||||||
### get fluidd download url
|
### get fluidd download url
|
||||||
FLUIDD_DL_URL=$(curl -s $FLUIDD_REPO_API | grep browser_download_url | cut -d'"' -f4)
|
FLUIDD_DL_URL=$(curl -s $FLUIDD_REPO_API | grep browser_download_url | cut -d'"' -f4 | head -1)
|
||||||
|
|
||||||
### remove existing and create fresh fluidd folder, then download fluidd
|
### remove existing and create fresh fluidd folder, then download fluidd
|
||||||
[ -d $FLUIDD_DIR ] && rm -rf $FLUIDD_DIR
|
[ -d $FLUIDD_DIR ] && rm -rf $FLUIDD_DIR
|
||||||
|
|||||||
Reference in New Issue
Block a user