-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
System Monitoring Center: use v2 (GTK4) if
gir1.2-gtk-4.0
package i…
…s available this will result in Ubuntu Jammy and Debian Bookworm and newer using the v2 (GTK4) based version which has more features than the GTK3 version
- Loading branch information
1 parent
46ff5e5
commit d96c8c7
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
webVer=$(curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/hakandundar34coding/system-monitoring-center/releases" | jq -r 'map(select(.prerelease==false)) | map(select(.draft==false)) | map(select(.tag_name | startswith("v1."))) | first | .tag_name' | sed s/^v//g) | ||
all_url="https://github.com/hakandundar34coding/system-monitoring-center/releases/download/v${webVer}/system-monitoring-center_${webVer}_all.deb" | ||
webVer[0]=$(curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/hakandundar34coding/system-monitoring-center/releases" | jq -r 'map(select(.prerelease==false)) | map(select(.draft==false)) | map(select(.tag_name | startswith("v1."))) | first | .tag_name' | sed s/^v//g) | ||
all_url[0]="https://github.com/hakandundar34coding/system-monitoring-center/releases/download/v${webVer[0]}/system-monitoring-center_${webVer[0]}_all.deb" | ||
webVer[1]=$(curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/hakandundar34coding/system-monitoring-center/releases" | jq -r 'map(select(.prerelease==false)) | map(select(.draft==false)) | map(select(.tag_name | startswith("v2."))) | first | .tag_name' | sed s/^v//g) | ||
all_url[1]="https://github.com/hakandundar34coding/system-monitoring-center/releases/download/v${webVer[1]}/system-monitoring-center_${webVer[1]}_all.deb" | ||
|
||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh |
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
|
||
version=1.43.10 | ||
version2=2.21.2 | ||
|
||
install_packages https://github.com/hakandundar34coding/system-monitoring-center/releases/download/v${version}/system-monitoring-center_${version}_all.deb || exit 1 | ||
if ! package_available gir1.2-gtk-4.0 ; then | ||
install_packages https://github.com/hakandundar34coding/system-monitoring-center/releases/download/v${version}/system-monitoring-center_${version}_all.deb || exit 1 | ||
else | ||
install_packages https://github.com/hakandundar34coding/system-monitoring-center/releases/download/v${version2}/system-monitoring-center_${version2}_all.deb || exit 1 | ||
fi |