Automate strings export

This commit is contained in:
Davide De Rosa 2019-11-28 15:08:08 +01:00
parent b74c922671
commit 17cd82a387
2 changed files with 23 additions and 0 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@ dist/
templates/
.env.secret*
Preview.html
l10n

View File

@ -0,0 +1,22 @@
#!/bin/sh
DIST="l10n"
DIST_APP="$DIST/App"
DIST_META="$DIST/Meta"
OUTPUT="passepartout-translations.zip"
mkdir -p $DIST_APP
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 Passepartout-iOS/Global/en.lproj/App.strings $DIST_APP/App.txt
cp Passepartout-iOS/en.lproj/InfoPlist.strings $DIST_APP/InfoPlist.txt
mkdir -p $DIST_META
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
cp templates/iaps.txt $DIST/Products.txt
rm -f $OUTPUT
zip -r $OUTPUT $DIST
rm -rf $DIST