mirror of
https://github.com/VSCodium/vscodium.git
synced 2025-12-12 20:36:03 +01:00
feat(insider): generate buildinfo.json to track versions (#2544)
This commit is contained in:
@@ -18,6 +18,13 @@ mkdir -p assets
|
||||
git archive --format tar.gz --output="./assets/${APP_NAME}-${RELEASE_VERSION}-src.tar.gz" HEAD
|
||||
git archive --format zip --output="./assets/${APP_NAME}-${RELEASE_VERSION}-src.zip" HEAD
|
||||
|
||||
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
||||
COMMIT_ID=$( git rev-parse HEAD )
|
||||
|
||||
jsonTmp=$( jq -n --arg 'tag' "${RELEASE_VERSION}" --arg 'id' "${BUILD_SOURCEVERSION}" --arg 'commit' "${COMMIT_ID}" '{ "tag": $tag, "id": $id, "commit": $commit }' )
|
||||
echo "${jsonTmp}" > "./assets/buildinfo.json" && unset jsonTmp
|
||||
fi
|
||||
|
||||
cd assets
|
||||
|
||||
for FILE in *; do
|
||||
|
||||
Reference in New Issue
Block a user