2016-09-17 10:05:31 +00:00
|
|
|
"Compiling resource file"
|
|
|
|
RC /fo res\application.res res\application.rc
|
|
|
|
|
|
|
|
"Compiling executable"
|
|
|
|
cargo rustc --release --features "ui" -- -C link-args="/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup res\application.res"
|
|
|
|
|
|
|
|
"Creating output directory"
|
|
|
|
New-Item .\release\windows -type directory -Force
|
|
|
|
Remove-Item -Recurse .\release\windows\*
|
|
|
|
|
|
|
|
"Copying to output directory"
|
|
|
|
Copy-Item .\target\release\polaris.exe .\release\windows\
|
|
|
|
Copy-Item .\res\libeay32.dll .\release\windows\
|
|
|
|
Copy-Item .\res\libeay32md.dll .\release\windows\
|
2016-09-23 08:39:55 +00:00
|
|
|
Copy-Item .\res\SampleConfig.toml .\release\windows\Polaris.toml
|
2016-09-22 06:29:31 +00:00
|
|
|
Copy-Item .\Polaris.toml .\release\windows\
|
2016-09-17 10:05:31 +00:00
|
|
|
Copy-Item .\web\ .\release\windows\ -recurse
|
|
|
|
|
|
|
|
Read-Host -Prompt "All clear! Press Enter to exit"
|