Skip to content

sric0880/unity-buildscripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity-buildscripts

Unity build command tools for android, ios, windows, macOSX. Support hot-fix by generating resources list and upload to server.

OS Requirements

Mac OS is fully supported.

if you're windows user, see this: how-to-install-and-use-the-linux-bash-shell-on-windows-10

Install

sudo pip install .
# or if already installed, run this:
sudo pip install . --upgrade

Usage

unitybuild -h/--help
# for example:
unitybuild -c android-yyb --git-rev 9f08a67 --version-name 1.0.0 --version-code 2 --unity-project your_unity_project_path -b master --output ./output
  • Unity project must has autobuild folder. Detail see Dependency below.
  • Resources directory must be the same as unity project. eg.
    --root
      |--unity-project
          |--Assets
          |--autobuild
          |--...
      |--resources
    

Dependency

  • Unity
  • Xcode
  • git command tool
  • subversion command tool
  • python 2.7
  • Java env
  • Android SDK
    • zipalign
    • apksigner depends on android build tools 24.0.3 and higher.
  • Android NDK
  • unity-onesdk
  • unity-framework
    • Depends on Assets/Editor/Build.cs. Add build target scenes to Build.cs.
    • Modify autobuild/config.
    • Modify autobuild/*.yaml.
      1. resources-hotfix-server.yaml for hotfix server.
      2. resources-local.yaml for copy files from resources to package.
      3. resources-update.yaml for update files from hotfix server to external storage.
    • Add your own signature files to android and ios folders. Filenames must not be changed:
      1. android/keystore
      2. android/pwd : keystore password
      3. ios/embedded.mobileprovision
      4. ios/entitlements.plist

TODO List

  1. not fully tested.
  2. onesdk for iOS.
  3. number of multi-thread should be limited.
  4. post process

About

unity build command tools for android and ios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published