10 lines
330 B
PowerShell
10 lines
330 B
PowerShell
$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 |