Choose different output when bundling with bob.jar

I use bob.jar to build my android bundle, with --output and --bundle-output and --binary-output
But I got this error:


this is my command line:

java -Dfile.encoding=UTF-8 -jar build_tools/bob.jar --output $outputdir/default --bundle-output $outputdir/armv7-android --binary-output $outputdir/armv7-android --platform armv7-android --archive -tc true --private-key ${android_pk} --certificate ${android_ce} distclean build bundle

which outputdir is “bob_build”

I think bob.jar has some state that will affect the next time of bundling

Are you doing clean when building?

I just do the distclean, not clean.What’s the difference?

Maybe docs are wrong? distclean maybe only cleans your libs (and if so might not be necessary?). clean removes the built folders completely. I guess test it.

1 Like

I realized maybe I don’t have the problem because I remove the build folder entirely when building. :slight_smile:

rm -rf build

What does your bob script look like in its entirety?

makebundle.sh.txt (1.2 KB)
This is my shell script.Place this .sh to the folder in one Defold’s project,such like this:
image
The script is in the sh folder.
I just want the bundling process has no affection to the Defold editor’s bundle process, That is, after bundling with script, the Defold editor’s build won’t trigger compile and bundle, as long as the previous successfully bundle in editor’s build.

1 Like