META-INF.jreleaser.templates.jlink.chocolatey.tools.chocolateyinstall.ps1.tpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jreleaser-templates Show documentation
Show all versions of jreleaser-templates Show documentation
JReleaser packager templates
The newest version!
# {{jreleaserCreationStamp}}
$tools = Split-Path $MyInvocation.MyCommand.Definition
$package = Split-Path $tools
$app_home = Join-Path $package '{{distributionArtifactRootEntryName}}'
$app_exe = Join-Path $app_home 'bin/{{distributionExecutableWindows}}'
Install-ChocolateyZipPackage `
-PackageName '{{chocolateyPackageName}}' `
-Url '{{distributionUrl}}' `
-Checksum '{{distributionChecksumSha256}}' `
-ChecksumType 'sha256' `
-UnzipLocation $package
Install-BinFile -Name '{{distributionExecutableName}}' -Path $app_exe