Update release notes on bump (#965)

Refine symlink scripts too.
This commit is contained in:
Davide 2024-11-29 00:10:22 +01:00 committed by GitHub
parent 63496725c8
commit d8f5aed665
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
20 changed files with 97 additions and 9 deletions

View File

@ -46,6 +46,7 @@ done
set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters
CMD_API=$(dirname "$0")/update-bundled-api.sh
CMD_RELEASE_NOTES=$(dirname "$0")/update-release-notes.sh
CMD_FASTLANE="bundle exec fastlane bump $OPT_VERSION $OPT_BUILD $OPT_SINCE $OPT_NO_LOG"
if [[ -n $OPT_DRY_RUN ]]; then
@ -57,6 +58,7 @@ if [[ -n $OPT_DRY_RUN ]]; then
if [[ -z $OPT_NO_API ]]; then
echo "$CMD_API"
fi
echo "$CMD_RELEASE_NOTES"
echo "$CMD_FASTLANE"
exit 0
fi
@ -64,4 +66,5 @@ fi
if [[ -z $OPT_NO_API ]]; then
eval "$CMD_API"
fi
eval "$CMD_RELEASE_NOTES"
eval "$CMD_FASTLANE"

View File

@ -1,6 +1,6 @@
#!/bin/bash
SOURCE=".api"
DESTINATION="Passepartout/Library/Sources/CommonAPI/API"
DESTINATION="Library/Sources/CommonAPI/API"
API_VERSION="v5"
rm -rf $SOURCE

9
ci/update-release-notes.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
CHANGELOG="CHANGELOG.txt"
PLATFORMS="iOS macOS tvOS"
for PLATFORM in $PLATFORMS; do
DST="fastlane/metadata/$PLATFORM/en-US/release_notes.txt"
rm -f "$DST"
cp "$CHANGELOG" "$DST"
done

View File

@ -18,7 +18,7 @@ fastlane_require "fileutils"
Dotenv.load ".env.secret"
setup_ci if ENV["CI"]
api = "Passepartout/Library/Sources/CommonAPI/API"
api = "Library/Sources/CommonAPI/API"
metadata = "fastlane/metadata"
logname = "CHANGELOG.txt"
build_path = "build"
@ -55,9 +55,12 @@ lane :bump do |options|
unless version.nil? || version.empty?
increment_version_number_in_xcodeproj(version_number: version)
end
git_add(
path: [api, metadata, logname]
)
commit_version_bump(
message: "Bump version",
include: [api, logname]
force: true
)
add_git_tag(
includes_lane: false,

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1,11 @@
* Different styles for profile menu based on context (#947)
* Add provider profile from toolbar (#946)
* Do not present server selector if ineligible (#945)
* Retain on-demand flag on save profile (#942)
* Connect on provider server selection (#941)
* Show quick profile menu rather than just edit (#940)
* Add "Refresh infrastructure" in server lists (#938)
* Perform onboarding steps on upgrade (#936)
* Add view in "About" about purchased products (#935)
* Localize WireGuard errors (#934)
* Improve provider servers responsiveness on iOS (#927)

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1 @@
../en-US/release_notes.txt

View File

@ -0,0 +1,11 @@
* Different styles for profile menu based on context (#947)
* Add provider profile from toolbar (#946)
* Do not present server selector if ineligible (#945)
* Retain on-demand flag on save profile (#942)
* Connect on provider server selection (#941)
* Show quick profile menu rather than just edit (#940)
* Add "Refresh infrastructure" in server lists (#938)
* Perform onboarding steps on upgrade (#936)
* Add view in "About" about purchased products (#935)
* Localize WireGuard errors (#934)
* Improve provider servers responsiveness on iOS (#927)

View File

@ -1,9 +1,13 @@
#!/bin/bash
# run inside macOS/tvOS
FILELIST="copyright.txt primary_category.txt primary_first_sub_category.txt primary_second_sub_category.txt review_information secondary_category.txt secondary_first_sub_category.txt secondary_second_sub_category.txt"
IOS_DIR=../iOS
DST="../iOS"
rm *.txt
rm -rf review_information
for FILENAME in $FILELIST; do
ln -s "$IOS_DIR/$FILENAME"
echo "Symlink $FILENAME to $DST/$FILENAME"
ln -sf "$DST/$FILENAME"
done

View File

@ -1,12 +1,23 @@
#!/bin/bash
# run inside macOS/tvOS for each language
LANGUAGE=$1
PLATFORM=`basename $(pwd)`
# except release_notes.txt
FILELIST="apple_tv_privacy_policy.txt description.txt keywords.txt marketing_url.txt name.txt privacy_url.txt promotional_text.txt subtitle.txt support_url.txt"
IOS_DIR=../../iOS/$LANGUAGE
FILELIST="apple_tv_privacy_policy.txt keywords.txt marketing_url.txt name.txt privacy_url.txt promotional_text.txt subtitle.txt support_url.txt"
# except description.txt on tvOS
if [[ $PLATFORM == "macOS" ]]; then
FILELIST="$FILELIST description.txt"
fi
DST="../../iOS/$LANGUAGE"
cd $LANGUAGE
rm *.txt
for FILENAME in $FILELIST; do
ln -s "$IOS_DIR/$FILENAME"
SRC_PATH="$FILENAME"
rm -f $SRC_PATH
echo "Symlink $SRC_PATH to $DST/$FILENAME"
ln -sf "$DST/$FILENAME"
done

View File

@ -0,0 +1,15 @@
#!/bin/bash
# run inside iOS/macOS/tvOS directory
for SRC in `ls -d */`; do
if [[ "$SRC" == "en-US/" ]] || [[ "$SRC" == "review_information/" ]]; then
echo "Skip $SRC"
continue
fi
DST="en-US"
echo "Symlink from $SRC to $DST"
cd $DST
ln -sf "../$SRC/release_notes.txt"
cd ..
done

View File

@ -0,0 +1,11 @@
* Different styles for profile menu based on context (#947)
* Add provider profile from toolbar (#946)
* Do not present server selector if ineligible (#945)
* Retain on-demand flag on save profile (#942)
* Connect on provider server selection (#941)
* Show quick profile menu rather than just edit (#940)
* Add "Refresh infrastructure" in server lists (#938)
* Perform onboarding steps on upgrade (#936)
* Add view in "About" about purchased products (#935)
* Localize WireGuard errors (#934)
* Improve provider servers responsiveness on iOS (#927)