|
@@ -14,37 +14,56 @@ if [ "$GITHUB_TOKEN" != "" ]; then
|
|
|
echo "Building on Mac because we have no ZIP"
|
|
|
export SHOULD_BUILD="yes"
|
|
|
fi
|
|
|
+ elif [[ $BUILDARCH == "ia32" ]]; then
|
|
|
+ HAVE_IA32_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["i386.rpm"])')
|
|
|
+ HAVE_IA32_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["i386.deb"])')
|
|
|
+ HAVE_IA32_TAR=$(echo $VSCODIUM_ASSETS | jq --arg suffix "ia32-$LATEST_MS_TAG.tar.gz" 'map(.name) | contains([$suffix])')
|
|
|
+ if [[ "$HAVE_IA32_RPM" != "true" ]]; then
|
|
|
+ echo "Building on Linux ia32 because we have no RPM"
|
|
|
+ export SHOULD_BUILD="yes"
|
|
|
+ fi
|
|
|
+ if [[ "$HAVE_IA32_DEB" != "true" ]]; then
|
|
|
+ echo "Building on Linux ia32 because we have no DEB"
|
|
|
+ export SHOULD_BUILD="yes"
|
|
|
+ fi
|
|
|
+ if [[ "$HAVE_IA32_TAR" != "true" ]]; then
|
|
|
+ echo "Building on Linux ia32 because we have no TAR"
|
|
|
+ export SHOULD_BUILD="yes"
|
|
|
+ fi
|
|
|
+ if [[ "$SHOULD_BUILD" != "yes" ]]; then
|
|
|
+ echo "Already have all the Linux ia32 builds"
|
|
|
+ fi
|
|
|
else
|
|
|
- HAVE_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["rpm"])')
|
|
|
- HAVE_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["deb"])')
|
|
|
- HAVE_TAR=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["tar.gz"])')
|
|
|
- if [[ "$HAVE_RPM" != "true" ]]; then
|
|
|
- echo "Building on Linux because we have no RPM"
|
|
|
+ HAVE_64_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["x86_64.rpm"])')
|
|
|
+ HAVE_64_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["amd64.deb"])')
|
|
|
+ HAVE_64_TAR=$(echo $VSCODIUM_ASSETS | jq --arg suffix "x64-$LATEST_MS_TAG.tar.gz" 'map(.name) | contains([$suffix])')
|
|
|
+ if [[ "$HAVE_64_RPM" != "true" ]]; then
|
|
|
+ echo "Building on Linux x64 because we have no RPM"
|
|
|
export SHOULD_BUILD="yes"
|
|
|
fi
|
|
|
- if [[ "$HAVE_DEB" != "true" ]]; then
|
|
|
- echo "Building on Linux because we have no DEB"
|
|
|
+ if [[ "$HAVE_64_DEB" != "true" ]]; then
|
|
|
+ echo "Building on Linux x64 because we have no DEB"
|
|
|
export SHOULD_BUILD="yes"
|
|
|
fi
|
|
|
- if [[ "$HAVE_TAR" != "true" ]]; then
|
|
|
- echo "Building on Linux because we have no TAR"
|
|
|
+ if [[ "$HAVE_64_TAR" != "true" ]]; then
|
|
|
+ echo "Building on Linux x64 because we have no TAR"
|
|
|
export SHOULD_BUILD="yes"
|
|
|
fi
|
|
|
if [[ "$SHOULD_BUILD" != "yes" ]]; then
|
|
|
- echo "Already have all the Linux builds"
|
|
|
+ echo "Already have all the Linux x64 builds"
|
|
|
fi
|
|
|
fi
|
|
|
else
|
|
|
echo "Release assets do not exist at all, continuing build"
|
|
|
export SHOULD_BUILD="yes"
|
|
|
- if git rev-parse $LATEST_MS_TAG >/dev/null 2>&1
|
|
|
- then
|
|
|
- export TRAVIS_TAG=$LATEST_MS_TAG
|
|
|
- else
|
|
|
- git config --local user.name "Travis CI"
|
|
|
- git config --local user.email "builds@travis-ci.com"
|
|
|
- git tag $LATEST_MS_TAG
|
|
|
- fi
|
|
|
+ fi
|
|
|
+ if git rev-parse $LATEST_MS_TAG >/dev/null 2>&1
|
|
|
+ then
|
|
|
+ export TRAVIS_TAG=$LATEST_MS_TAG
|
|
|
+ else
|
|
|
+ git config --local user.name "Travis CI"
|
|
|
+ git config --local user.email "builds@travis-ci.com"
|
|
|
+ git tag $LATEST_MS_TAG
|
|
|
fi
|
|
|
fi
|
|
|
|