Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 authored Sep 14, 2023
1 parent 0b1fc79 commit c12e55d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
26 changes: 14 additions & 12 deletions get_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ if [[ -z "${RELEASE_VERSION}" ]]; then
if [[ "${VSCODE_LATEST}" == "yes" ]] || [[ ! -f "insider.json" ]]; then
UPDATE_INFO=$( curl --silent --fail https://update.code.visualstudio.com/api/update/win32/insider/0000000000000000000000000000000000000000 )
else
MS_COMMIT="8b617bd08fd9e3fc94d14adb8d358b56e3f72314"
MS_TAG="1.82.0"
MS_COMMIT="6509174151d557a81c9d0b5f8a5a1e9274db5585"
MS_TAG="1.82.1"
fi
else
UPDATE_INFO=$( curl --silent --fail https://update.code.visualstudio.com/api/update/win32/stable/0000000000000000000000000000000000000000 )
fi

if [[ -z "${MS_COMMIT}" ]]; then
MS_COMMIT="8b617bd08fd9e3fc94d14adb8d358b56e3f72314"
MS_TAG="1.82.0"
MS_COMMIT="6509174151d557a81c9d0b5f8a5a1e9274db5585"
MS_TAG="1.82.1"

if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
MS_TAG="1.82.0"
MS_TAG="1.82.1"
fi
fi

Expand All @@ -40,22 +40,22 @@ else
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
if [[ "${RELEASE_VERSION}" =~ ^([0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+-insider$ ]];
then
MS_TAG="1.82.0"
MS_TAG="1.82.1"
else
echo "Error: Bad RELEASE_VERSION: ${RELEASE_VERSION}"
exit 1
fi

if [[ "${MS_TAG}" == "$( jq -r '.tag' insider.json )" ]]; then
MS_COMMIT="8b617bd08fd9e3fc94d14adb8d358b56e3f72314"
MS_COMMIT="6509174151d557a81c9d0b5f8a5a1e9274db5585"
else
echo "Error: No MS_COMMIT for ${RELEASE_VERSION}"
exit 1
fi
else
if [[ "${RELEASE_VERSION}" =~ ^([0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+$ ]];
then
MS_TAG="1.82.0"
MS_TAG="1.82.1"
else
echo "Error: Bad RELEASE_VERSION: ${RELEASE_VERSION}"
exit 1
Expand All @@ -78,17 +78,17 @@ if [[ -z "${MS_TAG}" ]]; then
else
UPDATE_INFO=$( curl --silent --fail https://update.code.visualstudio.com/api/update/darwin/stable/0000000000000000000000000000000000000000 )
fi
MS_COMMIT="8b617bd08fd9e3fc94d14adb8d358b56e3f72314"
MS_TAG="1.82.0"
MS_COMMIT="6509174151d557a81c9d0b5f8a5a1e9274db5585"
MS_TAG="1.82.1"
elif [[ -z "${MS_COMMIT}" ]]; then
REFERENCE=$( git ls-remote --tags | grep -x ".*refs\/tags\/${MS_TAG}" | head -1 )

if [[ -z "${REFERENCE}" ]]; then
echo "Error: The following tag can't be found: ${MS_TAG}"
exit 1
elif [[ "${REFERENCE}" =~ ^([[:alnum:]]+)[[:space:]]+refs\/tags\/([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
MS_COMMIT="8b617bd08fd9e3fc94d14adb8d358b56e3f72314"
MS_TAG="1.82.0"
MS_COMMIT="6509174151d557a81c9d0b5f8a5a1e9274db5585"
MS_TAG="1.82.1"
else
echo "Error: The following reference can't be parsed: ${REFERENCE}"
exit 1
Expand All @@ -101,6 +101,8 @@ echo "MS_COMMIT=\"${MS_COMMIT}\""
git fetch --depth 1 origin "${MS_COMMIT}"
git checkout FETCH_HEAD

/usr/bin/find ./ \( -type d -name .git -prune -type d -name node_modules -prune \) -o -type f -name package.json -print0 | xargs -0 sed -i 's/\"\@types\/node\"\:\ \"18\.x\"/\"\@types\/node\"\:\ \"16\.x\"/g' &&

cd ..

# for GH actions
Expand Down
1 change: 0 additions & 1 deletion version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ if [[ -z "${BUILD_SOURCEVERSION}" ]]; then
fi

export BUILD_SOURCEVERSION
echo "BUILD_SOURCEVERSION=\"${BUILD_SOURCEVERSION}\"" >> build.env

0 comments on commit c12e55d

Please sign in to comment.