forked from wimpysworld/deb-get
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for Glab (wimpysworld#947)
* Add initial support for Glab * use urlencoded path instead of id * Add get gitlab releases (wimpysworld#8) * added get_gitlab_releases() * failed to filter for supported ARCHS * fix typo --------- Co-authored-by: Martin Wimpress <[email protected]>
- Loading branch information
1 parent
9f3ce5c
commit ae36cad
Showing
5 changed files
with
72 additions
and
26 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,7 @@ git-delta | |
github-desktop | ||
gitkraken | ||
gitter | ||
glab | ||
glow | ||
google-chat-electron | ||
google-chrome-beta | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
disable=SC2034,SC2148 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
DEFVER=1 | ||
#get_gitlab_releases "34675721" | ||
#get_gitlab_releases "gitlab-org%2Fcli" | ||
# PROJ="gitlab-org/cli" | ||
# PROJ=${PROJ/\//%2F} | ||
#ARCHS_SUPPORTED="amd64 arm64 armhf | ||
get_gitlab_releases "gitlab-org%2Fcli" "latest" | ||
|
||
if [ "${ACTION}" != "prettylist" ]; then | ||
URL=$(jq <${CACHE_FILE} -r '.[] |select(.name|contains("x86_64.deb"))| .direct_asset_url') | ||
#URL=$(jq <${CACHE_FILE} --arg arch ${HOST_CPU/armhf/arm} -r '.[] |select(.name|contains($arch))|select(.name|contains(".deb"))| .direct_asset_url') | ||
|
||
#URL= $(jq <${CACHE_FILE} -r '.[] | .direct_asset_url' | grep ".*${HOST_CPU}\.deb" | ||
#URL="${URL//\"}" | ||
|
||
VERSION_PUBLISHED="${URL##*/releases/v}" | ||
VERSION_PUBLISHED=${VERSION_PUBLISHED%%/*} | ||
fi | ||
|
||
PRETTY_NAME="Glab" | ||
WEBSITE="https://gitlab.com/gitlab-org/cli" | ||
SUMMARY="A GitLab CLI tool bringing GitLab to your command line" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters