File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [CmdletBinding ()]
2+ param ([switch ]$SkipMaven )
3+ $ErrorActionPreference = ' Stop'
4+ Set-Location $PSScriptRoot
5+ if (-not $SkipMaven ) { mvn - B clean package }
6+ $version = (mvn - q - DforceStdout help:evaluate ' -Dexpression=project.version' ).Trim()
7+ $jar = " target\us-house-installer-$version .jar"
8+ if (-not (Test-Path $jar )) { throw " Build did not produce $jar " }
9+ New-Item - ItemType Directory - Force - Path dist | Out-Null
10+ jpackage -- type app- image -- name US- House- Installer -- input target -- main- jar (Split-Path $jar - Leaf) -- main- class us.house.installer.USHouseInstaller -- dest dist
11+ jpackage -- type exe -- name US- House- Installer -- input target -- main- jar (Split-Path $jar - Leaf) -- main- class us.house.installer.USHouseInstaller -- dest dist
12+ Write-Host " Native Windows installer written to $PSScriptRoot \dist"
You can’t perform that action at this time.
0 commit comments