bisq/desktop/package/macosx/replace_version_number.sh
2020-11-05 11:34:40 +01:00

24 lines
527 B
Bash
Executable File

#!/bin/bash
cd $(dirname $0)/../../../
oldVersion=1.4.2
newVersion=1.5.0
find . -type f \( -name "finalize.sh" \
-o -name "create_app.sh" \
-o -name "build.gradle" \
-o -name "release.bat" \
-o -name "package.bat" \
-o -name "release.sh" \
-o -name "package.sh" \
-o -name "version.txt" \
-o -name "Dockerfile" \
\) -exec sed -i '' s/"$oldVersion-SNAPSHOT"/$newVersion/ {} +
find . -type f \( -name "Info.plist" \
-o -name "SeedNodeMain.java" \
-o -name "Version.java" \
\) -exec sed -i '' s/$oldVersion/$newVersion/ {} +