Giter Site home page Giter Site logo

unityshelldemo's Introduction

UnityShellDemo

基于Unity3D项目,利用Shell命令进行项目自动化打包。

一、操作环境:

硬件:MacBookPro 系统 :macOS 终端

二、操作步骤:

1、编写核心Shell命令:BuildMobileApp.sh文件。 【UnityShellDemo/UnityAppBuild下】

1.1 #设置启动Unity 应用路径(UNITY_PATH):修改为本机需要应用打包的Unity启动应用路径

1.2 #应用项目路径(根路径)(PROJECT_PATH):修改设置为需要本机打包应用项目的所在位置

2、打开终端命令行。 2.1 cd 当前.sh 文件所在文件夹 // 进入当前文件夹

2.2 chmod  777  BuildMobileApp.sh    //修改文件夹权限为可读可执行

2.3 ./BuildMobileApp.sh  参数1  参数2  //执行Shell命令脚本,参数一:表示平台,ios /android;参数2:表示应用版本,1.0(此参数暂时不开放)
例如终端执行: ./BuildMobileApp.sh  ios  1.0

3、最终打的工程,Android:AndroidBuild/iOS:iOSBuild【二次工程文件】。

unityshelldemo's People

Contributors

haili1234 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.