-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.sh
38 lines (32 loc) · 1.17 KB
/
main.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
echo "IPAFileName:$AC_APP_FILE_NAME"
echo "IPAFileUrl:$AC_APP_FILE_URL"
echo "AppleId:$AC_APPLE_ID"
echo "BundleId:$AC_BUNDLE_ID"
echo "AppleUserName:$AC_APPLE_APP_SPECIFIC_USERNAME"
echo "ApplicationSpecificPassword:$AC_APPLE_APP_SPECIFIC_PASSWORD"
echo "AppStoreConnectApiKey:$AC_API_KEY"
echo "AppStoreConnectApiKeyFileName:$AC_API_KEY_FILE_NAME"
echo "appleStoreSubmitApiType:$AC_APPLE_STORE_SUBMIT_API_TYPE"
locale
curl -o "./$AC_APP_FILE_NAME" -k "$AC_APP_FILE_URL"
bundle init
echo "gem \"fastlane\"">>Gemfile
bundle install
mkdir fastlane
touch fastlane/Appfile
touch fastlane/Fastfile
mv $AC_FASTFILE_CONFIG "fastlane/Fastfile"
mv "$AC_API_KEY" "$AC_API_KEY_FILE_NAME"
bundle exec fastlane doSubmitForReview --verbose
if [ $? -eq 0 ]
then
echo "Submit for review progress succeeded"
exit 0
else
echo "Submit for review progress failed :" >&2
exit 1
fi