From 747fed7d971b8497a529d1ec31816a962c297b8b Mon Sep 17 00:00:00 2001 From: Rustam Zaitov Date: Thu, 3 Oct 2013 00:41:20 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=BE=D0=B4=D0=B8=D1=84=D0=B8=D1=86?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BB=20=D1=84=D0=BE=D1=80=D0=BC?= =?UTF-8?q?=D0=B0=D1=82=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/settings.py | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/scripts/settings.py b/scripts/settings.py index ed76719..a21ccef 100644 --- a/scripts/settings.py +++ b/scripts/settings.py @@ -4,27 +4,51 @@ import patch build_root = { 'mdtool': '/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool', 'version': '0.0.0', - 'action': 'build', # 'build'|'setup' + 'action': 'build', # 'build'|'setup'|'reset' 'parent': None } ios_root = { + # relative to script ??? 'sln_path' : '/Users/rzaitov/Documents/Apps/BuildScript/BuildSample/BuildSample.sln', + # test flight command section + 'tf_publish': True, 'tf_api_token': '0e6925075d4fc10fed0e7bbf43fa6894_NjQ0OTI2MjAxMi0wOS0yNSAxMTo0MDozNi40OTY5MjU', 'tf_team_token': 'c5c3cf7a6dae2bea4382dfbd181a2075_Mjc4ODkwMjAxMy0wOS0yOSAxNDowOTo1OC40Mzg5MTY', 'ft_notes': 'This build was uploaded via the upload API', + # end section 'parent' : build_root } ios_development_root = { + # backup command 'files_for_backup': ['BuildSample.sln', 'BuildSample/CoolApp.csproj', 'BuildSample/Info.plist'], - 'projects_to_exclude': ['NotCompileApp'], - 'info_plist_rel_path': 'BuildSample/Info.plist', - #'post_build_file': 'post_build.py', - #'post_build_actions' : ['PrintToConsole', 'PublishToTestFlight'], + # remove_projects + 'projects_to_exclude': ['NotCompileApp'], + + # patch_info_plist + 'info_plist_rel_path': 'BuildSample/Info.plist', + 'info_plist_CFBundleVersion': '@version', # set CFBundleVersion + 'info_plist_CFBundleDisplayName': '@app_name', # set CFBundleDisplayName + + 'build_steps':[ + # before build + 'std_cmd.py backup', + 'std_cmd.py remove_projects', + 'std_cmd.py copy_provisioning', + 'std_cmd.py patch_info_plist', + + # build + 'std_cmd.py clean', + 'std_cmd.py build' + + # after build + 'std_cmd.py copy_artifacts' + 'std_cmd.py testflight', + ], 'patch': patch.PathcIos, 'parent': ios_root @@ -33,6 +57,9 @@ ios_development_root = { ios_development_production = { 'name': 'ios_development_production', + # patch_info_plist + 'app_name': 'CoolApp', + 'sln_config': 'Release|iPhone', 'codesign_key': 'iPhone Developer: Рустам Заитов (CTL85FZX6K)', 'codesign_provision': '8F606DAE-F9C9-4A19-8EFF-34B990D76C28', @@ -43,6 +70,10 @@ ios_development_production = { ios_development_staging = { 'name': 'ios_development_staging', + # patch_info_plist + 'app_name': 'CoolApp staging', + + 'sln_config': 'Debug|iPhone', 'codesign_key': 'iPhone Developer', 'codesign_provision': 'F82B1481-F3D0-4CB5-AA6E-8B8D8E3A9DC1',