diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2014-08-16 15:44:55 +0400 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2014-08-16 15:44:55 +0400 |
commit | 2f145582128bafce8a8bcf2feee2f77ba25f7e73 (patch) | |
tree | 7764b229ba6a79efa6b9c00be094cb1a5bcf198b | |
parent | 54fde7b6a1085d72e24ae26198d0b26535f8756d (diff) |
Updated build script to auto-stash changes and auto-commit the new build-version
-rwxr-xr-x | build-preview-update.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build-preview-update.sh b/build-preview-update.sh index 7a45986b0..1831b5155 100755 --- a/build-preview-update.sh +++ b/build-preview-update.sh @@ -9,6 +9,8 @@ RELEASE_VERSION="2.0.0.${RELEASE_INC_VERSION}" RELEASE_FILE_NAME="duplicati-${RELEASE_NAME}" +GIT_STASH_NAME="auto-build-${RELEASE_TIMESTAMP}" + UPDATE_ZIP_URLS="http://updates.duplicati.com/preview/${RELEASE_FILE_NAME}.zip;http://alt.updates.duplicati.com/preview/${RELEASE_FILE_NAME}.zip" UPDATE_MANIFEST_URLS="http://updates.duplicati.com/preview/latest.manifest;http://alt.updates.duplicati.com/preview/latest.manifest" UPDATER_KEYFILE="/Users/kenneth/Dropbox/Privat/Duplicati-updater-release.key" @@ -22,6 +24,8 @@ echo -n "Enter keyfile password: " read -s KEYFILE_PASSWORD echo +git stash save "${GIT_STASH_NAME}" + echo "${RELEASE_NAME}" > "Duplicati/License/VersionTag.txt" echo "${UPDATE_MANIFEST_URLS}" > "Duplicati/Library/AutoUpdater/AutoUpdateURL.txt" cp "Updates/release_key.txt" "Duplicati/Library/AutoUpdater/AutoUpdateSignKey.txt" @@ -73,6 +77,8 @@ cp "${UPDATE_TARGET}/latest.manifest" "${UPDATE_TARGET}/${RELEASE_FILE_NAME}.man mono BuildTools/UpdateVersionStamp/bin/Debug/UpdateVersionStamp.exe --version="2.0.0.7" +git add "Updates/build_version.txt" +git commit -m "Version bump to v${RELEASE_VERSION}-${RELEASE_NAME}" git tag "v${RELEASE_VERSION}-${RELEASE_NAME}" echo |