BuildStripper icon indicating copy to clipboard operation
BuildStripper copied to clipboard

Build Stripper gets the build pipeline to totally ignore select folders, and reverts back after.

Website Stephen Allen Games

Donate

BuildStripper

Build Stripper gets the build pipeline to totally ignore select folders, and reverts back after.


Version 1.1 Credits:
JesusLuvsYooh StephenAllenGames.co.uk
#WaterCooler gang for letting me Rubber Duck to them.

1: This file must be in an "Editor" folder (Unity/Assets/Editor) for example.

2: Edit the "folderPaths" list, making sure it only includes items that server build does not need, such as Audio and Textures.

3: If "Server Build" is ticked in Unitys build window, automatically strip folders listed during build process.

This script should drastically lower your build size, and optimise your game;
Build size differences in an example project:
Regular server build: 1 GB
An un-named Asset store plugin: 200 MB
This BuildStripper: 60mb

Image preview of build process.
BuildStripperImage1

A: Optional Unity Menu buttons, for manually calling, just un-comment them in the script.
B: Be smart with which folders you list, ones like Scenes or Scripts etc will of course stop server/game from working. ;)
C: Set autoDetectServerBuild to false to disable auto "Server Build" detection.
D: Please be aware this is version 1, an Alpha/Beta, code needs to be optimised and tidied up.

Enjoy! ^_^