basho/rebar — pull request #167 by xenolinguist (2011-12-29 20:56:08+00:00)
Title: Fixes to enable appups to work on Windows

A couple changes to lay the groundwork for hot release updates on Windows:

1) Runner script was letting erlsrv specify the default node name when it created the service. Turns out the default isn't compatible with release handling, so now we explicity set it to the node name without any suffixes.

2) generate-upgrade creates a symlink of $nodename.boot to start.boot. On older Windows (pre-Vista) this simply fails since symlinks are not supported. On newer Windows, the symlink creation works fine, but when the tarball is created the symlink gets stored as an absolute path. (This is almost certainly an upstream bug in erlang/otp.) We added a workaround on win32 to avoid creating the symlink and instead to copy start.boot to the correct name prior to re-archiving.