Gitako/scripts/post-version.sh
2024-07-15 01:19:25 +08:00

19 lines
383 B
Bash

#!/bin/bash
# exit on error
set -e
# get current version
version=$(node scripts/get-version.js)
# remove git tag
git tag -d v$version
# update Safari version
sed -i '' -E 's/MARKETING_VERSION = .*;/MARKETING_VERSION = $(RAW_VERSION);/' Safari/Gitako/Gitako.xcodeproj/project.pbxproj
# merge to previous git
git add .
git commit --amend --no-edit
# add git tag
git tag v$version