2019-04-13 01:11:27 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-05-19 05:15:47 +03:00
|
|
|
# shasum blows up in Azure, so using this
|
|
|
|
# node package which has similar syntax and identical output
|
|
|
|
if [[ "$CI_WINDOWS" == "True" ]]; then
|
|
|
|
npm i -g checksum
|
|
|
|
fi
|
|
|
|
|
2019-04-13 01:11:27 +03:00
|
|
|
sum_file () {
|
|
|
|
if [[ -f "$1" ]]; then
|
2019-05-19 05:15:47 +03:00
|
|
|
if [[ "$CI_WINDOWS" == "True" ]]; then
|
2019-05-19 09:03:46 +03:00
|
|
|
checksum -a sha256 "$1" > "$1".sha256
|
|
|
|
checksum -a sha1 "$1" > "$1".sha1
|
2019-05-19 05:15:47 +03:00
|
|
|
else
|
2019-05-19 09:03:46 +03:00
|
|
|
shasum -a 256 "$1" > "$1".sha256
|
|
|
|
shasum "$1" > "$1".sha1
|
2019-05-19 05:15:47 +03:00
|
|
|
fi
|
2019-04-13 01:11:27 +03:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
2020-09-21 00:26:06 +03:00
|
|
|
if [[ "$OS_NAME" == "osx" ]]; then
|
2019-04-13 01:11:27 +03:00
|
|
|
sum_file VSCodium-darwin-*.zip
|
2019-05-19 08:02:47 +03:00
|
|
|
sum_file VSCodium*.dmg
|
2019-05-18 05:47:03 +03:00
|
|
|
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
|
|
|
sum_file VSCodiumSetup-*.exe
|
|
|
|
sum_file VSCodiumUserSetup-*.exe
|
|
|
|
sum_file VSCodium-win32-*.zip
|
2019-04-13 01:11:27 +03:00
|
|
|
else # linux
|
2019-12-09 02:26:22 +03:00
|
|
|
cp out/*.AppImage .
|
2019-12-09 22:40:37 +03:00
|
|
|
cp vscode/.build/linux/deb/*/deb/*.deb .
|
|
|
|
cp vscode/.build/linux/rpm/*/*.rpm .
|
2019-07-05 00:03:18 +03:00
|
|
|
|
2019-07-25 19:07:08 +03:00
|
|
|
sum_file *.AppImage
|
|
|
|
sum_file VSCodium-linux*.tar.gz
|
|
|
|
sum_file *.deb
|
|
|
|
sum_file *.rpm
|
2019-04-13 01:11:27 +03:00
|
|
|
fi
|
|
|
|
fi
|