META-INF.jreleaser.templates.java-binary.chocolatey.tools.chocolateyinstall.ps1.tpl Maven / Gradle / Ivy
# {{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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy