
set version=%1

runhaskell ..\BuildFromSource.hs %version%

mkdir files
mkdir files\bin
mkdir files\share
mkdir files\share\compiler
mkdir files\share\reactor

set platform=Elm-Platform\%version%

xcopy %platform%\bin\elm*.exe files\bin /s /e
xcopy %platform%\Elm\data\* files\share\compiler /s /e
xcopy %platform%\elm-reactor\assets\* files\share\reactor /s /e
xcopy updatepath.vbs files

"%ProgramFiles% (x86)\NSIS\makensis.exe" /DPLATFORM_VERSION=%version% Nsisfile.nsi

rd /s /q files


set version=%1

runhaskell ..\BuildFromSource.hs %version%

mkdir files
mkdir files\bin
mkdir files\share
mkdir files\share\compiler
mkdir files\share\reactor

set platform=Elm-Platform\%version%

xcopy %platform%\bin\elm*.exe files\bin /s /e
xcopy %platform%\Elm\data\* files\share\compiler /s /e
xcopy %platform%\elm-reactor\assets\* files\share\reactor /s /e
xcopy updatepath.vbs files

if EXIST "%ProgramFiles%" (
    set nsis=%ProgramFiles%\NSIS
) else (
    set nsis=%ProgramFiles(x86)%\NSIS
)

"%nsis%\makensis.exe" /DPLATFORM_VERSION=%version% Nsisfile.nsi

rd /s /q files

Solve the x86 vs not x86 issue for good
Solve the x86 vs not x86 issue for good
