Skip to content

Commit

Permalink
System Monitoring Center: update to 2.22.1
Browse files Browse the repository at this point in the history
also switch version and version2 variables since CI at the analytics repo checks version only to report the version and we want to report the latest version for any other projects that read our package_data.json file
  • Loading branch information
theofficialgman committed Sep 18, 2023
1 parent d96c8c7 commit 83b987b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/updates/System Monitoring Center.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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)
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("v2."))) | 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)
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("v1."))) | 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
8 changes: 4 additions & 4 deletions apps/System Monitoring Center/install
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

version=1.43.10
version2=2.21.2
version=2.22.1
version2=1.43.10

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
else
install_packages https://github.com/hakandundar34coding/system-monitoring-center/releases/download/v${version}/system-monitoring-center_${version}_all.deb || exit 1
fi

0 comments on commit 83b987b

Please sign in to comment.