chore: use swiftgen from CococaPods
This commit is contained in:
parent
ed99ca0346
commit
a32cf8c18e
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
|
||||||
SRCROOT=`pwd`
|
SRCROOT=`pwd`
|
||||||
|
PODS_ROOT='Pods'
|
||||||
|
|
||||||
echo ${SRCROOT}
|
echo ${SRCROOT}
|
||||||
# task1 generate strings file
|
# task1 generate strings file
|
||||||
cd ${SRCROOT}/Localization/StringsConvertor
|
cd ${SRCROOT}/Localization/StringsConvertor
|
||||||
|
@ -12,11 +14,11 @@ cp -r ${SRCROOT}/Localization/StringsConvertor/output/ ${SRCROOT}/Mastodon/Reso
|
||||||
|
|
||||||
# task3 swiftgen
|
# task3 swiftgen
|
||||||
cd ${SRCROOT}
|
cd ${SRCROOT}
|
||||||
|
echo "${PODS_ROOT}/SwiftGen/bin/swiftgen"
|
||||||
if command -v swiftgen >/dev/null 2>&1; then
|
if [[ -f "${PODS_ROOT}/SwiftGen/bin/swiftgen" ]] then
|
||||||
swiftgen
|
"${PODS_ROOT}/SwiftGen/bin/swiftgen"
|
||||||
else
|
else
|
||||||
echo "please install swiftgen by run brew install swiftgen"
|
echo "Run 'pod install' or update your CocoaPods installation."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#task4 clean temp file
|
#task4 clean temp file
|
||||||
|
|
Loading…
Reference in New Issue