Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Command line build documentation (macOS)
Started by bvalbo Sep 17 2018 04:24 AM

4 replies to this topic
command line build

Best Answer Bektur , 30 October 2018 - 02:21 AM

for iOS it will look like this:

{
    platform='ios',
    appName='name',
    appVersion='1.1.1',
    certificatePath = '/path/to/provisioning/profile',
    dstPath='/destination/path',
    projectPath='/path/to/source'
}

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bvalbo

[GLOBAL: userInfoPane.html]
bvalbo
  • Observer

  • 5 posts
  • Corona SDK

Hi,

 

Does anyone know if there exists some documentation on how to do command line builds? We'd love to set up some scripts to automate our build processes a bit..

 

I found the following two threads, but I'm sure there must be some more information on this topic!?

- https://forums.coronalabs.com/topic/72129-command-line-build/

- https://forums.coronalabs.com/topic/61405-scripting-build/

 

Best,

Bjørnar



[TOPIC: post.html]
#2

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 549 posts
  • Corona Staff

There's no formal documentation. Tool is called CoronaBuilder, you can use it to make builds, passing build parameters in a lua file. 

 

builder=~/Library/Application\ Support/Corona/Native/Corona/mac/bin/CoronaBuilder.app/Contents/MacOS/CoronaBuilder
${builder} build --lua build.lua 

 


[TOPIC: post.html]
#3

Yoger Games

[GLOBAL: userInfoPane.html]
Yoger Games
  • Enthusiast

  • 99 posts
  • Corona SDK

I've a script that builds my apps using the CoronaBuilder. It only works using a config file. I run my script on Mac and have used it to build for Android (both GP and Amazon) so far. I expect it to work for Apple as well. 

 

The config file:

{
	"androidAppPackage": "com.xxx",
	"appName": "name",
	"androidVersionCode": 1,
	"appVersion": "1.1.1",
	"certificatePath": "/path/to/keystore",
	"keystorePassword": "password",
	"keystoreAlias": "alias",
	"keystoreAliasPassword": "aliasPassword",
	"dstPath": "/destination/path",
	"projectPath": "/path/to/source",
	"platform": "Android",
	"androidStore": "google"
}

I run it like 

/Applications/Corona/Native/Corona/mac/bin/CoronaBuilder.app/Contents/MacOS/CoronaBuilder /path/to/config.json


[TOPIC: post.html]
#4

Bektur

[GLOBAL: userInfoPane.html]
Bektur
  • Contributor

  • 146 posts
  • Corona Staff

  Best Answer

for iOS it will look like this:

{
    platform='ios',
    appName='name',
    appVersion='1.1.1',
    certificatePath = '/path/to/provisioning/profile',
    dstPath='/destination/path',
    projectPath='/path/to/source'
}


[TOPIC: post.html]
#5

bvalbo

[GLOBAL: userInfoPane.html]
bvalbo
  • Observer

  • 5 posts
  • Corona SDK

Thanks, guys, for support both here and on email.

 

Below some params.lua examples I suppose can be of interest to people. Build using following command (on Mac, at least):

~/Library/Application\ Support/Corona/Native/Corona/mac/bin/CoronaBuilder.app/Contents/MacOS/CoronaBuilder build /path/to/params.lua

Thanks to Bektur for providing the information and the params files in the first place!

 

 

Android:

local params =
{
    platform='android',
    appName='appName',
    appVersion='1.1.2',
    certificatePath = 'path_to_keystore',
    keystorePassword = '*****',
    keystoreAlias = 'alias',
    keystoreAliasPassword = '******',
    androidVersionCode = '3',
    dstPath='/path/to/destination/folder',
    projectPath='/path/to/project/folder',
    androidAppPackage='com.example.myapp',
    androidStore = 'none'
}

return params

HTML:

local params =
{
    platform='html5',
    appName='My app',
    appVersion='3.2.1',
    dstPath='/path/to/destination/folder',
    projectPath='/path/to/project/folder',
    includeStandardResources = 'true',
}

return params

iOS:

local params =
{
    platform='ios',
    appName='My App',
    appVersion='1.1.1',
    certificatePath = '/path/to/certificate/myapp.mobileprovision',
    dstPath='/path/to/destination/folder',
    projectPath='/path/to/project/folder',
}

return params

Mac:

local params =
{
    platform='macos',
    appName='My App',
    appVersion='3.2.1',
    certificatePath = '/path/to/certificate/myapp.mobileprovision',
    dstPath='/path/to/destination/folder',
    projectPath='path/to/project/folder',
}

return params



[topic_controls]
[/topic_controls]