Fix scripts with platform argument
This commit is contained in:
parent
4136aad268
commit
6c55564dee
4
.env.ios
4
.env.ios
|
@ -1,5 +1,5 @@
|
|||
PLATFORM="ios"
|
||||
GYM_SCHEME="Passepartout-iOS"
|
||||
BUNDLE_CONTEXT="ios"
|
||||
DELIVER_SCREENSHOTS_PATH="Passepartout/App/iOS/fastlane/screenshots"
|
||||
DELIVER_METADATA_PATH="Passepartout/App/iOS/fastlane/metadata"
|
||||
APP_CONTEXT="iOS"
|
||||
APP_ROOT="Passepartout/App/$APP_CONTEXT"
|
||||
|
|
4
.env.mac
4
.env.mac
|
@ -1,5 +1,5 @@
|
|||
PLATFORM="mac"
|
||||
GYM_SCHEME="Passepartout-macOS"
|
||||
BUNDLE_CONTEXT="macos"
|
||||
DELIVER_SCREENSHOTS_PATH="Passepartout/App/macOS/fastlane/screenshots"
|
||||
DELIVER_METADATA_PATH="Passepartout/App/macOS/fastlane/metadata"
|
||||
APP_CONTEXT="macOS"
|
||||
APP_ROOT="Passepartout/App/$APP_CONTEXT"
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
# For more information, check out the docs
|
||||
# https://docs.fastlane.tools/actions/deliver/
|
||||
|
||||
screenshots_path "#{ENV['APP_ROOT']}/fastlane/screenshots"
|
||||
metadata_path "#{ENV['APP_ROOT']}/fastlane/metadata"
|
||||
|
||||
skip_binary_upload true
|
||||
skip_metadata false
|
||||
skip_screenshots false
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
PATTERN="fastlane/metadata/*/description.txt"
|
||||
PATTERN="Passepartout/App/*/fastlane/metadata/*/description.txt"
|
||||
AFTER=$1
|
||||
NAME=$2
|
||||
DELIMITER="†"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
SIZES="120 152 167 180 76"
|
||||
|
||||
cd Passepartout-iOS/Assets.xcassets/AppIcon.appiconset
|
||||
cd Passepartout/App/iOS/Assets.xcassets/AppIcon.appiconset
|
||||
for S in $SIZES; do
|
||||
convert -geometry "${S}x${S}" AppIcon-1024.png AppIcon-$S.png
|
||||
done
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
. .env
|
||||
. .env.$1
|
||||
|
||||
DIST="l10n"
|
||||
DIST_APP="$DIST/App"
|
||||
|
@ -10,20 +10,20 @@ rm -rf $OUTPUT $DIST
|
|||
mkdir -p $DIST_APP
|
||||
mkdir -p $DIST_META
|
||||
|
||||
if [[ $1 == "all" ]]; then
|
||||
cp Submodules/Core/Passepartout/Resources/en.lproj/Core.strings $DIST_APP/Core.txt
|
||||
cp Submodules/Core/Passepartout/Resources/en.lproj/Intents.strings $DIST_APP/Intents.txt
|
||||
cp $PROJECT/Global/en.lproj/App.strings $DIST_APP/App.txt
|
||||
cp $PROJECT/en.lproj/InfoPlist.strings $DIST_APP/InfoPlist.txt
|
||||
if [[ $2 == "all" ]]; then
|
||||
cp Passepartout/Core/Resources/en.lproj/Core.strings $DIST_APP/Core.txt
|
||||
cp Passepartout/Core/Resources/en.lproj/Intents.strings $DIST_APP/Intents.txt
|
||||
cp $APP_ROOT/en.lproj/App.strings $DIST_APP/App.txt
|
||||
cp $APP_ROOT/en.lproj/InfoPlist.strings $DIST_APP/InfoPlist.txt
|
||||
|
||||
cp fastlane/metadata/en-US/name.txt $DIST_META
|
||||
cp fastlane/metadata/en-US/subtitle.txt $DIST_META
|
||||
cp fastlane/metadata/en-US/description.txt $DIST_META
|
||||
elif [[ $1 == "new" ]]; then
|
||||
grep -f templates/new-strings.txt Submodules/Core/Passepartout/Resources/en.lproj/Core.strings >$DIST_APP/Core.txt
|
||||
grep -f templates/new-strings.txt Submodules/Core/Passepartout/Resources/en.lproj/Intents.strings >$DIST_APP/Intents.txt
|
||||
grep -f templates/new-strings.txt $PROJECT/Global/en.lproj/App.strings >$DIST_APP/App.txt
|
||||
grep -f templates/new-strings.txt $PROJECT/en.lproj/InfoPlist.strings >$DIST_APP/InfoPlist.txt
|
||||
cp $APP_ROOT/fastlane/metadata/en-US/name.txt $DIST_META
|
||||
cp $APP_ROOT/fastlane/metadata/en-US/subtitle.txt $DIST_META
|
||||
cp $APP_ROOT/fastlane/metadata/en-US/description.txt $DIST_META
|
||||
elif [[ $2 == "new" ]]; then
|
||||
grep -f templates/new-strings.txt Passepartout/Core/Resources/en.lproj/Core.strings >$DIST_APP/Core.txt
|
||||
grep -f templates/new-strings.txt Passepartout/Core/Resources/en.lproj/Intents.strings >$DIST_APP/Intents.txt
|
||||
grep -f templates/new-strings.txt $APP_ROOT/en.lproj/App.strings >$DIST_APP/App.txt
|
||||
grep -f templates/new-strings.txt $APP_ROOT/en.lproj/InfoPlist.strings >$DIST_APP/InfoPlist.txt
|
||||
else
|
||||
echo "No argument given (all|new)"
|
||||
exit
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#!/bin/sh
|
||||
. .env
|
||||
. .env.$1
|
||||
|
||||
DIR_APP="$PROJECT/Global"
|
||||
DIR_APP="$APP_ROOT"
|
||||
FILENAME_APP="App.strings"
|
||||
DIR_CORE="Submodules/Core/Passepartout/Resources"
|
||||
DIR_CORE="Passepartout/Core/Resources"
|
||||
FILENAME_CORE="Core.strings"
|
||||
|
||||
if [[ $2 = "core" ]]; then
|
||||
if [[ $3 = "core" ]]; then
|
||||
DIR=$DIR_CORE
|
||||
FILENAME=$FILENAME_CORE
|
||||
else
|
||||
|
@ -15,7 +15,7 @@ else
|
|||
fi
|
||||
|
||||
LANG_BASE="en"
|
||||
LANG_TARGET="$1"
|
||||
LANG_TARGET="$2"
|
||||
STRINGS_BASE="$DIR/$LANG_BASE.lproj/$FILENAME"
|
||||
STRINGS_TARGET="$DIR/$LANG_TARGET.lproj/$FILENAME"
|
||||
IDS="string-ids.tmp"
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
#!/bin/sh
|
||||
git checkout Passepartout*/Info.plist
|
||||
git checkout Passepartout*.pbxproj
|
||||
git checkout *Info.plist Passepartout.xcodeproj
|
||||
|
|
Loading…
Reference in New Issue