Ignore certain files depending on build target?

Hi,

We’re deploying a game to multiple platforms, and using AssetBundles. We have an AssetBundle built for each platform we need, and we’ve put it in StreamingAssets. We’re using a script wrapper to load the correct one depending on the platform.

How can we stop every single AssetBundle (irrespective of the platform) from being added into every build?
Currently each build has +100MB of AssetBundles it does not need and cannot use.

I’ve found something here that uses AssetDatabase.MoveAsset but it seems like opening a can of worms.

Does anyone know how to do this in a clean, safe way?
I guess we have to write some shell scripts?

I have the exact same problem. Did you find a solution in the mean time? It’s unbelievable, that there seems to be no builtin solution. It is such a basic feature for a multiplatform development environment.

I need this too! Any solution?