vscodium/sum.sh

31 lines
676 B
Bash
Raw Normal View History

#!/bin/bash
2021-01-13 02:44:17 +03:00
npm install -g checksum
sum_file () {
if [[ -f "$1" ]]; then
2021-01-13 02:44:17 +03:00
checksum -a sha256 "$1" > "$1".sha256
checksum "$1" > "$1".sha1
fi
}
if [[ "$SHOULD_BUILD" == "yes" ]]; then
if [[ "$OS_NAME" == "osx" ]]; then
sum_file VSCodium-darwin-*.zip
sum_file VSCodium*.dmg
elif [[ "$OS_NAME" == "windows" ]]; then
sum_file VSCodiumSetup-*.exe
sum_file VSCodiumUserSetup-*.exe
sum_file VSCodium-win32-*.zip
else # linux
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
fi
fi