diff options
| -rw-r--r-- | deploy.ps1 | 5 | ||||
| -rwxr-xr-x | deploy.sh | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -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 @@ -2,6 +2,9 @@ # Require : Cargo (Rust) +# Change to the directory where the script is located +cd "$(dirname "$0")" || exit 1 + # Build if FORCE_BUILD=$(date +%s) cargo build --workspace --release; then # Export |
