build script

This commit is contained in:
2019-07-27 00:32:56 +02:00
parent 48418b88cb
commit dc3a3018c5
3 changed files with 14 additions and 0 deletions

10
build/deploy.ps1 Normal file
View File

@@ -0,0 +1,10 @@
$DEPLOY_DIR = "build/deploy"
cd ..
cargo build --release
if (-not (Test-Path $DEPLOY_DIR))
{
New-Item $DEPLOY_DIR -ItemType $DEPLOY_DIR
}
Copy-Item "target/release/rust-engine.exe" -Destination $DEPLOY_DIR
Copy-Item "models" -Destination $DEPLOY_DIR -Recurse -Force
Copy-Item "shaders" -Destination $DEPLOY_DIR -Recurse -Force