2019-04-12 18:11:27 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-01-12 18:44:17 -05:00
|
|
|
npm install -g checksum
|
|
|
|
|
2019-04-12 18:11:27 -04:00
|
|
|
sum_file () {
|
|
|
|
if [[ -f "$1" ]]; then
|
2021-01-12 18:44:17 -05:00
|
|
|
checksum -a sha256 "$1" > "$1".sha256
|
|
|
|
checksum "$1" > "$1".sha1
|
2019-04-12 18:11:27 -04:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
2020-09-20 17:26:06 -04:00
|
|
|
if [[ "$OS_NAME" == "osx" ]]; then
|
2019-04-12 18:11:27 -04:00
|
|
|
sum_file VSCodium-darwin-*.zip
|
2019-05-19 01:02:47 -04:00
|
|
|
sum_file VSCodium*.dmg
|
2021-01-12 15:01:29 -05:00
|
|
|
elif [[ "$OS_NAME" == "windows" ]]; then
|
2019-05-17 22:47:03 -04:00
|
|
|
sum_file VSCodiumSetup-*.exe
|
|
|
|
sum_file VSCodiumUserSetup-*.exe
|
|
|
|
sum_file VSCodium-win32-*.zip
|
2019-04-12 18:11:27 -04:00
|
|
|
else # linux
|
2021-01-13 18:39:11 -05:00
|
|
|
cp out/*.AppImage* .
|
2019-12-09 14:40:37 -05:00
|
|
|
cp vscode/.build/linux/deb/*/deb/*.deb .
|
|
|
|
cp vscode/.build/linux/rpm/*/*.rpm .
|
2019-07-04 17:03:18 -04:00
|
|
|
|
2019-07-25 12:07:08 -04:00
|
|
|
sum_file *.AppImage
|
|
|
|
sum_file VSCodium-linux*.tar.gz
|
|
|
|
sum_file *.deb
|
|
|
|
sum_file *.rpm
|
2019-04-12 18:11:27 -04:00
|
|
|
fi
|
|
|
|
fi
|