ms-windows.cmd 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @echo off
  2. rem Oh hey there. Coburn here.
  3. rem You might be thinking what's this file gotta
  4. rem do with ENet? Well, let's just say I've got
  5. rem the shits with the fucking GitHub actions
  6. rem system. Syntax error without any fucking additional
  7. rem information. No "expecting ..." or "... not allowed here",
  8. rem just fucking syntax error, lol. And there's no Github-flavoured
  9. rem YAML parsers online, so yeah. Poor 'ol me can't figure it out.
  10. rem
  11. rem Anyway, that ends here. What this script does is mainly runs
  12. rem the build process as part of the CI pipeline. Hopefully that
  13. rem means I can just use this script to run the Microsoft Windows
  14. rem builds, because I've had the shits as mentioned above trying to
  15. rem use YAML files. YAML can GTFO until further notice.
  16. set _OutputFolder=%1
  17. PATH=C:\Program Files\7-Zip;%PATH%
  18. rem Make release and debug folders.
  19. mkdir %_OutputFolder%\ReleaseOut
  20. mkdir %_OutputFolder%\DebugOut
  21. echo Preparing Debug Build
  22. dotnet clean
  23. dotnet build
  24. echo Stashing...
  25. copy Unity\Plugins\x86_64\enet.dll %_OutputFolder%\DebugOut
  26. echo Preparing Release Build
  27. dotnet clean
  28. dotnet build -c Release
  29. echo Stashing...
  30. copy Unity\Plugins\x86_64\enet.dll %_OutputFolder%\ReleaseOut
  31. echo Compressing...
  32. cd %_OutputFolder%\ReleaseOut
  33. 7z a %_OutputFolder%\DebugOut\Debug.zip %_OutputFolder%\DebugOut\enet.dll
  34. 7z a %_OutputFolder%\ReleaseOut\Release.zip %_OutputFolder%\ReleaseOut\enet.dll
  35. echo BUILD SCRIPT EXITING