mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-13 10:34:28 +05:00
refactor(mainsail/fluidd): move tag urls from globals to respective files
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -332,8 +332,10 @@ function compare_fluidd_versions() {
|
|||||||
#================================================#
|
#================================================#
|
||||||
|
|
||||||
function get_fluidd_download_url() {
|
function get_fluidd_download_url() {
|
||||||
local tags latest_tag latest_url stable_tag stable_url url
|
local fl_tags tags latest_tag latest_url stable_tag stable_url url
|
||||||
tags=$(curl -s "${FLUIDD_TAGS}" | grep "name" | cut -d'"' -f4)
|
|
||||||
|
fl_tags="https://api.github.com/repos/fluidd-core/fluidd/tags"
|
||||||
|
tags=$(curl -s "${fl_tags}" | grep "name" | cut -d'"' -f4)
|
||||||
|
|
||||||
### latest download url including pre-releases (alpha, beta, rc)
|
### latest download url including pre-releases (alpha, beta, rc)
|
||||||
latest_tag=$(echo "${tags}" | head -1)
|
latest_tag=$(echo "${tags}" | head -1)
|
||||||
|
|||||||
@@ -42,13 +42,9 @@ function set_globals() {
|
|||||||
|
|
||||||
#================= MAINSAIL ===================#
|
#================= MAINSAIL ===================#
|
||||||
MAINSAIL_DIR="${HOME}/mainsail"
|
MAINSAIL_DIR="${HOME}/mainsail"
|
||||||
MAINSAIL_REPO_API="https://api.github.com/repos/mainsail-crew/mainsail/releases"
|
|
||||||
MAINSAIL_TAGS="https://api.github.com/repos/mainsail-crew/mainsail/tags"
|
|
||||||
|
|
||||||
#================== FLUIDD ====================#
|
#================== FLUIDD ====================#
|
||||||
FLUIDD_DIR="${HOME}/fluidd"
|
FLUIDD_DIR="${HOME}/fluidd"
|
||||||
FLUIDD_REPO_API="https://api.github.com/repos/fluidd-core/fluidd/releases"
|
|
||||||
FLUIDD_TAGS="https://api.github.com/repos/fluidd-core/fluidd/tags"
|
|
||||||
|
|
||||||
#=============== KLIPPERSCREEN ================#
|
#=============== KLIPPERSCREEN ================#
|
||||||
KLIPPERSCREEN_ENV="${HOME}/.KlipperScreen-env"
|
KLIPPERSCREEN_ENV="${HOME}/.KlipperScreen-env"
|
||||||
|
|||||||
@@ -502,8 +502,10 @@ function ms_theme_delete() {
|
|||||||
#================================================#
|
#================================================#
|
||||||
|
|
||||||
function get_mainsail_download_url() {
|
function get_mainsail_download_url() {
|
||||||
local tags latest_tag latest_url stable_tag stable_url url
|
local ms_tags tags latest_tag latest_url stable_tag stable_url url
|
||||||
tags=$(curl -s "${MAINSAIL_TAGS}" | grep "name" | cut -d'"' -f4)
|
|
||||||
|
ms_tags="https://api.github.com/repos/mainsail-crew/mainsail/tags"
|
||||||
|
tags=$(curl -s "${ms_tags}" | grep "name" | cut -d'"' -f4)
|
||||||
|
|
||||||
### latest download url including pre-releases (alpha, beta, rc)
|
### latest download url including pre-releases (alpha, beta, rc)
|
||||||
latest_tag=$(echo "${tags}" | head -1)
|
latest_tag=$(echo "${tags}" | head -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user