Added uploading json/js files with release info to the build process

This commit is contained in:
Kenneth Skovhede
2016-10-02 23:05:50 +02:00
parent 5bdf012ede
commit be23fcd324
2 changed files with 11 additions and 2 deletions
+6 -1
View File
@@ -367,11 +367,16 @@ process_installer "${MSI32NAME}" "msi86"
process_installer "${MSI64NAME}" "msi64"
cat >> "./tmp/latest-installers.json" <<EOF
"done": true
"version": "${VERSION}"
}
EOF
echo "duplicati_installers =" > "./tmp/latest-installers.js"
cat "./tmp/latest-installers.json" >> "./tmp/latest-installers.js"
echo ";" >> "./tmp/latest-installers.js"
aws --profile=duplicati-upload s3 cp "./tmp/latest-installers.json" "s3://updates.duplicati.com/${BUILDTYPE}/latest-installers.json"
aws --profile=duplicati-upload s3 cp "./tmp/latest-installers.js" "s3://updates.duplicati.com/${BUILDTYPE}/latest-installers.js"
if [ -d "./tmp" ]; then
rm -rf "./tmp"
+5 -1
View File
@@ -231,6 +231,7 @@ ZIP_SHA256=`shasum -a 256 ${UPDATE_TARGET}/${RELEASE_FILE_NAME}.zip | awk -F ' '
cat > "latest.json" <<EOF
{
"version": "${RELEASE_VERSION}",
"zip": "${RELEASE_FILE_NAME}.zip",
"zipsig": "${RELEASE_FILE_NAME}.zip.sig",
"zipsigasc": "${RELEASE_FILE_NAME}.zip.sig.asc",
@@ -243,9 +244,12 @@ cat > "latest.json" <<EOF
}
EOF
echo "duplicati_version_info =" > "latest.js"
cat "latest.json" >> "latest.js"
echo ";" >> "latest.js"
echo "${RELEASE_FILE_NAME}" > "latest.json"
aws --profile=duplicati-upload s3 cp "latest.json" "s3://updates.duplicati.com/${RELEASE_TYPE}/latest.json"
aws --profile=duplicati-upload s3 cp "latest.js" "s3://updates.duplicati.com/${RELEASE_TYPE}/latest.js"
echo "Propagating to other build types"
for OTHER in ${OTHER_UPLOADS}; do