Update outdated scripts
This commit is contained in:
parent
025421aa08
commit
a3a245c499
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
PATTERN="Passepartout/App/iOS/fastlane/metadata/*/description.txt"
|
PATTERN="Passepartout/App/fastlane/ios/metadata/*/description.txt"
|
||||||
AFTER=$1
|
AFTER=$1
|
||||||
NAME=$2
|
NAME=$2
|
||||||
DELIMITER="†"
|
DELIMITER="†"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
SIZES="120 152 167 180 76"
|
SIZES="120 152 167 180 76"
|
||||||
|
|
||||||
cd Passepartout/App/iOS/Assets.xcassets/AppIcon.appiconset
|
cd Passepartout/App/Assets.xcassets/AppIcon.appiconset
|
||||||
for S in $SIZES; do
|
for S in $SIZES; do
|
||||||
convert -geometry "${S}x${S}" AppIcon-1024.png AppIcon-$S.png
|
convert -geometry "${S}x${S}" AppIcon-1024.png AppIcon-$S.png
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. .env.$1
|
APP_ROOT="Passepartout/App"
|
||||||
|
APP_SHARED_ROOT="Passepartout/AppShared"
|
||||||
|
|
||||||
DIST="l10n"
|
DIST="l10n"
|
||||||
DIST_APP="$DIST/App"
|
DIST_APP="$DIST/App"
|
||||||
|
@ -10,19 +11,17 @@ rm -rf $OUTPUT $DIST
|
||||||
mkdir -p $DIST_APP
|
mkdir -p $DIST_APP
|
||||||
mkdir -p $DIST_META
|
mkdir -p $DIST_META
|
||||||
|
|
||||||
if [[ $2 == "all" ]]; then
|
if [[ $1 == "all" ]]; then
|
||||||
cp Passepartout/Core/Resources/en.lproj/Core.strings $DIST_APP/Core.txt
|
cp $APP_SHARED_ROOT/en.lproj/Localizable.strings $DIST_APP/Localizable.txt
|
||||||
cp Passepartout/Core/Resources/en.lproj/Intents.strings $DIST_APP/Intents.txt
|
cp $APP_ROOT/Intents/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 $APP_ROOT/en.lproj/InfoPlist.strings $DIST_APP/InfoPlist.txt
|
||||||
|
|
||||||
cp $APP_ROOT/fastlane/metadata/en-US/name.txt $DIST_META
|
cp $APP_ROOT/fastlane/ios/metadata/en-US/name.txt $DIST_META
|
||||||
cp $APP_ROOT/fastlane/metadata/en-US/subtitle.txt $DIST_META
|
cp $APP_ROOT/fastlane/ios/metadata/en-US/subtitle.txt $DIST_META
|
||||||
cp $APP_ROOT/fastlane/metadata/en-US/description.txt $DIST_META
|
cp $APP_ROOT/fastlane/ios/metadata/en-US/description.txt $DIST_META
|
||||||
elif [[ $2 == "new" ]]; then
|
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 $APP_SHARED_ROOT/en.lproj/Localizable.strings >$DIST_APP/Localizable.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/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
|
grep -f templates/new-strings.txt $APP_ROOT/en.lproj/InfoPlist.strings >$DIST_APP/InfoPlist.txt
|
||||||
else
|
else
|
||||||
echo "No argument given (all|new)"
|
echo "No argument given (all|new)"
|
||||||
|
|
|
@ -1,21 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. .env.$1
|
DIR="Passepartout/AppShared"
|
||||||
|
FILENAME="Localizable.strings"
|
||||||
DIR_APP="$APP_ROOT"
|
|
||||||
FILENAME_APP="App.strings"
|
|
||||||
DIR_CORE="Passepartout/Core/Resources"
|
|
||||||
FILENAME_CORE="Core.strings"
|
|
||||||
|
|
||||||
if [[ $3 = "core" ]]; then
|
|
||||||
DIR=$DIR_CORE
|
|
||||||
FILENAME=$FILENAME_CORE
|
|
||||||
else
|
|
||||||
DIR=$DIR_APP
|
|
||||||
FILENAME=$FILENAME_APP
|
|
||||||
fi
|
|
||||||
|
|
||||||
LANG_BASE="en"
|
LANG_BASE="en"
|
||||||
LANG_TARGET="$2"
|
LANG_TARGET="$1"
|
||||||
STRINGS_BASE="$DIR/$LANG_BASE.lproj/$FILENAME"
|
STRINGS_BASE="$DIR/$LANG_BASE.lproj/$FILENAME"
|
||||||
STRINGS_TARGET="$DIR/$LANG_TARGET.lproj/$FILENAME"
|
STRINGS_TARGET="$DIR/$LANG_TARGET.lproj/$FILENAME"
|
||||||
IDS="string-ids.tmp"
|
IDS="string-ids.tmp"
|
||||||
|
|
Loading…
Reference in New Issue