summaryrefslogtreecommitdiff
path: root/deploy.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.ps1')
-rw-r--r--deploy.ps15
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy.ps1 b/deploy.ps1
index 643cc5f..e247395 100644
--- a/deploy.ps1
+++ b/deploy.ps1
@@ -1,5 +1,10 @@
# Require : Cargo (Rust), ISCC (Inno Setup)
+# Set location to script directory
+$scriptPath = $MyInvocation.MyCommand.Path
+$scriptDir = Split-Path $scriptPath -Parent
+Set-Location $scriptDir
+
# Hide .cargo and .temp directories before build
if (Test-Path .cargo) {
attrib +h .cargo