mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-21 03:50:28 +00:00
5b2e7b37af
This uses agvtool to update the CURRENT_PROJECT_VERSION and DYLIB_CURRENT_VERSION project variables. The Info.plist files have been updated to propagate this value.
21 lines
443 B
Bash
Executable File
21 lines
443 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
VERSION="$1"
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# Check that the version looks semver compliant.
|
|
if [[ ! $VERSION =~ ^[0-9].[0-9]{1,2}.[0-9]{1,2}$ ]]; then
|
|
echo "Invalid version number: $VERSION" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Update the version in package.json
|
|
npm --no-git-tag-version version "$VERSION"
|
|
|
|
# Update CURRENT_PROJECT_VERSION and DYLIB_CURRENT_VERSION in the Xcode project.
|
|
xcrun agvtool new-version "$VERSION"
|