-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.bat
96 lines (87 loc) · 2.83 KB
/
setup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@echo off
title FNF Setup - Start
echo Make sure Haxe 4.1.5 and HaxeFlixel is installed (4.1.5 is important)!
echo Press any key to install required libraries.
pause >nul
title FNF Setup - Installing libraries
echo Installing haxelib libraries...
haxelib install lime 7.8.0
haxelib install openfl
haxelib install flixel 4.8.1
haxelib install flixel-addons
haxelib install flixel-ui
haxelib install hscript
haxelib install newgrounds
haxelib run lime setup
haxelib install flixel-tools
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 fix the transition bug? [Y/N]"
if %menu%==Y goto FixTransitionBug
if %menu%==y goto FixTransitionBug
if %menu%==N goto UserActions2
if %menu%==n goto UserActions2
cls
:UserActions2
cls
title FNF Setup - User action required
set /p menu2="Would you like to automatically make the APIStuff file? [Y/N]"
if %menu2%==Y goto APIStuffYes
if %menu2%==y goto APIStuffYes
if %menu2%==N goto APIStuffNo
if %menu2%==n goto APIStuffNo
cls
:APIStuffYes
rem Stores the APIStuff.hx contents automatically
cd source
(
echo package;
echo class APIStuff
echo {
echo public static var API:String = "";
echo public static var EncKey:String = "";
echo }
)>APIStuff.hx
cd ..
goto APIStuffNo
:APIStuffNo
cls
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
:FixTransitionBug
title FNF Setup - Installing libraries
haxelib git flixel-addons https://github.com/HaxeFlixel/flixel-addons
goto UserActions2
: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