Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion forge/sterling/build/assets/manifest.webapp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.3.0",
"version": "2.3.1",
"name": "sterling-layout",
"description": "Spytial Sterling is a fork of the Sterling visualizer that encodes spatial layout.",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion forge/sterling/build/assets/yandex-browser-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.3.0",
"version": "2.3.1",
"api_version": 1,
"layout": {
"logo": "yandex-browser-50x50.png",
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions forge/sterling/build/version.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Sterling Layout",
"version": "2.3.0",
"version": "2.3.1",
"build": "forge",
"timestamp": "2026-02-05T00:08:47Z",
"timestamp": "2026-02-06T18:03:28Z",
"tag": ""
}
34 changes: 31 additions & 3 deletions forge/sterling/update-sterling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
set -euo pipefail

DEFAULT_REPO="sidprasad/sterling-ts"
DEFAULT_TAG="v2.3.0"
DEFAULT_TAG="latest"
DEFAULT_ASSET="sterling-forge.zip"



usage() {
cat <<'USAGE'
Usage: ./update-sterling.sh [tag]
Expand All @@ -16,6 +18,23 @@ Environment overrides:
USAGE
}

get_latest_tag() {
local repo_name="$1"
local api_url="https://api.github.com/repos/${repo_name}/releases/latest"
local response=""

if command -v curl >/dev/null 2>&1; then
response="$(curl -fsSL "$api_url")"
elif command -v wget >/dev/null 2>&1; then
response="$(wget -qO- "$api_url")"
else
echo "Missing required tool: curl or wget" >&2
exit 1
fi

echo "$response" | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -n 1
}

repo="${STERLING_REPO:-$DEFAULT_REPO}"
tag="${STERLING_TAG:-$DEFAULT_TAG}"
asset="${STERLING_ASSET:-$DEFAULT_ASSET}"
Expand Down Expand Up @@ -64,11 +83,20 @@ while [[ $# -gt 0 ]]; do
done

if [[ -z "$url" ]]; then
if [[ -z "$tag" || -z "$repo" || -z "$asset" ]]; then
echo "Missing tag/repo/asset values." >&2
if [[ -z "$repo" || -z "$asset" ]]; then
echo "Missing repo/asset values." >&2
usage
exit 1
fi

if [[ -z "$tag" || "$tag" == "latest" ]]; then
tag="$(get_latest_tag "$repo")"
if [[ -z "$tag" ]]; then
echo "Unable to resolve latest release tag." >&2
exit 1
fi
fi

url="https://github.com/${repo}/releases/download/${tag}/${asset}"
fi

Expand Down