release.sh: Use notepad as editor if not macOS

Signed-off-by: Calcitem <calcitem@outlook.com>
This commit is contained in:
Calcitem 2021-07-18 00:55:42 +08:00
parent 2197683ae4
commit c629ec8f1b
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 7 additions and 4 deletions

View File

@ -9,9 +9,11 @@ ES_CHANGLOG_DIR=fastlane/metadata/android/es-ES/changelogs
ZH_CHANGLOG_DIR=fastlane/metadata/android/zh-CN/changelogs
SED=sed
EDITOR=notepad
if [ "$(uname)" == "Darwin" ]; then
SED=gsed
EDITOR=vi
fi
# Update Build Number
@ -93,10 +95,11 @@ echo "* Versionshinweise." >> $DE_CHANGLOG_DIR/${BUILD_NUMBER}.txt
echo "* Notas de publicación." >> $ES_CHANGLOG_DIR/${BUILD_NUMBER}.txt
echo "* 发布说明。" >> $ZH_CHANGLOG_DIR/${BUILD_NUMBER}.txt
vi $EN_CHANGLOG_DIR/${BUILD_NUMBER}.txt
vi $DE_CHANGLOG_DIR/${BUILD_NUMBER}.txt
vi $ES_CHANGLOG_DIR/${BUILD_NUMBER}.txt
vi $ZH_CHANGLOG_DIR/${BUILD_NUMBER}.txt
$EDITOR $EN_CHANGLOG_DIR/${BUILD_NUMBER}.txt
$EDITOR $DE_CHANGLOG_DIR/${BUILD_NUMBER}.txt
$EDITOR $ES_CHANGLOG_DIR/${BUILD_NUMBER}.txt
$EDITOR $ZH_CHANGLOG_DIR/${BUILD_NUMBER}.txt
# Git commit
git status -s