Skip to content

Commit fec525d

Browse files
committed
Ugh...
1 parent d8147c3 commit fec525d

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

External/Scripts/InstallFlixel.cmd

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:: Script for installing OpenFL and it's dependencies.
1+
:: Script for installing Flixel and it's dependencies.
22
@echo off
33

44
:check_haxelib
@@ -23,7 +23,7 @@ haxelib path openfl > nul
2323
if %errorlevel% neq 0 goto :install_openfl
2424

2525
echo OK
26-
goto :done
26+
goto :check_flixel
2727

2828
:install_openfl
2929

@@ -35,6 +35,29 @@ haxelib run openfl setup
3535
:: Check for errors
3636
if %errorlevel% neq 0 goto :install_error
3737

38+
goto :check_flixel
39+
40+
:check_flixel
41+
42+
echo Checking Flixel...
43+
44+
haxelib path flixel > nul
45+
46+
:: Check for errors
47+
if %errorlevel% neq 0 goto :install_flixel
48+
49+
echo OK
50+
goto :done
51+
52+
:install_flixel
53+
54+
echo Installing Flixel...
55+
56+
haxelib install flixel
57+
58+
:: Check for errors
59+
if %errorlevel% neq 0 goto :install_error
60+
3861
goto :done
3962

4063
:haxelib_error
@@ -45,12 +68,12 @@ exit -1
4568

4669
:install_error
4770

48-
echo Could not install required Haxelib library: openfl.
71+
echo Could not install required Haxelib libraries: openfl or flixel.
4972
pause
5073
exit -1
5174

5275
:done
5376

54-
echo OpenFL + Flixel installed successfully.
77+
echo OpenFL installed successfully.
5578
pause
5679
exit 0

External/Scripts/InstallOpenFL.cmd

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:: Script for installing Flixel and it's dependencies.
1+
:: Script for installing OpenFL and it's dependencies.
22
@echo off
33

44
:check_haxelib
@@ -23,7 +23,7 @@ haxelib path openfl > nul
2323
if %errorlevel% neq 0 goto :install_openfl
2424

2525
echo OK
26-
goto :check_flixel
26+
goto :done
2727

2828
:install_openfl
2929

@@ -35,29 +35,6 @@ haxelib run openfl setup
3535
:: Check for errors
3636
if %errorlevel% neq 0 goto :install_error
3737

38-
goto :check_flixel
39-
40-
:check_flixel
41-
42-
echo Checking Flixel...
43-
44-
haxelib path flixel > nul
45-
46-
:: Check for errors
47-
if %errorlevel% neq 0 goto :install_flixel
48-
49-
echo OK
50-
goto :done
51-
52-
:install_flixel
53-
54-
echo Installing Flixel...
55-
56-
haxelib install flixel
57-
58-
:: Check for errors
59-
if %errorlevel% neq 0 goto :install_error
60-
6138
goto :done
6239

6340
:haxelib_error
@@ -68,12 +45,12 @@ exit -1
6845

6946
:install_error
7047

71-
echo Could not install required Haxelib libraries: openfl or flixel.
48+
echo Could not install required Haxelib library: openfl.
7249
pause
7350
exit -1
7451

7552
:done
7653

77-
echo OpenFL installed successfully.
54+
echo OpenFL + Flixel installed successfully.
7855
pause
7956
exit 0

0 commit comments

Comments
 (0)