Reminding myself to upgrade Electron and bump the release version for future releases (#3299)

This commit is contained in:
Devin Binnie
2025-02-03 08:44:58 -05:00
committed by GitHub
parent 1608e54e01
commit 7e1294035b

View File

@@ -65,6 +65,7 @@ if ! type jq >/dev/null 2>&1; then
fi fi
is_esr="N" is_esr="N"
electron_upgrade="N"
# get version # get version
pkg_version="$(jq -r .version package.json)" pkg_version="$(jq -r .version package.json)"
# remove trailing # remove trailing
@@ -85,11 +86,19 @@ case "${1}" in
touch .esr touch .esr
git add .esr git add .esr
fi fi
read -p "Did you upgrade to the latest stable Electron release? [y/N]: " electron_upgrade
if [[ ! "${electron_upgrade}" =~ ^[Yy]$ ]]; then
print_info "Please upgrade to the latest stable Electron release before continuing"
exit 2
fi
new_pkg_version="${current_version}-rc.1" new_pkg_version="${current_version}-rc.1"
write_package_version "${new_pkg_version}" write_package_version "${new_pkg_version}"
tag "${new_pkg_version}" "Release candidate 1" tag "${new_pkg_version}" "Release candidate 1"
print_info "Locally created an new release with rc.1. In order to build you'll have to:" print_info "Locally created an new release with rc.1. In order to build you'll have to:"
print_info "$ git push --follow-tags ${git_origin} ${branch_name}:${branch_name}" print_info "$ git push --follow-tags ${git_origin} ${branch_name}:${branch_name}"
print_info "--------\n"
print_info " == REMINDER == "
print_info "Don't forget to go and update the master branch to the next release version!"
else else
print_error "Can't generate a release on a non release-X.Y branch" print_error "Can't generate a release on a non release-X.Y branch"
exit 2 exit 2