renderdoc script

This commit is contained in:
2019-07-27 01:47:05 +02:00
parent dc3a3018c5
commit e26c64c253
5 changed files with 26 additions and 5 deletions

View File

@@ -1,10 +1,11 @@
$DEPLOY_DIR = "build/deploy"
cd ..
$DEPLOY_DIR = "build\deploy"
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 "target\release\rust-engine.exe" -Destination $DEPLOY_DIR
Copy-Item "models" -Destination $DEPLOY_DIR -Recurse -Force
Copy-Item "shaders" -Destination $DEPLOY_DIR -Recurse -Force
Copy-Item "shaders" -Destination $DEPLOY_DIR -Recurse -Force
$current_dir = Get-Location
explorer.exe "$current_dir\$DEPLOY_DIR"