Skip to content

Commit 2a7490d

Browse files
authored
Merge pull request #14 from UniToolsTeam/feature/iosBildStepsUpdate
iosBuildStepsUpdate: project+workspace steps added
2 parents 2deae55 + b16b7b3 commit 2a7490d

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

Editor/Platforms/iOS/Post/Archive/Archive.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Threading.Tasks;
2-
using UniTools.Build;
32
using UnityEngine;
43

54
namespace 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}" +
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace UniTools.Build
2+
{
3+
public sealed class ArchiveProject : Archive
4+
{
5+
protected override string CommandStart => "project";
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace UniTools.Build
2+
{
3+
public sealed class ArchiveWorkspace: Archive
4+
{
5+
protected override string CommandStart => "workspace";
6+
}
7+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": [

0 commit comments

Comments
 (0)