| 
														
															@@ -2,31 +2,22 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 set -e 
														 | 
														
														 | 
														
															 set -e 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  REPOSITORY=$GITHUB_REPOSITORY 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-else 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  REPOSITORY=${TRAVIS_REPO_SLUG:-"VSCodium/vscodium"} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-fi 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+REPOSITORY=${GITHUB_REPOSITORY:-"VSCodium/vscodium"} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 GITHUB_RESPONSE=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/$REPOSITORY/releases/tags/$LATEST_MS_TAG) 
														 | 
														
														 | 
														
															 GITHUB_RESPONSE=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/$REPOSITORY/releases/tags/$LATEST_MS_TAG) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 VSCODIUM_ASSETS=$(echo $GITHUB_RESPONSE | jq '.assets') 
														 | 
														
														 | 
														
															 VSCODIUM_ASSETS=$(echo $GITHUB_RESPONSE | jq '.assets') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 # if we just don't have the github token, get out fast 
														 | 
														
														 | 
														
															 # if we just don't have the github token, get out fast 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 if [ "$GITHUB_TOKEN" != "" ]; then 
														 | 
														
														 | 
														
															 if [ "$GITHUB_TOKEN" != "" ]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   if [ "$VSCODIUM_ASSETS" != "null" ]; then 
														 | 
														
														 | 
														
															   if [ "$VSCODIUM_ASSETS" != "null" ]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    if [[ "$OS_NAME" == "osx" ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       HAVE_MAC=$(echo $VSCODIUM_ASSETS | jq --arg suffix "darwin-$LATEST_MS_TAG.zip" 'map(.name) | contains([$suffix])') 
														 | 
														
														 | 
														
															       HAVE_MAC=$(echo $VSCODIUM_ASSETS | jq --arg suffix "darwin-$LATEST_MS_TAG.zip" 'map(.name) | contains([$suffix])') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if [[ "$HAVE_MAC" != "true" ]]; then 
														 | 
														
														 | 
														
															       if [[ "$HAVE_MAC" != "true" ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         echo "Building on Mac because we have no ZIP" 
														 | 
														
														 | 
														
															         echo "Building on Mac because we have no ZIP" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         export SHOULD_BUILD="yes" 
														 | 
														
														 | 
														
															         export SHOULD_BUILD="yes" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       fi 
														 | 
														
														 | 
														
															       fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     elif [[ $BUILDARCH == "arm64" ]]; then 
														 | 
														
														 | 
														
															     elif [[ $BUILDARCH == "arm64" ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      # HAVE_ARM64_RPM=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["arm64.rpm"])') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       HAVE_ARM64_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["arm64.deb"])') 
														 | 
														
														 | 
														
															       HAVE_ARM64_DEB=$(echo $VSCODIUM_ASSETS | jq 'map(.name) | contains(["arm64.deb"])') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       HAVE_ARM64_TAR=$(echo $VSCODIUM_ASSETS | jq --arg suffix "arm64-$LATEST_MS_TAG.tar.gz" 'map(.name) | contains([$suffix])') 
														 | 
														
														 | 
														
															       HAVE_ARM64_TAR=$(echo $VSCODIUM_ASSETS | jq --arg suffix "arm64-$LATEST_MS_TAG.tar.gz" 'map(.name) | contains([$suffix])') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      # if [[ "$HAVE_ARM64_RPM" != "true" ]]; then 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      #   echo "Building on Linux arm64 because we have no RPM" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      #   export SHOULD_BUILD="yes" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      # fi 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if [[ "$HAVE_ARM64_DEB" != "true" ]]; then 
														 | 
														
														 | 
														
															       if [[ "$HAVE_ARM64_DEB" != "true" ]]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         echo "Building on Linux arm64 because we have no DEB" 
														 | 
														
														 | 
														
															         echo "Building on Linux arm64 because we have no DEB" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         export SHOULD_BUILD="yes" 
														 | 
														
														 | 
														
															         export SHOULD_BUILD="yes" 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -76,13 +67,5 @@ if [ "$GITHUB_TOKEN" != "" ]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     echo "Release assets do not exist at all, continuing build" 
														 | 
														
														 | 
														
															     echo "Release assets do not exist at all, continuing build" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     export SHOULD_BUILD="yes" 
														 | 
														
														 | 
														
															     export SHOULD_BUILD="yes" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   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 
														 | 
														
														 | 
														
															 fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |