Files
oboe/pkg/win/SConscript
Celtic Minstrel 43e057949d scons: Generate Windows installer
Also:
- scons: Fix copying wrong scenario graphics on Windows
- MSVC: Fix output filenames for release builds
2015-09-14 02:15:40 -04:00

27 lines
628 B
Python

import os.path as path
Import("env platform")
if str(platform) != "win32":
print "Error: Building for", str(platform), "but trying to create a Windows installer package"
env.Depends("data.nsi", ["gen-data.py", "#build/Blades of Exile/data"])
env.Command("data.nsi", "../Blades of Exile",
action = 'python build/pkg/gen-data.py ${SOURCE.abspath} > $TARGET'
)
env.Depends("Install-OBoE.exe", [
"#build/Blades of Exile",
"data.nsi",
"fileassoc.nsh"
])
if 'msvc' in env["TOOLS"]:
makensis = "makensis /DMSVC"
else:
makensis = "makensis"
env.Command("Install-OBoE.exe", "main.nsi", action = makensis + " /V2 $SOURCE")