2021-05-05 00:20:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd $(dirname $0)/../../../.
|
|
|
|
|
2022-07-15 16:08:37 +00:00
|
|
|
oldVersion=1.6.2
|
|
|
|
newVersion=0.0.1
|
2021-05-05 00:20:01 +00:00
|
|
|
|
|
|
|
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" \
|
|
|
|
-o -name "copy_dbs.sh" \
|
|
|
|
\) -exec sed -i '' s/$oldVersion/$newVersion/ {} +
|
|
|
|
|