2016-09-17 10:05:31 +00:00
|
|
|
"Compiling resource file"
|
|
|
|
RC /fo res\application.res res\application.rc
|
|
|
|
|
2016-09-25 22:16:30 +00:00
|
|
|
""
|
2016-09-17 10:05:31 +00:00
|
|
|
"Compiling executable"
|
|
|
|
cargo rustc --release --features "ui" -- -C link-args="/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup res\application.res"
|
|
|
|
|
2016-09-25 22:16:30 +00:00
|
|
|
""
|
2016-09-17 10:05:31 +00:00
|
|
|
"Creating output directory"
|
2016-09-25 22:22:56 +00:00
|
|
|
New-Item .\release\tmp -type directory -Force | Out-Null
|
|
|
|
Remove-Item -Recurse .\release\tmp\*
|
2016-09-17 10:05:31 +00:00
|
|
|
|
2016-09-25 22:16:30 +00:00
|
|
|
""
|
2016-09-17 10:05:31 +00:00
|
|
|
"Copying to output directory"
|
2016-09-25 22:22:56 +00:00
|
|
|
Copy-Item .\target\release\polaris.exe .\release\tmp\
|
|
|
|
Copy-Item .\res\libeay32.dll .\release\tmp\
|
|
|
|
Copy-Item .\res\libeay32md.dll .\release\tmp\
|
2016-09-26 00:13:24 +00:00
|
|
|
Copy-Item .\res\default_config.toml .\release\tmp\polaris.toml
|
2016-09-25 22:22:56 +00:00
|
|
|
Copy-Item .\web\ .\release\tmp\ -recurse
|
2016-09-26 00:13:24 +00:00
|
|
|
Copy-Item .\res\license.rtf .\release\tmp\
|
|
|
|
Copy-Item .\res\banner.bmp .\release\tmp\
|
|
|
|
Copy-Item .\res\dialog.bmp .\release\tmp\
|
2016-09-17 10:05:31 +00:00
|
|
|
|
2016-09-25 22:16:30 +00:00
|
|
|
""
|
|
|
|
"Creating installer"
|
2016-09-26 00:13:24 +00:00
|
|
|
candle -wx -arch x64 -out .\release\tmp\installer.wixobj .\res\installer.wxs
|
|
|
|
light -wx -spdb -ext WixUIExtension -out .\release\Polaris_0.1.0.msi .\release\tmp\installer.wixobj
|
2016-09-25 22:22:56 +00:00
|
|
|
|
|
|
|
"Cleaning up"
|
|
|
|
Remove-Item -Recurse .\release\tmp
|
2016-09-25 22:16:30 +00:00
|
|
|
|
|
|
|
""
|
2016-09-17 10:05:31 +00:00
|
|
|
Read-Host -Prompt "All clear! Press Enter to exit"
|