Compare commits

..

2 commits

Author SHA1 Message Date
Tracey Clark
5f20148eb0 Initial commit of script to update a Solus package recipe 2026-05-09 20:08:35 -05:00
Tracey Clark
0bb2a83504 Update README with new scripts 2026-05-09 16:53:39 -05:00
2 changed files with 61 additions and 2 deletions

View file

@ -9,13 +9,16 @@ Old customizer scripts for gnome
## nextcloud
WIP - Install all missing needed modules for Nextcloud on a server
## solus_utility
Scripts specific to Solus
* Set up a Solus OS development environment (update needed)
## utility
Miscellaneous scripts, e.g. set screen brightness from command line (bug workaround)
## Other
* Backup and restore scripts for packages installed on Solus OS
* Set up a Solus OS development environment (update needed)
* git_tidy_local_branches.sh - will remove local branches when the remote is gone # new saved
* git_tidy_local_branches.sh - will remove local branches when the remote is gone # new
* Backup and restore scripts for Linux systems
* obsidian_hide_inlineTitle.py - Change all Obsidian vaults to hide inline titles
* obsidian_get_inlineTitle_values.py - Get the value of inlineTitle in all Obsidian vaults

View file

@ -0,0 +1,56 @@
#!/usr/bin/env bash
# Update syncthing
echo "Running solus_update_syncthing. Remember to create a new branch"
source ~/.bashrc.d/solus-monorepo-helpers.sh
function get_package_ver {
local ver
ver="$(curl -s $latest_rel_url | jq -r .name)"
# ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values.
echo "${ver}"
}
function set_recipe_url {
local tag_ver
tag_ver=$(get_package_ver $pkg)
local source_url
source_url="https://github.com/${owner}/${repo}/archive/refs/tags/${tag_ver}.tar.gz"
echo "${source_url}"
}
function get_ver_num {
local ver_string
ver_string=$(get_package_ver $pkg)
local ver_num
#TODO: if test to only trim if there's a v at the beginning of the string
ver_num="${ver_string:1}"
echo $ver_num
}
function clean_and_update {
echo "go-task update for $1 ver $2 url $3"
gotosoluspkgs
gotopkg "${1}"
git switch -c "update_${1}_${2}"
go-task clean
go-task update -- "${2}" "${3}"
# go-task # Probably don't want to do this
# TODO: chpwd ? To make shell stay in dir?
}
# TODO: Pass pkg, name, repo in as a variable to the script
pkg=syncthing
owner=syncthing
repo=syncthing
latest_rel_url=https://api.github.com/repos/${owner}/${repo}/releases/latest
pkg_ver=$(get_ver_num)
pkg_url=$(set_recipe_url $pkg)
clean_and_update "$pkg" "$pkg_ver" "$pkg_url"
echo "Complete. Run go-task in the package directory."