[TIMOB-12034] CLI: Building for android with '-b' -build only flag starts the daemon & waits for the device after building the app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-19T01:21:37.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | 2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0 |
Components | Android, Tooling |
Labels | androidbuild, ay-verified, cb-verified, qe-and100112, qe-cli |
Reporter | Lokesh Choudhary |
Assignee | Chris Barber |
Created | 2012-12-12T01:07:12.000+0000 |
Updated | 2013-10-29T19:31:41.000+0000 |
This issue is also seen on Ubuntu 12.04 LTS.
I can't trace completely, but then, I avoid this problem by running
builder.py
directly. Run~/.titanium/mobilesdk/linux/3.0.0.GA/android/builder.py build PROJECT_NAME ~/android-sdk-linux ~/work/ti/myapp com.mydomain.myappid
instead ofti build -p android -b
. Where is the origin of this problem in? I have no idea.Workaround: add two lines to ~/Library/Application\ Support/Titanium/mobilesdk/osx/3.1.0.GA/android/cli/commands/_build.js.
Android build current does not honor the --build-only flag. It should produce the same identical results as without the flag. This will be fixed for 3.2.0.
I was trying to work around this, but found two different bugs. I tried using dist-playstore with --skip-js-minify, but that parameter is ignored which looks like another bug. ti build --platform android --target dist-playstore --android-sdk=$ANDROID_SDK --alias=foo --keystore=foo.keystore --output-dir=dist --password=foo --skip-js-minify But I discovered that the --build-only flag seems to 'break' the Javascript compilation/minification step when combined with the dist-playstore. ti build --platform android --target dist-playstore --build-only --android-sdk=$ANDROID_SDK --alias=foo --keystore=foo.keystore --output-dir=dist --password=foo This works as a workaround for me I think, but technically is another bug.
PR: https://github.com/appcelerator/titanium_mobile/pull/4781
Verified and working using: Mac OSX 10.9 Mavericks Ubuntu 12.04 Windows 7 CLI: 3.2.0 Using -b will result in build only and CLI will not wait for a device after building.