Skip to content

Commit

Permalink
Documentation of automation features
Browse files Browse the repository at this point in the history
  • Loading branch information
v01pe committed Sep 5, 2019
1 parent 00b3fd5 commit 1c09c1f
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 8 deletions.
1 change: 1 addition & 0 deletions 2_Icons/ReadMe.md
Expand Up @@ -25,6 +25,7 @@ Either use this icon as a base or:
4. From that iconset it will create an PlayerIcon.icns file.
5. Create a UnityPlayerIcon.png in correct size (64x64)
6. Copy both “UnityPlayerIcon.png” and “PlayerIcon.icns” to *“1_MyBuild/YOUR.APP/Contents/Resources”* and replace what unity made.
7. For automation features call `./OSX\ Icon -h`

#### Problem
On High Sierra there is no way to create an icns file that includes all 10 required sizes through icon util (Everything but 16X16@1x and 32x32@1x). The only way to do this is to run this script on an older OS. I believe I did it with Sierra. You can open .ICNS files with preview to double check. I am not sure if this is a problem though. I have read not all are necessary. But if you are obsessive on details like me there is no other way. Believe me I have tried it all. Nothing worked besides running the IconUtil on an older OS.
Expand Down
3 changes: 3 additions & 0 deletions 4_InfoPlist/ReadMe.md
Expand Up @@ -39,6 +39,9 @@ Save the Info.plist inside your package and don’t forget to create a copy sinc
## PluginsReplaceBundleId
### What it does
Takes the Info.plist you just made and finds your BundleIdentifier. Opens all bundles in the plugins folder and replaces the BundleIdentifier value with yours.

For automation features call `./PluginsReplaceBundleId -h`

### Why
Even the Unity services bundles need your BundleIdentifier, otherwise you will get errors when uploading to the Appstore.

Expand Down
14 changes: 8 additions & 6 deletions 6_SignAndPackage/ReadMe.md
Expand Up @@ -49,12 +49,14 @@ To sign your testing builds you need a personal name and id. Note that the ID is
1. When prompted type your team name
2. When prompted enter : dev, appstore, installer,zip

| INPUT | WILL CREATE PACKAGE FOR | AT |
|:--|:--|:--|
| dev | Development | 7_Distribution/VERSION/Development |
| appstore| Appstore | 7_Distribution/VERSION/Appstore/ |
| installer | Distribute outside Appstore | 7_Distribution/VERSION/Installer/ |
| zip | Distribute outside Appstore | 7_Distribution/VERSION/Zip/ |
| INPUT | WILL CREATE PACKAGE FOR | AT |
|:--|:--|:--|
| dev | Development | 7_Distribution/VERSION/Development |
| appstore| Appstore | 7_Distribution/VERSION/Appstore/ |
| installer | Distribute outside Appstore | 7_Distribution/VERSION/Installer/ |
| zip | Distribute outside Appstore | 7_Distribution/VERSION/Zip/ |

3. For automation features call `./SignAndPackage -h`

**IMPORTANT** if signing is successful and you have signed for the first time you will be prompted to add “codesign” to your keychain. **Always allow**

Expand Down
3 changes: 2 additions & 1 deletion 6_SignAndPackage/SignAndPackage
Expand Up @@ -8,7 +8,8 @@ while getopts "hft:i:s:" opt; do
echo " -h: Help"
echo " -f: Force overwrite of build if existing"
echo " -t target: Build target – one of (dev|appstore|installer|zip)"
echo " -i identity: Developer/team name and id (in quotes) e.g. 'MY COMPANY (FKJLDLKFDG)'"
echo " -i identity: Developer or team name and id (in quotes)"
echo " e.g. 'TEAM NAME (XXXXXXXXXX)' or 'YOUR NAME (XXXXXXXXXX)'"
echo " -s signmode: Codesign with --deep? One of (deep|shallow)"
echo
exit 0
Expand Down
8 changes: 8 additions & 0 deletions ReadMe.md
Expand Up @@ -92,6 +92,13 @@ Self explanatory.
### RepeatForUpdatedBuild
Script that calls all the other scripts to speed up preparing updates and creating new builds.

When you need to run the script over and over again, or you want to automate this process for future builds, call `./PluginsReplaceBundleId -h` to see automation options.
Here is an example of a fully automated process:

./RepeatForUpdatedBuild -q -t appstore -i 'TEAM NAME (XXXXXXXXXX)' -s deep

The only thing that needs to be done manually is placing the build in the right directory, and uploading the final package via Application Loader.

## PM or ask at [UNITY THREAD](https://forum.unity.com/threads/unity-appstore-distribution-workflow-guide.542735/) or to contribute
As we will not be constantly uploading games to the App Store it might be good to have other people pitching in so that there's a central point to get help that doesn't age. So anyone who wants to become a contributor just pm me on git even if it is to just add some documentation.

Expand Down Expand Up @@ -127,6 +134,7 @@ Worked on this workflow? Add yourself! Btw you can use the *"doc/CombineAllReadm
| ORGINAL WORKFLOW | UNSH | [UNSH.IO](https://unsh.io) |
|[Post](https://forum.unity.com/threads/unity-appstore-distribution-workflow-guide.542735/#post-3604213) | Atorisa | [Assets](https://assetstore.unity.com/publishers/17426) |
Corrections guide iCloud | omgitsraven |[Home](https://github.com/omgitsraven|http://andrew.fraticelli.info/)|
| Build automation | v01pe | [brokenrul.es](http://brokenrul.es)



Expand Down
5 changes: 4 additions & 1 deletion RepeatForUpdatedBuild
Expand Up @@ -8,9 +8,12 @@ while getopts "hqt:i:s:" opt; do
echo " -h: help"
echo " -q: quiet mode – skip confirmations, delete icon images clutter"
echo " -t target: Build target – one of(dev|appstore|installer|zip)"
echo " -i identity: Developer/Team name and id (in quotes) e.g. 'MY COMPANY (FKJLDLKFDG)'"
echo " -i identity: Developer or team name and id (in quotes)"
echo " e.g. 'TEAM NAME (XXXXXXXXXX)' or 'YOUR NAME (XXXXXXXXXX)'"
echo " -s signmode: Codesign with --deep? One of (deep|shallow)"
echo
echo " Example: RepeatForUpdatedBuild -q -t appstore -i 'TEAM NAME (XXXXXXXXXX)' -s deep"
echo
exit 0
;;
q)
Expand Down

0 comments on commit 1c09c1f

Please sign in to comment.