I'm using Unity to make the software. In order to lower the memory when I burn the installer to the disc, I decided to share the AssetBundle folder which hold most of the data of the software for all platforms. The way I did it was putting the AssetBundle directory in folder for "all platforms", and then after it finishes copy the whole AssetBundle folder to "installdir", I check the platform and move the AssetBundle folder into the other folder by using <copyfile> and <deletefile>, but since my AssetBundle is too big, it takes too long to do that. Do have any suggestions for that? Can I copy the the files/folders for certain platform folder first, and then copy files/folders from "all platforms" folder after that to eliminate the moving folder step. Thank you!

Here is the diagram for the way I did:

Allplatfroms: AssetBundle

Windows: Data folder, exe file

Mac: app file

Copy all of them to a folder following platform --> Check platform --> If Windows, moves AssetBundle inside Data || If Mac, move AssetBundle to Contents folder in app.

asked 18 Aug '15, 14:27

conchimnon's gravatar image

accept rate: 0%

edited 18 Aug '15, 17:37

You can define a <folder> for the AssetBundle directory and set the <platforms> tag to "all" so it will be packed for all versions of your installer. Then create other <folder>s to pack the specific files for each platform. This way the files in AssetBundle will also be added to the uninstaller for being correctly removed, which would not be done using <copyfile>.

Find more information about packing files and folders in our official documentation: http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#folders


answered 20 Aug '15, 09:04

jesus's gravatar image

jesus ♦♦
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 18 Aug '15, 14:27

Seen: 1,403 times

Last updated: 20 Aug '15, 09:04