File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed
Editor/Platforms/iOS/Post/Archive Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 11using System . Threading . Tasks ;
2- using UniTools . Build ;
32using UnityEngine ;
43
54namespace UniTools . Build
@@ -11,20 +10,21 @@ namespace UniTools.Build
1110 fileName = nameof ( Archive ) ,
1211 menuName = MenuPaths . IOS + nameof ( Archive )
1312 ) ]
14- public sealed class Archive : IosPostBuildStep
13+ public abstract class Archive : IosPostBuildStep
1514 {
1615 [ SerializeField ] private PathProperty m_projectPath = new PathProperty ( "Unity-iPhone.xcodeproj" ) ;
1716 [ SerializeField ] private PathProperty m_outputPath = new PathProperty ( "Unity-iPhone.xcarchive" ) ;
1817 [ SerializeField ] private string m_scheme = "Unity-iPhone" ;
1918 [ SerializeField ] private bool m_useModernBuildSystem = true ;
19+ protected abstract string CommandStart { get ; }
2020
2121 public override async Task Execute ( )
2222 {
2323 await Task . CompletedTask ;
2424
2525 XCodeBuild build = Cli . Tool < XCodeBuild > ( ) ;
2626 string command =
27- $ "-project { m_projectPath } " +
27+ $ "-{ CommandStart } { m_projectPath } " +
2828 $ " -scheme \" { m_scheme } \" " +
2929 " archive" +
3030 $ " -archivePath { m_outputPath } " +
Original file line number Diff line number Diff line change 1+ namespace UniTools . Build
2+ {
3+ public sealed class ArchiveProject : Archive
4+ {
5+ protected override string CommandStart => "project" ;
6+ }
7+ }
Original file line number Diff line number Diff line change 1+ namespace UniTools . Build
2+ {
3+ public sealed class ArchiveWorkspace : Archive
4+ {
5+ protected override string CommandStart => "workspace" ;
6+ }
7+ }
Original file line number Diff line number Diff line change 11{
22 "displayName" : " UniTools.Build" ,
33 "name" : " com.unitools.build" ,
4- "version" : " 0.0.7 -preview" ,
4+ "version" : " 0.0.8 -preview" ,
55 "unity" : " 2019.1" ,
66 "description" : " Customizable Build Pipeline for Unity3D" ,
77 "keywords" : [
You can’t perform that action at this time.
0 commit comments