fix: correctly generate src archives [skip ci]
This commit is contained in:
parent
c14e5d4a97
commit
fc8e62c908
2 changed files with 13 additions and 8 deletions
|
@ -330,7 +330,7 @@ else
|
|||
export SHOULD_BUILD_APPIMAGE="no"
|
||||
fi
|
||||
elif [[ "${OS_NAME}" == "osx" ]]; then
|
||||
if [[ "${VSCODE_QUALITY}" == "insider" && "${VSCODE_ARCH}" == "arm64" ]]; then
|
||||
if [[ "${VSCODE_ARCH}" == "arm64" ]]; then
|
||||
export SHOULD_BUILD_SRC="yes"
|
||||
fi
|
||||
elif [[ "${OS_NAME}" == "windows" ]]; then
|
||||
|
|
|
@ -75,15 +75,20 @@ generateJson() {
|
|||
updateLatestVersion() {
|
||||
echo "Generating ${VERSION_PATH}/latest.json"
|
||||
|
||||
# do not update the same version since BUILD_SOURCEVERSION might be different
|
||||
if [[ -f "versions/${VERSION_PATH}/latest.json" ]]; then
|
||||
CURRENT_VERSION=$( jq -r '.name' "versions/${VERSION_PATH}/latest.json" )
|
||||
|
||||
if [[ "${CURRENT_VERSION}" == "${RELEASE_VERSION}" ]]; then
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
mkdir -p "versions/${VERSION_PATH}"
|
||||
|
||||
generateJson
|
||||
|
||||
cd versions
|
||||
|
||||
# create/update the latest.json file in the correct location
|
||||
mkdir -p "${VERSION_PATH}"
|
||||
echo "${JSON_DATA}" > "${VERSION_PATH}/latest.json"
|
||||
|
||||
cd ..
|
||||
echo "${JSON_DATA}" > "versions/${VERSION_PATH}/latest.json"
|
||||
}
|
||||
|
||||
# init versions repo for later commiting + pushing the json file to it
|
||||
|
|
Loading…
Reference in a new issue