diff --git a/art/building.bat b/art/building.bat new file mode 100644 index 00000000000..9b80f71d99e --- /dev/null +++ b/art/building.bat @@ -0,0 +1,64 @@ +@echo off +title FNF Setup - Start +echo Make sure Haxe 4.1.5 or 4.2.3 and HaxeFlixel is installed (4.2.0 is broken)! +echo Press any key to install required libraries. +pause >nul +title FNF Setup - Installing libraries +echo Installing haxelib libraries... +haxelib install lime 7.9.0 +haxelib install openfl +haxelib install flixel +haxelib run lime setup +haxelib run lime setup flixel +haxelib install flixel-tools +haxelib run flixel-tools setup +haxelib install flixel-addons +haxelib install flixel-ui +haxelib install hscript +haxelib install newgrounds +haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit.git +haxelib git hxvm-luajit https://github.com/nebulazorua/hxvm-luajit +haxelib git faxe https://github.com/uhrobots/faxe +haxelib install actuate +haxelib git extension-webm https://github.com/KadeDev/extension-webm +lime rebuild extension-webm windows +title FNF Setup - User action required +cls +haxelib run flixel-tools setup +cls +echo Make sure you have git installed. You can download it here: https://git-scm.com/downloads +echo Press any key to install polymod. +pause >nul +title FNF Setup - Installing libraries +haxelib git polymod https://github.com/larsiusprime/polymod.git +cls +echo Press any key to install discord rpc. +pause >nul +title FNF Setup - Installing libraries +haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc +cls +goto UserActions1 + +:UserActions1 +title FNF Setup - User action required +set /p menu="Would you like to install Visual Studio Community and components? (Necessary to compile/ 5.5GB) [Y/N]" + if %menu%==Y goto InstallVSCommunity + if %menu%==y goto InstallVSCommunity + if %menu%==N goto SkipVSCommunity + if %menu%==n goto SkipVSCommunity + cls + + +:SkipVSCommunity +cls +title FNF Setup - Success +echo Setup successful. Press any key to exit. +pause >nul +exit + +:InstallVSCommunity +title FNF Setup - Installing Visual Studio Community +curl -# -O https://download.visualstudio.microsoft.com/download/pr/3105fcfe-e771-41d6-9a1c-fc971e7d03a7/8eb13958dc429a6e6f7e0d6704d43a55f18d02a253608351b6bf6723ffdaf24e/vs_Community.exe +vs_Community.exe --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK.19041 -p +del vs_Community.exe +goto SkipVSCommunity diff --git a/docs/building.md b/docs/building.md index d4db8b271c6..e0732c0642e 100644 --- a/docs/building.md +++ b/docs/building.md @@ -4,7 +4,7 @@ **Also note**: you should be familiar with the commandline. If not, read this [quick guide by ninjamuffin](https://ninjamuffin99.newgrounds.com/news/post/1090480). -**Also also note**: To build for *Windows*, you need to be on *Windows*. To build for *Linux*, you need to be on *Linux*. Same goes for macOS. You can build for html5/browsers on any platform. +**Also also note**: To build for *Windows*, you need to be on *Windows* or install [this](https://github.com/KadeDev/Kade-Engine/blob/stable/art/building.bat) batch file. To build for *Linux*, you need to be on *Linux*. Same goes for macOS. You can build for html5/browsers on any platform. ## Dependencies 1. [Install Haxe 4.1.5](https://haxe.org/download/version/4.1.5/). You should use 4.1.5 instead of the latest version because the latest version has some problems with Friday Night Funkin': Kade Engine.