From 7040069ad556ac20ab1144d207c0180f782c3f04 Mon Sep 17 00:00:00 2001 From: Manh Pham Date: Fri, 4 Dec 2026 14:21:14 +0700 Subject: [PATCH] Update Windows publisher and migrate historical release links to Bitfaring --- packaging/windows/Deskhub.iss | 2 +- scripts/update-release-owner-links.sh | 32 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100755 scripts/update-release-owner-links.sh diff --git a/packaging/windows/Deskhub.iss b/packaging/windows/Deskhub.iss index df5f161b..4bd8a2f7 100644 --- a/packaging/windows/Deskhub.iss +++ b/packaging/windows/Deskhub.iss @@ -6,7 +6,7 @@ AppId={{A54D0B95-4B42-4A02-A9C6-EC43BA13034E} AppName=DeskHub AppVersion={#AppVersion} -AppPublisher=ManhPham +AppPublisher=Bitfaring DefaultDirName={autopf}\DeskHub DefaultGroupName=DeskHub DisableProgramGroupPage=yes diff --git a/scripts/update-release-owner-links.sh b/scripts/update-release-owner-links.sh new file mode 100755 index 00000000..49bc3350 --- /dev/null +++ b/scripts/update-release-owner-links.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash +# Preview historical release notes affected by the repository transfer. +# Pass --apply to update their bodies using the authenticated GitHub CLI. +set -euo pipefail + +case "${1-}" in + ''|--apply) ;; + *) echo "Usage: $0 [--apply]" >&2; exit 2 ;; +esac + +releases=repos/Bitfaring/Deskhub/releases +rewrite=' + def update_links: + split("https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md") + | join("https://bitfaring.com/products/deskhub/privacy/") + | split("https://github.com/manhpham90vn/Deskhub/") + | join("https://github.com/Bitfaring/Deskhub/") + | split("https://raw.githubusercontent.com/manhpham90vn/Deskhub/") + | join("https://raw.githubusercontent.com/Bitfaring/Deskhub/"); +' + +gh api --paginate "$releases" | + jq -r "$rewrite"' .[] | select(.body != null and (.body | update_links) != .body) + | [.id, .tag_name] | @tsv' | + while IFS=$'\t' read -r id tag; do + echo "$tag" + if [[ ${1-} == --apply ]]; then + gh api "$releases/$id" | + jq "$rewrite"' {body: (.body | update_links)}' | + gh api --method PATCH "$releases/$id" --input - --silent + fi + done