Commit aa1478bdc711365a60056f813339c7bf4dec50dd
1 parent
15b52acd
no message
Showing
2 changed files
with
6 additions
and
3 deletions
auto_upload.py
| @@ -97,6 +97,9 @@ class AutoUpload(object): | @@ -97,6 +97,9 @@ class AutoUpload(object): | ||
| 97 | elif self.number == 2: | 97 | elif self.number == 2: |
| 98 | plist_name = 'exportTest' | 98 | plist_name = 'exportTest' |
| 99 | 99 | ||
| 100 | + elif self.number == 3: | ||
| 101 | + plist_name = 'exportAppstore' | ||
| 102 | + | ||
| 100 | export_command = 'xcodebuild -exportArchive -archivePath %s/%s/%s.xcarchive -exportPath %s/%s -exportOptionsPlist %s/%s.plist' % ( | 103 | export_command = 'xcodebuild -exportArchive -archivePath %s/%s/%s.xcarchive -exportPath %s/%s -exportOptionsPlist %s/%s.plist' % ( |
| 101 | archive_workspace_path, export_directory, project_name, archive_workspace_path, export_directory, archive_workspace_path, plist_name) | 104 | archive_workspace_path, export_directory, project_name, archive_workspace_path, export_directory, archive_workspace_path, plist_name) |
| 102 | export_command_run = subprocess.Popen(export_command, shell=True) | 105 | export_command_run = subprocess.Popen(export_command, shell=True) |
| @@ -156,9 +159,9 @@ class AutoUpload(object): | @@ -156,9 +159,9 @@ class AutoUpload(object): | ||
| 156 | process.wait() | 159 | process.wait() |
| 157 | loginReturnCode = process.returncode | 160 | loginReturnCode = process.returncode |
| 158 | if loginReturnCode != 0: | 161 | if loginReturnCode != 0: |
| 159 | - print("=======上传登录Fir失败") | 162 | + print("=======登录Fir失败") |
| 160 | else: | 163 | else: |
| 161 | - print("=======上传登录Fir成功") | 164 | + print("=======登录Fir成功") |
| 162 | start = time.time() | 165 | start = time.time() |
| 163 | publishCmd = 'fir publish %s -c %s'%(ipa_path, upload_version) | 166 | publishCmd = 'fir publish %s -c %s'%(ipa_path, upload_version) |
| 164 | process = subprocess.Popen(publishCmd, shell=True) | 167 | process = subprocess.Popen(publishCmd, shell=True) |
exportAppstore.plist
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <key>provisioningProfiles</key> | 5 | <key>provisioningProfiles</key> |
| 6 | <dict> | 6 | <dict> |
| 7 | <key>cn.gov.scio.live1</key> | 7 | <key>cn.gov.scio.live1</key> |
| 8 | - <string>SCIOLive_distribution</string> | 8 | + <string>SCIOLiveDis_AppStore</string> |
| 9 | </dict> | 9 | </dict> |
| 10 | <key>method</key> | 10 | <key>method</key> |
| 11 | <string>app-store</string> | 11 | <string>app-store</string> |