How Can I Package a Unity3D 5 Windows Application into a single exe file?

前端 未结 1 1697
挽巷
挽巷 2021-01-23 22:38

I am new to Unity3d development. I have created two versions of a 3D puzzle app, one for Mac and the other for Windows. Mac applications are created with the package contents co

相关标签:
1条回答
  • 2021-01-23 23:01

    Packing a Unity3D application is not not possible without 3rd party software.

    a bit more recent url (2014) suggests using smart packer, this however is a tool I personally never used before.

    I tend to use inno setup as it seems a bit more professional, it eases up moving files, creating links (short-cuts) and uninstalling quite a bit as well. Simply said, this allows you to extract the exe and _data folder to the same folder, and create a shortcut to the exe.

    Follow up on edit

    I installed Inno Setup and attempted to create a script for my application. It copied the exe file but created an empty data folder instead of copying the data folder I need to run the exe file. I checked to make sure that the folder name was correct in the script.

    After selecting the main exe file during the application files part of the setup wizard, you can add a folder. Here you can select yourgame_data folder to be included in the installer. This however does require an additional step. After adding the folder, you need to set the destination subfolder to yourgame_data for it to be able to properly create the subdirectories. You can refer to this picture guide for more information. I included the relevant step(s) below.

    0 讨论(0)
提交回复
热议问题