mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
19 lines
383 B
Bash
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
|