erlware / relx

Sane, simple release creation for Erlang
http://erlware.github.io/relx
Apache License 2.0
697 stars 232 forks source link

Fix for #478 Boot variable $ERTS_LIB_DIR not supplied in Windows scripts #479

Closed emtenet closed 8 years ago

emtenet commented 8 years ago

Proposed fix for #478. To test this fix, the following issues / pull requests need to be resolved first: #464 #467 #470 #471.

Add missing -boot_var argument to Windows scripts when starting erlang.

Use different boot variables on Windows vs non-Windows.

The built-in $ROOT boot variable points to the erts directory on Windows (dictated by erl.ini [erlang] Rootdir=) and so a boot variable $RELEASE_DIR is made pointing to the release directory instead of the $ERTS_LIB_DIR boot variable.

gotthardp commented 8 years ago

+1 This is an important patch. Releases made with {include_erts, false} wont start on Windows otherwise.