This script just simplifies the first part of that process. Just copy the code into a text file, change the extension to .bat, and run it in your mod's folder. Note it assumes your mod's folder is inside spring's "mods" folder. Also note it removes any sd7 and 7z files in your mod's directory, which gets rid of temporary files and anything that might get in the way.
Code: Select all
DEL *.sd7
DEL *.7z
for %%* in (.) do set MyDir=%%~n*
"C:\Program Files\7-Zip\7z.exe" a %MyDir%.7z -ssw -slp -r -mx1 *
REN .\*.7z *.sd7
move .\*.sd7 ..\
@echo off
echo.
echo This script is for quickly building sd7 files to your mod directory. It uses low compression and is therefore unsuitable for building release files.
echo.
pause