diff --git a/assets/shell/bump-version.sh b/assets/shell/bump-version.sh index c4429ca..b5f086a 100755 --- a/assets/shell/bump-version.sh +++ b/assets/shell/bump-version.sh @@ -36,26 +36,11 @@ main() { exit 1; fi; done; - rc sed -i"" '/version="/s/\(version=\)"'"${_version_old}"'"/\1"'"${_version_new}"'"/' \ - MiRCART-cordoba/config.xml; - rc sed -i"" '/"version":/s/\("version":\s*\)"'"${_version_old}"'"/\1"'"${_version_new}"'"/' \ - MiRCART-cordoba/package.json \ - MiRCART-cordoba/package-lock.json; - rc sed -i"" '/android:versionCode="/s/\(android:versionCode=\)"[0-9]\+"/\1"'"${_version_new_code}"'"/' \ - MiRCART-cordoba/platforms/android/app/src/main/AndroidManifest.xml; - rc sed -i"" '/android:versionName="/s/\(android:versionName=\)"'"${_version_old}"'"/\1"'"${_version_new}"'"/' \ - MiRCART-cordoba/platforms/android/app/src/main/AndroidManifest.xml; - rc sed -i"" '/version="/s/\(version=\)"'"${_version_old}"'"/\1"'"${_version_new}"'"/' \ - MiRCART-cordoba/platforms/android/app/src/main/res/xml/config.xml; rc sed -i"" '/"version":/s/\("version":\s*\)"'"${_version_old}"'"/\1"'"${_version_new}"'"/' \ MiRCART-nw/package.json \ MiRCART-nw/package-lock.json; rc sed -i"" '/[^<]\+ v/s/\(<title>[^<]\+ v\)'"${_version_old}"'\(.*<\)/\1'"${_version_new}"'\2/' \ index.html assets/html/help.html; - rc rsync -aiLPv --delete \ - MiRCART-cordoba/www/ \ - MiRCART-cordoba/platforms/android/app/src/main/assets/www/; - rc git add MiRCART-cordoba/platforms/android/app/src/main/assets/www; rc git commit -avm "Bump to v${_version_new}."; };