Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2014-08-16 15:44:55 +0400
committerKenneth Skovhede <kenneth@hexad.dk>2014-08-16 15:44:55 +0400
commit2f145582128bafce8a8bcf2feee2f77ba25f7e73 (patch)
tree7764b229ba6a79efa6b9c00be094cb1a5bcf198b
parent54fde7b6a1085d72e24ae26198d0b26535f8756d (diff)
Updated build script to auto-stash changes and auto-commit the new build-version
-rwxr-xr-xbuild-preview-update.sh6
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