From d376ffb1c5467b5ff37049bb4f3050aa3eeecf29 Mon Sep 17 00:00:00 2001
From: hiddify <114227601+hiddify-com@users.noreply.github.com>
Date: Sun, 29 Sep 2024 20:48:08 +0200
Subject: [PATCH] release: version 3.1.4
---
.github/change_version.sh | 11 +++++++----
Info.plist | 4 ++--
docker/Dockerfile | 2 +-
3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/.github/change_version.sh b/.github/change_version.sh
index 9d19de08..b0559853 100755
--- a/.github/change_version.sh
+++ b/.github/change_version.sh
@@ -1,4 +1,7 @@
#! /bin/bash
+
+SED() { [[ "$OSTYPE" == "darwin"* ]] && sed -i '' "$@" || sed -i "$@"; }
+
echo "previous version was $(git describe --tags $(git rev-list --tags --max-count=1))"
echo "WARNING: This operation will creates version tag and push to github"
read -p "Version? (provide the next x.y.z semver) : " TAG
@@ -8,13 +11,13 @@ IFS="." read -r -a VERSION_ARRAY <<< "$TAG"
VERSION_STR="${VERSION_ARRAY[0]}.${VERSION_ARRAY[1]}.${VERSION_ARRAY[2]}"
BUILD_NUMBER=$(( ${VERSION_ARRAY[0]} * 10000 + ${VERSION_ARRAY[1]} * 100 + ${VERSION_ARRAY[2]} ))
echo "version: ${VERSION_STR}+${BUILD_NUMBER}"
-sed -i -e "s|CFBundleVersion\s*[^<]*|CFBundleVersion${VERSION_STR}|" Info.plist &&\
-sed -i -e "s|CFBundleShortVersionString\s*[^<]*|CFBundleShortVersionString${VERSION_STR}|" Info.plist &&\
-sed -i "s|ENV VERSION=.*|ENV VERSION=v${TAG}|g" docker/Dockerfile
+SED -e "s|CFBundleVersion\s*[^<]*|CFBundleVersion${VERSION_STR}|" Info.plist &&\
+SED -e "s|CFBundleShortVersionString\s*[^<]*|CFBundleShortVersionString${VERSION_STR}|" Info.plist &&\
+SED "s|ENV VERSION=.*|ENV VERSION=v${TAG}|g" docker/Dockerfile
git add Info.plist docker/Dockerfile
git commit -m "release: version ${TAG}"
echo "creating git tag : v${TAG}"
git push
git tag v${TAG}
git push -u origin HEAD --tags
-echo "Github Actions will detect the new tag and release the new version."'
\ No newline at end of file
+echo "Github Actions will detect the new tag and release the new version."
\ No newline at end of file
diff --git a/Info.plist b/Info.plist
index 34332eee..df95b3ac 100644
--- a/Info.plist
+++ b/Info.plist
@@ -42,8 +42,8 @@
1.0
CFBundleIdentifier
ios.libcore.hiddify
- CFBundleShortVersionString3.1.3
- CFBundleVersion3.1.3
+ CFBundleShortVersionString3.1.4
+ CFBundleVersion3.1.4
MinimumOSVersion
15.0
diff --git a/docker/Dockerfile b/docker/Dockerfile
index d248bb0b..67df8e74 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,6 +1,6 @@
FROM alpine:latest
ENV CONFIG='https://raw.githubusercontent.com/ircfspace/warpsub/main/export/warp#WARP%20(IRCF)'
-ENV VERSION=v3.1.1
+ENV VERSION=v3.1.4
WORKDIR /hiddify
RUN apk add curl tar gzip libc6-compat # iptables ip6tables