diff --git a/.gitignore b/.gitignore index e24b57a..0144285 100644 --- a/.gitignore +++ b/.gitignore @@ -77,3 +77,6 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser + +# cusotm +build/deploy/ \ No newline at end of file diff --git a/build/deploy.ps1 b/build/deploy.ps1 new file mode 100644 index 0000000..a669fe2 --- /dev/null +++ b/build/deploy.ps1 @@ -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 \ No newline at end of file diff --git a/rust-engine.iml b/rust-engine.iml index d5ac164..8e2397f 100644 --- a/rust-engine.iml +++ b/rust-engine.iml @@ -10,6 +10,7 @@ +