Добавил шаг патчинга infoplist файла

This commit is contained in:
rzaitov 2013-11-01 14:36:09 +04:00
parent 1ecfbe420e
commit 0c1c6b5919
2 changed files with 15 additions and 4 deletions

View File

@ -1,7 +1,14 @@
create backup for 'BuildSample'
inside 'BuildSample/BuildSample.sln' remove NotCompileApp project
inside 'BuildSample/BuildSample/CoolApp.csproj' set OutputPath to 'Output'
inside 'BuildSample/BuildSample/Info.plist' set CFBundleVersion to '1.2.3'
inside 'BuildSample/BuildSample/Info.plist' set CFBundleDisplayName to 'CoolApp'
clean 'BuildSample/BuildSample.sln' for 'Release|iPhone'
build 'BuildSample/BuildSample.sln' for 'Release|iPhone'
create dirs 'Output/Appstore/Artifacts'
sh echo hello from Rustam

View File

@ -2,9 +2,9 @@ from CommandBuilders.CleanBuildCommandBuilder import CleanBuildCommandBuilder
from CommandBuilders.CreateBackupCommandBuilder import CreateBackupCommandBuilder
from CommandBuilders.MakeDirsCommandBuilder import MakeDirsCommandBuilder
from CommandBuilders.PatchCsprojCommandBuilder import PatchCsprojCommandBuilder
from CommandBuilders.PatchInfoplistCommandBuilder import PatchInfoplistCommandBuilder
from CommandBuilders.RemoveProjectCommandBuilder import RemoveProjectCommandBuilder
from CommandBuilders.ShCommandBuilder import ShCommandBuilder
from commands.PatchCsprojCommand import PatchCsprojCommand
from commands.ValueProvider import ValueProvider
@ -18,7 +18,8 @@ class StepsRunner:
self.removeProjectBuilder = RemoveProjectCommandBuilder()
self.createBackupBuilder = CreateBackupCommandBuilder()
self.createDirs = MakeDirsCommandBuilder()
self.pathcCsproj = PatchCsprojCommandBuilder(config, self.valueProvider)
self.patchCsproj = PatchCsprojCommandBuilder(config, self.valueProvider)
self.patchInfoPlist = PatchInfoplistCommandBuilder(self.valueProvider)
buildUtilPath = config['build_tool']
self.cleanBuilder = CleanBuildCommandBuilder(buildUtilPath, 'clean')
@ -57,8 +58,11 @@ class StepsRunner:
elif self.createDirs.isMakeDirsCommand(line):
cmd = self.createDirs.getCommandFor(line)
cmd.execute()
elif self.pathcCsproj.isPatchCsproj(line):
cmd = self.pathcCsproj.getCommandFor(line)
elif self.patchCsproj.isPatchCsproj(line):
cmd = self.patchCsproj.getCommandFor(line)
cmd.execute()
elif self.patchInfoPlist.isPatchInfoPlist(line):
cmd = self.patchInfoPlist.getCommandFor(line)
cmd.execute()
else:
msg = "unrecognised step. Line: '{0}'".format(line)