Skip to content

Commit 16708dc

Browse files
committed
Added an optional VS install to the scripts...
1 parent 4a706ec commit 16708dc

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

External/Scripts/InstallHaxeFlixel.cmd

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,24 @@ haxelib run openfl setup
8484
:: Check for errors
8585
if %errorlevel% neq 0 goto :install_error
8686

87+
goto :options_vs
88+
89+
:options_vs
90+
91+
set /p option="Also install free Visual Studio for C++ Windows applications? [y/n] "
92+
if "%option%" == "y" goto :install_vs
93+
if "%option%" == "n" goto :check_flixel
94+
echo Invalid value, try again.
95+
96+
goto :options_vs
97+
98+
:install_vs
99+
100+
lime setup windows
101+
102+
:: Check for errors
103+
if %errorlevel% neq 0 goto :install_error
104+
87105
goto :check_flixel
88106

89107
:check_flixel
@@ -117,7 +135,7 @@ exit -1
117135

118136
:install_error
119137

120-
echo Could not install required Haxelib libraries: openfl or flixel.
138+
echo Could not install the requested tools.
121139
pause
122140
exit -1
123141

External/Scripts/InstallOpenFL.cmd

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,24 @@ haxelib run openfl setup
8484
:: Check for errors
8585
if %errorlevel% neq 0 goto :install_error
8686

87+
goto :options_vs
88+
89+
:options_vs
90+
91+
set /p option="Also install free Visual Studio for C++ Windows applications? [y/n] "
92+
if "%option%" == "y" goto :install_vs
93+
if "%option%" == "n" goto :done
94+
echo Invalid value, try again.
95+
96+
goto :options_vs
97+
98+
:install_vs
99+
100+
lime setup windows
101+
102+
:: Check for errors
103+
if %errorlevel% neq 0 goto :install_error
104+
87105
goto :done
88106

89107
:haxelib_error
@@ -94,7 +112,7 @@ exit -1
94112

95113
:install_error
96114

97-
echo Could not install required Haxelib library: openfl.
115+
echo Could not install the requested tools.
98116
pause
99117
exit -1
100118

0 commit comments

Comments
 (0)