build script
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -77,3 +77,6 @@ fabric.properties
|
|||||||
|
|
||||||
# Android studio 3.1+ serialized cache file
|
# Android studio 3.1+ serialized cache file
|
||||||
.idea/caches/build_file_checksums.ser
|
.idea/caches/build_file_checksums.ser
|
||||||
|
|
||||||
|
# cusotm
|
||||||
|
build/deploy/
|
||||||
10
build/deploy.ps1
Normal file
10
build/deploy.ps1
Normal 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
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
<sourceFolder url="file://$MODULE_DIR$/../rust-engine\examples" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/../rust-engine\examples" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/../rust-engine\tests" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/../rust-engine\tests" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/../rust-engine\benches" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/../rust-engine\benches" isTestSource="true" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/build/deploy" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
|
|||||||
Reference in New Issue
Block a user