Adds Powershell scripts to tools.

This commit is contained in:
Tom Hicks
2025-08-06 19:55:54 -07:00
parent 76656e471f
commit eb8bc5ab45
4 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env pwsh
# Set strict mode for better error handling
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
# Find project root (two directories above this script)
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$ProjectRoot = Split-Path -Parent (Split-Path -Parent $ScriptDir)
# Save current location and change to project root
Push-Location $ProjectRoot
try {
# Build the project using Gradle
& ".\gradlew.bat" build
} finally {
# Always restore the original location
Pop-Location
}