Skip to content

Commit

Permalink
Merge pull request #3 from UniToolsTeam/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Rinal authored Nov 16, 2021
2 parents 7d1183f + f7a3c02 commit 9115c8f
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 13 deletions.
7 changes: 7 additions & 0 deletions Editor/Steps/Post/AppCenter/DistributeToAppCenter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Threading.Tasks;
using UniTools.CLI;
using UniTools.IO;
Expand All @@ -22,7 +23,13 @@ public override async Task Execute(string pathToBuiltProject)
string command = $"distribute release " +
$" --app {m_appName}" +
$" --file {m_builtFilePath.ToString()}" +
#if UNITY_EDITOR_WIN
$" --group {m_group}" +
#elif UNITY_EDITOR_OSX
$" --group \"{m_group}\"" +
#else
throw new Exception($"{nameof(DistributeToAppCenter)}: {m_group} not adjusted!");
#endif
$" --token {m_apiToken}";

ToolResult result = Cli.Tool<CLI.AppCenter>().Execute(command, ProjectPath.Value);
Expand Down
Binary file added InspectorWindow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
96 changes: 96 additions & 0 deletions InspectorWindow.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# UniTools Build AppCenter
# UniTools Build AppCenter
Build steps to distribute the artifact to the AppCenter

# Features
- Using of the [AppCenter CLI](https://docs.microsoft.com/en-us/appcenter/cli/) deploy mobile builds (.ipa and .apk) to the App Center application
- Deploy mobile builds (.ipa and .apk) to the App Center application using [AppCenter CLI](https://docs.microsoft.com/en-us/appcenter/cli/)

# Dependencies
- [UniTools CLI](https://github.com/UniToolsTeam/unitools-cli)
- [UniTools IO](https://github.com/UniToolsTeam/unitools-io)
- [UniTools Build](https://github.com/UniToolsTeam/unitools-build)

# Installation
Install [AppCenter CLI](https://docs.microsoft.com/en-us/appcenter/cli/)

### Download
[Latest Releases](../../releases/latest)
Expand All @@ -27,11 +28,23 @@ Add the following to `Packages/manifest.json` where x.x.x the version (tag) chec
"com.unitools.cli": "https://github.com/UniToolsTeam/unitools-cli.git#x.x.x",
"com.unitools.io": "https://github.com/UniToolsTeam/unitools-io.git#x.x.x",
"com.unitools.build": "https://github.com/UniToolsTeam/unitools-build.git#x.x.x",
"com.unitools.appcenter": "https://github.com/UniToolsTeam/unitools-build-appcenter.git#x.x.x",
"com.unitools.build.appcenter": "https://github.com/UniToolsTeam/unitools-build-appcenter.git#x.x.x",
"...": "..."
}
}
```

# Getting Started
In progress..

To deploy the build to the App Center, follow the instructions:

1. Create a post-build step through UniTools/Build/Steps/AppCenter/Post/DistributeToAppCenter in the Create Asset menu.
![File](file.png)

2. Fill in the data in the Inspector window:
![Inspector Window](InspectorWindow.png)

Where,
- App Name - application name ```{owner-name}/{app-name}```, that you can find from an App Center URL, it's in the format ```https://appcenter.ms/users/{owner-name}/apps/{app-name}```. For more details and instructions on how to get the app name using App Center CLI go to this link https://docs.microsoft.com/en-us/appcenter/api-docs/#find-your-app-center-app-name-and-owner-name
- Group - destination group, the default value is "Collaborators"
- Api Token - app API token https://docs.microsoft.com/en-us/appcenter/api-docs/#creating-an-app-center-app-api-token
7 changes: 7 additions & 0 deletions README.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
96 changes: 96 additions & 0 deletions file.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"displayName": "UniTools.Build.AppCenter",
"name": "com.unitools.build.appcenter",
"version": "0.0.0",
"version": "0.0.1-preview",
"unity": "2019.1",
"dependencies": {
"com.unitools.cli": "0.0.0",
"com.unitools.io": "0.0.0",
"com.unitools.build": "0.0.0"
"com.unitools.cli": "0.0.1-preview",
"com.unitools.io": "0.0.1-preview",
"com.unitools.build": "0.0.1-preview"
},
"description": "Part of the Customizable Build Pipeline tool to work with AppCenter API",
"keywords": [
"unity",
"appcenter",
"build",
"unity3d",
"cli",
"CI",
"CD",
"C#"
"ci-cd",
"build-tool",
"ci-cd-pipeline",
"unity-tool"
],
"category": "Libraries",
"type": "library"
Expand Down

0 comments on commit 9115c8f

Please sign in to comment.