Skip to content

Commit

Permalink
fixup #97 - embed dmd in windows installer
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Jul 22, 2014
1 parent 714fe98 commit 6112181
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions create_dmd_release/build_all.d
Expand Up @@ -297,10 +297,11 @@ void runBuild(Box box, string gitTag, bool combine)

case OS.windows:
{
immutable build_dir = buildPath("dmd."~ver~".windows-32", "dmd2");
sh = box.shell();
sh.stdin.writeln(`cd clones\installer\windows`);
sh.stdin.writeln(`&'C:\Program Files (x86)\NSIS\makensis' /DEmbedD2Dir=`~build_dir~` /DVersion2=`~ver~` d2-installer.nsi`);
sh.stdin.writeln(`&'C:\Program Files (x86)\NSIS\makensis'`~
` '/DEmbedD2Dir=C:\Users\vagrant\dmd.`~gitTag~`.windows'`~
` '/DVersion2=`~ver~`' d2-installer.nsi`);
sh.stdin.writeln(`copy dmd-`~ver~`.exe C:\Users\vagrant\dmd-`~ver~`.exe`);
sh.close();
box.scp("default:dmd-"~ver~".exe", ".");
Expand Down

0 comments on commit 6112181

Please sign in to comment.