mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 03:50:13 +10:00
fix: no cli for smo arch and update release notes
This commit is contained in:
41
release.sh
41
release.sh
@@ -19,20 +19,21 @@ if [[ $( gh release view "${RELEASE_VERSION}" --repo "${ASSETS_REPOSITORY}" 2>&1
|
||||
. ./utils.sh
|
||||
|
||||
APP_NAME_LC="$( echo "${APP_NAME}" | awk '{print tolower($0)}' )"
|
||||
VERSION="${RELEASE_VERSION%-insider}"
|
||||
|
||||
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
||||
NOTES="update vscode to [${MS_COMMIT}](https://github.com/microsoft/vscode/tree/${MS_COMMIT})"
|
||||
|
||||
replace "s|@@APP_NAME@@|${APP_NAME}|" release_notes.md
|
||||
replace "s|@@APP_NAME_LC@@|${APP_NAME_LC}|" release_notes.md
|
||||
replace "s|@@APP_NAME_QUALITY@@|${APP_NAME}-Insiders|" release_notes.md
|
||||
replace "s|@@ASSETS_REPOSITORY@@|${ASSETS_REPOSITORY}|" release_notes.md
|
||||
replace "s|@@BINARY_NAME@@|${BINARY_NAME}|" release_notes.md
|
||||
replace "s|@@MS_TAG@@|${MS_COMMIT}|" release_notes.md
|
||||
replace "s|@@MS_URL@@|https://github.com/microsoft/vscode/tree/${MS_COMMIT}|" release_notes.md
|
||||
replace "s|@@RELEASE_NOTES@@||" release_notes.md
|
||||
replace "s|@@RELEASE_VERSION@@|${RELEASE_VERSION}|g" release_notes.md
|
||||
replace "s|@@VSCODE_QUALITY@@|-insider|" release_notes.md
|
||||
replace "s|@@APP_NAME@@|${APP_NAME}|g" release_notes.md
|
||||
replace "s|@@APP_NAME_LC@@|${APP_NAME_LC}|g" release_notes.md
|
||||
replace "s|@@APP_NAME_QUALITY@@|${APP_NAME}-Insiders|g" release_notes.md
|
||||
replace "s|@@ASSETS_REPOSITORY@@|${ASSETS_REPOSITORY}|g" release_notes.md
|
||||
replace "s|@@BINARY_NAME@@|${BINARY_NAME}|g" release_notes.md
|
||||
replace "s|@@MS_TAG@@|${MS_COMMIT}|g" release_notes.md
|
||||
replace "s|@@MS_URL@@|https://github.com/microsoft/vscode/tree/${MS_COMMIT}|g" release_notes.md
|
||||
replace "s|@@QUALITY@@|-insider|g" release_notes.md
|
||||
replace "s|@@RELEASE_NOTES@@|g" release_notes.md
|
||||
replace "s|@@VERSION@@|${VERSION}|g" release_notes.md
|
||||
|
||||
gh release create "${RELEASE_VERSION}" --repo "${ASSETS_REPOSITORY}" --title "${RELEASE_VERSION}" --notes-file release_notes.md
|
||||
else
|
||||
@@ -40,16 +41,16 @@ if [[ $( gh release view "${RELEASE_VERSION}" --repo "${ASSETS_REPOSITORY}" 2>&1
|
||||
|
||||
RELEASE_NOTES=$( gh release view "${RELEASE_VERSION}" --repo "${ASSETS_REPOSITORY}" --json "body" --jq ".body" )
|
||||
|
||||
replace "s|@@APP_NAME@@|${APP_NAME}|" release_notes.md
|
||||
replace "s|@@APP_NAME_LC@@|${APP_NAME_LC}|" release_notes.md
|
||||
replace "s|@@APP_NAME_QUALITY@@|${APP_NAME}|" release_notes.md
|
||||
replace "s|@@ASSETS_REPOSITORY@@|${ASSETS_REPOSITORY}|" release_notes.md
|
||||
replace "s|@@BINARY_NAME@@|${BINARY_NAME}|" release_notes.md
|
||||
replace "s|@@MS_TAG@@|${MS_TAG}|" release_notes.md
|
||||
replace "s|@@MS_URL@@|https://code.visualstudio.com/updates/v$( echo "${MS_TAG//./_}" | cut -d'_' -f 1,2 )|" release_notes.md
|
||||
replace "s|@@RELEASE_NOTES@@|${RELEASE_NOTES//$'\n'/\\n}|" release_notes.md
|
||||
replace "s|@@RELEASE_VERSION@@|${RELEASE_VERSION}|g" release_notes.md
|
||||
replace "s|@@VSCODE_QUALITY@@||" release_notes.md
|
||||
replace "s|@@APP_NAME@@|${APP_NAME}|g" release_notes.md
|
||||
replace "s|@@APP_NAME_LC@@|${APP_NAME_LC}|g" release_notes.md
|
||||
replace "s|@@APP_NAME_QUALITY@@|${APP_NAME}|g" release_notes.md
|
||||
replace "s|@@ASSETS_REPOSITORY@@|${ASSETS_REPOSITORY}|g" release_notes.md
|
||||
replace "s|@@BINARY_NAME@@|${BINARY_NAME}|g" release_notes.md
|
||||
replace "s|@@MS_TAG@@|${MS_TAG}|g" release_notes.md
|
||||
replace "s|@@MS_URL@@|https://code.visualstudio.com/updates/v$( echo "${MS_TAG//./_}" | cut -d'_' -f 1,2 )|g" release_notes.md
|
||||
replace "s|@@QUALITY@@||g" release_notes.md
|
||||
replace "s|@@RELEASE_NOTES@@|${RELEASE_NOTES//$'\n'/\\n}|g" release_notes.md
|
||||
replace "s|@@VERSION@@|${VERSION}|g" release_notes.md
|
||||
|
||||
gh release edit "${RELEASE_VERSION}" --repo "${ASSETS_REPOSITORY}" --notes-file release_notes.md
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user