Skip to content

Commit 5a19c78

Browse files
committed
Adding demo scripts...
1 parent 3c596f1 commit 5a19c78

File tree

2 files changed

+135
-0
lines changed

2 files changed

+135
-0
lines changed

External/Scripts/InstallFlixel.cmd

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
:: Script for installing OpenFL and it's dependencies.
2+
@echo off
3+
4+
:check_haxelib
5+
6+
echo Checking Haxelib...
7+
8+
haxelib help > nul
9+
10+
:: Check for errors
11+
if %errorlevel% neq 0 goto :haxelib_error
12+
13+
echo OK
14+
goto :check_openfl
15+
16+
:check_openfl
17+
18+
echo Checking OpenFL...
19+
20+
haxelib path openfl > nul
21+
22+
:: Check for errors
23+
if %errorlevel% neq 0 goto :install_openfl
24+
25+
echo OK
26+
goto :done
27+
28+
:install_openfl
29+
30+
echo Installing OpenFL...
31+
32+
haxelib install openfl
33+
haxelib run openfl setup
34+
35+
:: Check for errors
36+
if %errorlevel% neq 0 goto :install_error
37+
38+
goto :done
39+
40+
:haxelib_error
41+
42+
echo Haxe is not installed. Please install Haxe first or if it's installed, restart Windows before continuing.
43+
pause
44+
exit -1
45+
46+
:install_error
47+
48+
echo Could not install required Haxelib library: openfl.
49+
pause
50+
exit -1
51+
52+
:done
53+
54+
echo OpenFL + Flixel installed successfully.
55+
pause
56+
exit 0

External/Scripts/InstallOpenFL.cmd

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
:: Script for installing Flixel and it's dependencies.
2+
@echo off
3+
4+
:check_haxelib
5+
6+
echo Checking Haxelib...
7+
8+
haxelib help > nul
9+
10+
:: Check for errors
11+
if %errorlevel% neq 0 goto :haxelib_error
12+
13+
echo OK
14+
goto :check_openfl
15+
16+
:check_openfl
17+
18+
echo Checking OpenFL...
19+
20+
haxelib path openfl > nul
21+
22+
:: Check for errors
23+
if %errorlevel% neq 0 goto :install_openfl
24+
25+
echo OK
26+
goto :check_flixel
27+
28+
:install_openfl
29+
30+
echo Installing OpenFL...
31+
32+
haxelib install openfl
33+
haxelib run openfl setup
34+
35+
:: Check for errors
36+
if %errorlevel% neq 0 goto :install_error
37+
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+
61+
goto :done
62+
63+
:haxelib_error
64+
65+
echo Haxe is not installed. Please install Haxe first or if it's installed, restart Windows before continuing.
66+
pause
67+
exit -1
68+
69+
:install_error
70+
71+
echo Could not install required Haxelib libraries: openfl or flixel.
72+
pause
73+
exit -1
74+
75+
:done
76+
77+
echo OpenFL installed successfully.
78+
pause
79+
exit 0

0 commit comments

Comments
 (0)