upload-release.pl: Handle prerelease versions

This commit is contained in:
Eelco Dolstra 2018-08-30 15:21:58 +02:00
parent 1286d86b95
commit 245d01701d
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -91,6 +91,8 @@ downloadFile("binaryTarball.aarch64-linux", "1");
downloadFile("binaryTarball.x86_64-darwin", "1");
downloadFile("installerScript", "1");
exit if $version =~ /pre/;
# Update Nixpkgs in a very hacky way.
system("cd $nixpkgsDir && git pull") == 0 or die;
my $oldName = `nix-instantiate --eval $nixpkgsDir -A nix.name`; chomp $oldName;