File tree Expand file tree Collapse file tree 8 files changed +703
-341
lines changed
Expand file tree Collapse file tree 8 files changed +703
-341
lines changed Original file line number Diff line number Diff line change 99
1010
1111cversion_string=$( grep -e " ^version:" pubspec.yaml | cut -d: -f2-)
12- cstr_version=` echo " ${cversion_string} " | sed -n " s/[ ]* \\ ([0-9]\\ + \\ .[0-9]\\ + \\ .[0-9]\\ + \\ )+ .*/\\ 1/p" `
12+ cstr_version=` echo " ${cversion_string} " | sed -E -n ' s/ * ([0-9]+\ .[0-9]+\ .[0-9]+) .*/\1/p' `
1313[ " $cversion_string " == " " ] && { echo " getting old version error" ; exit 1 ; }
14- cbuild_number=` echo " ${cversion_string} " | sed -n " s/.*+ \\ ([0-9]\\ + \\ )/ \\ 1/p" `
14+ cbuild_number=` echo " ${cversion_string} " | sed -E -n ' s/.*\+ ([0-9]+)$/\ 1/p' `
1515echo " Current Version Name:${cstr_version} Build Number:${cbuild_number} "
1616read -p " new Version? (provide the next x.y.z semver) : " TAG
1717echo $TAG
@@ -20,10 +20,10 @@ IFS="." read -r -a VERSION_ARRAY <<< "$TAG"
2020VERSION_STR=" ${VERSION_ARRAY[0]} .${VERSION_ARRAY[1]} .${VERSION_ARRAY[2]} "
2121BUILD_NUMBER=$(( ${VERSION_ARRAY[0]} * 10000 + ${VERSION_ARRAY[1]} * 100 + ${VERSION_ARRAY[2]} ))
2222echo " version: ${VERSION_STR} +${BUILD_NUMBER} "
23-
23+ echo " ==== $cbuild_number "
2424SED " s/^version: .*/version: ${VERSION_STR} \+${BUILD_NUMBER} /g" pubspec.yaml
2525SED " s/^msix_version: .*/msix_version: ${VERSION_ARRAY[0]} .${VERSION_ARRAY[1]} .${VERSION_ARRAY[2]} .0/g" windows/packaging/msix/make_config.yaml
26- SED " s/ CURRENT_PROJECT_VERSION = ${cbuild_number} / CURRENT_PROJECT_VERSION = ${BUILD_NUMBER} / g" ios/Runner.xcodeproj/project.pbxproj
26+ SED " s| CURRENT_PROJECT_VERSION = ${cbuild_number} | CURRENT_PROJECT_VERSION = ${BUILD_NUMBER} | g" ios/Runner.xcodeproj/project.pbxproj
2727SED " s/MARKETING_VERSION = ${cstr_version} /MARKETING_VERSION = ${VERSION_STR} /g" ios/Runner.xcodeproj/project.pbxproj
2828
2929git tag ${TAG} > /dev/null
Original file line number Diff line number Diff line change 5858 build :
5959 needs : test
6060 permissions : write-all
61+ continue-on-error : true
62+
6163 strategy :
6264 fail-fast : false
6365 matrix :
@@ -100,11 +102,11 @@ jobs:
100102 aarch : universal
101103 targets : dmg,pkg
102104
103- # - platform: ios
104- # os: macos-14
105- # aarch: universal
106- # filename: hiddify-ios
107- # targets: ipa
105+ - platform : ios
106+ os : macos-15
107+ aarch : universal
108+ filename : hiddify-ios
109+ targets : ipa
108110 runs-on : ${{ matrix.os }}
109111 steps :
110112 - name : checkout
You can’t perform that action at this time.
0 commit comments