File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565
6666# ── Step 1: Version stamp ─────────────────────────────────────────────────────
6767echo " [1/10] Updating version stamp..."
68- Scripts/refreshVersionFile.zsh
68+ RELEASE_VERSION= " ${VERSION} " Scripts/refreshVersionFile.zsh
6969
7070# ── Step 2: Kill Xcode ────────────────────────────────────────────────────────
7171echo " [2/10] Killing Xcode..."
@@ -252,8 +252,9 @@ if gh release view "${TAG}" &>/dev/null; then
252252else
253253 echo " Creating release ${TAG} ..."
254254 gh release create " ${TAG} " " ${DMG} " \
255+ --target " master" \
255256 --title " ${TAG} — MiMiNavigator (notarized)" \
256- --notes " Notarized release. Mount DMG, drag to Applications, done. "
257+ --notes-file " Scripts/release_notes_ ${VERSION} .md "
257258fi
258259
259260echo " "
Original file line number Diff line number Diff line change @@ -24,9 +24,11 @@ TARGET_DIR="$PROJECT_DIR/GUI/Resources"
2424TARGET_FILE=" ${TARGET_DIR} /curr_version.asc"
2525PBXPROJ=" $PROJECT_DIR /MiMiNavigator.xcodeproj/project.pbxproj"
2626
27- # ✅ Получение версии из git tag (e.g. "v0.9.7" → "0.9.7")
27+ # ✅ Получение версии из RELEASE_VERSION or git tag (e.g. "v0.9.7" → "0.9.7")
2828GIT=/usr/bin/git
29- if TAG=$( $GIT -C " $PROJECT_DIR " describe --tags --abbrev=0 2> /dev/null) ; then
29+ if [[ -n " ${RELEASE_VERSION:- } " ]]; then
30+ GIT_VERSION=" ${RELEASE_VERSION# v} "
31+ elif TAG=$( $GIT -C " $PROJECT_DIR " describe --tags --abbrev=0 2> /dev/null) ; then
3032 GIT_VERSION=" ${TAG# v} "
3133else
3234 GIT_VERSION=" 0.0.0"
You can’t perform that action at this time.
0 commit comments