File tree Expand file tree Collapse file tree
PlayAssetDelivery/BundletoolScriptSample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,28 @@ $ add_packs.py \
139139 --output ~/aug.aab
140140```
141141
142+ ### Generating Asset Only Bundles
143+
144+ To generate an Android App Bundle containing only some asset packs, and no code, you should follow these steps:
145+
146+ * build each asset pack individually with ` generate_asset_pack.py ` , like above
147+ * run ` create_asset_only_bundle.sh ` to package them into a bundle
148+
149+ ```
150+ $ sh create_asset_only_bundle.sh
151+ --android-sdk=${HOME}/Android/Sdk
152+ --bundletool=/google/bin/releases/bundletool/public/bundletool-all.jar
153+ --output=output_directory/output_bundle.aab
154+ --packdir=dir/containing/my/packs/
155+ --packs=assetpack1,assetpack2
156+ --tmpdir=/tmp/my-assetonly-tmp-dir/
157+ --app-versions=10,12
158+ --version-tag=mynewassets
159+ [--ks=dir/to/keystore]
160+ [--key=your-key]
161+ [--ks_password=your-pw]
162+ ```
163+
142164## Misc
143165
144166### Python Source File for App Bundle Config Proto
@@ -154,4 +176,4 @@ protobuf-compiler` and on macOS with [Macports](https://www.macports.org/) with:
154176` $ sudo /opt/local/bin/port install protobuf3-cpp `
155177
156178Use the following command to regenerate ` config_pb2.py ` if required: `$ protoc
157- --python_out . config.proto`
179+ --python_out . config.proto`
You can’t perform that action at this time.
0 commit comments