summaryrefslogtreecommitdiffhomepage
path: root/desktop/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/scripts')
-rwxr-xr-xdesktop/scripts/release/4-make-release16
1 files changed, 14 insertions, 2 deletions
diff --git a/desktop/scripts/release/4-make-release b/desktop/scripts/release/4-make-release
index 9766223ec0..051d8766a9 100755
--- a/desktop/scripts/release/4-make-release
+++ b/desktop/scripts/release/4-make-release
@@ -62,10 +62,22 @@ function publish_release {
body+="\n$changelog"
+ read -rp "The suggested changelog will be opened in an editor, please finalize and save it before exiting. Press enter to open changelog..."
+
+ tmp_changelog_file=$(mktemp)
+ {
+ printf "%b" "$body"
+ printf "%b" "\n\n<!--\nThe following artifacts will be included:\n"
+ # shellcheck disable=SC2012
+ ls -lh "$ARTIFACT_DIR" | tail -n +2 | awk '{print $9,"( Size:",$5,")"}'
+ echo "-->"
+ } > "$tmp_changelog_file"
+
+ "${EDITOR:-"vim"}" "$tmp_changelog_file"
+
log_header "Creating GitHub release"
- # shellcheck disable=SC2059
# shellcheck disable=SC2046
- printf "$body" | gh release create "${release_flags[@]}" "$PRODUCT_VERSION" $(printf "%s " "$ARTIFACT_DIR"/*)
+ gh release create "${release_flags[@]}" "$PRODUCT_VERSION" $(printf "%s " "$ARTIFACT_DIR"/*) < "$tmp_changelog_file"
log_success "\nThe above URL contains the text \"untagged\", but don't worry it is tagged properly and everything will look correct once it's published."
}