Skip to content

Commit 0e9daf1

Browse files
committed
Remove desktop parts in the old prepare-release.sh
1 parent 9a2072c commit 0e9daf1

File tree

1 file changed

+3
-33
lines changed

1 file changed

+3
-33
lines changed

prepare-release.sh

+3-33
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,12 @@
66
set -eu
77

88
ANDROID="false"
9-
DESKTOP="false"
10-
VERSION_METADATA_ARGS=""
119

1210
for argument in "$@"; do
1311
case "$argument" in
1412
"--android")
1513
ANDROID="true"
1614
;;
17-
"--desktop")
18-
DESKTOP="true"
19-
VERSION_METADATA_ARGS+="--desktop "
20-
;;
2115
-*)
2216
echo "Unknown option \"$argument\""
2317
exit 1
@@ -34,9 +28,9 @@ if [[ -z ${PRODUCT_VERSION+x} ]]; then
3428
exit 1
3529
fi
3630

37-
if [[ "$ANDROID" != "true" && "$DESKTOP" != "true" ]]; then
38-
echo "Please specify if the release is for the desktop app and/or for Android app."
39-
echo "For example: --android --desktop"
31+
if [[ "$ANDROID" != "true" ]]; then
32+
echo "Please specify if the release is for the for the Android app."
33+
echo "For example: --android"
4034
exit 1
4135
fi
4236

@@ -45,18 +39,6 @@ if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
4539
exit 1
4640
fi
4741

48-
desktop_changes_path=desktop/packages/mullvad-vpn/changes.txt
49-
if [[ $DESKTOP == "true" && $(grep "CHANGE THIS BEFORE A RELEASE" $desktop_changes_path) != "" ]]; then
50-
echo "It looks like you did not update $desktop_changes_path"
51-
exit 1
52-
fi
53-
54-
if [[ "$DESKTOP" == "true" && $(grep "^## \\[$PRODUCT_VERSION\\] - " CHANGELOG.md) == "" ]]; then
55-
echo "It looks like you did not add $PRODUCT_VERSION to the changelog?"
56-
echo "Please make sure the changelog is up to date and correct before you proceed."
57-
exit 1
58-
fi
59-
6042
if [[ "$ANDROID" == "true" &&
6143
$PRODUCT_VERSION != *"alpha"* &&
6244
$(grep "^## \\[android/$PRODUCT_VERSION\\] - " android/CHANGELOG.md) == "" ]]; then
@@ -75,12 +57,6 @@ if [[ "$ANDROID" == "true" ]]; then
7557
dist-assets/relays/relays.json
7658
fi
7759

78-
if [[ "$DESKTOP" == "true" ]]; then
79-
echo "$PRODUCT_VERSION" > dist-assets/desktop-product-version.txt
80-
git commit -S -m "Update desktop app version to $PRODUCT_VERSION" \
81-
dist-assets/desktop-product-version.txt
82-
fi
83-
8460
if [[ "$ANDROID" == "true" ]]; then
8561
echo "$PRODUCT_VERSION" > dist-assets/android-version-name.txt
8662
ANDROID_VERSION="$PRODUCT_VERSION" cargo run -q --bin mullvad-version versionCode > \
@@ -98,12 +74,6 @@ if [[ "$ANDROID" == "true" ]]; then
9874
git tag -s "android/$PRODUCT_VERSION" -m "android/$PRODUCT_VERSION"
9975
NEW_TAGS+=" android/$PRODUCT_VERSION"
10076
fi
101-
if [[ "$DESKTOP" == "true" ]]; then
102-
echo "Tagging current git commit with release tag $PRODUCT_VERSION..."
103-
104-
git tag -s "$PRODUCT_VERSION" -m "$PRODUCT_VERSION"
105-
NEW_TAGS+=" $PRODUCT_VERSION"
106-
fi
10777

10878
echo "================================================="
10979
echo "| DONE preparing for a release! |"

0 commit comments

Comments
 (0)