Skip to content

Commit 7665092

Browse files
committed
Wine/CrossOver fixes for scripts...
1 parent 1b3dacd commit 7665092

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

External/Scripts/InstallHaxeFlixel.cmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
::
1+
@echo off
2+
23
:: Script for installing HaxeFlixel and it's dependencies.
34
:: Path refresh adapted from: https://github.com/chocolatey/chocolatey/blob/master/src/redirects/RefreshEnv.cmd
4-
::
5-
@echo off
65

7-
echo Refreshing PATH from registry...
8-
goto :refresh_path
6+
:: Skip PATH refresh on Wine/CrossOver
7+
if "%WINEPREFIX%"=="" (goto :refresh_path) else (goto :check_haxelib)
98

109
:setfromreg
1110

@@ -27,6 +26,7 @@ goto :EOF
2726

2827
:refresh_path
2928

29+
echo Refreshing PATH from registry...
3030
echo/@echo off >"%TEMP%\_env.cmd"
3131

3232
:: Slowly generating final file

External/Scripts/InstallOpenFL.cmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
::
1+
@echo off
2+
23
:: Script for installing OpenFL and it's dependencies.
34
:: Path refresh adapted from: https://github.com/chocolatey/chocolatey/blob/master/src/redirects/RefreshEnv.cmd
4-
::
5-
@echo off
65

7-
echo Refreshing PATH from registry...
8-
goto :refresh_path
6+
:: Skip PATH refresh on Wine/CrossOver
7+
if "%WINEPREFIX%"=="" (goto :refresh_path) else (goto :check_haxelib)
98

109
:setfromreg
1110

@@ -27,6 +26,7 @@ goto :EOF
2726

2827
:refresh_path
2928

29+
echo Refreshing PATH from registry...
3030
echo/@echo off >"%TEMP%\_env.cmd"
3131

3232
:: Slowly generating final file

0 commit comments

Comments
 (0)