Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

Script to Zip files on Build?

$
0
0
I am trying to see if there is a way to get builds to automatically zip when you select build. I have looked at the following pages but cant make heads or tails of what to do. https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.zipfile.createfromdirectory?redirectedfrom=MSDN&view=netframework-4.8#System_IO_Compression_ZipFile_CreateFromDirectory_System_String_System_String_ https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.gzipstream?redirectedfrom=MSDN&view=netframework-4.8 https://docs.unity3d.com/Manual/BuildPlayerPipeline.html and https://gist.github.com/radiatoryang/b65e9c4807a64987aba2 I have looked over the scripts and tried to understand them but feel crippled with a lack of understanding. I just want to go to build settings select my scene and platform (PC,MAC & Linux Standalone targeting windows x86_64) and select build with the script then handling the compression to zip everything into a file I can unzip later as needed. As a bonus it would be great to change the .zip to some .custom file type but that's less important. something like CompressDirectory( buildPath, path + "/" + filename + ".custom" );

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>