Improve the script for creating download links

— factorize the two scripts into a single one
— various safety and style improvements
1 job for master in 11 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
failed #5747
build

00:00:11

 
Name Stage Failure
failed
build Build
HTTP request sent, awaiting response... 200 OK
Length: 847 [application/json]
Saving to: ‘windows-zip.json’

0K 100% 8.02M=0s

2019-09-04 13:04:06 (8.02 MB/s) - ‘windows-zip.json’ saved [847/847]

ERROR: Job failed: exit status 1