mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-03 07:11:21 +00:00
Like GEM_HOME, GEM_PATH needs to be reset to use the puppet-bolt gems. TODO (can we have multiple pre_install keys?) We also should create a $dir\\gem.bat file that resets GEM_HOME and GEM_PATH
33 lines
1.2 KiB
JSON
33 lines
1.2 KiB
JSON
{
|
|
"version": "2.37.0",
|
|
"description": "Orchestration and agentless IT automation",
|
|
"homepage": "https://puppet.com/open-source/bolt",
|
|
"license": "Apache-2.0",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://downloads.puppetlabs.com/windows/puppet6/puppet-bolt-2.37.0-x64.msi",
|
|
"hash": "a6ab909c35f8d1cf36642569a9b58da76ee736ac9195e576365a96a0ed22a7cc"
|
|
}
|
|
},
|
|
"extract_dir": "Puppet Labs\\Bolt",
|
|
"pre_install": "Set-Content \"$dir\\bolt.bat\" '@ECHO OFF', 'SETLOCAL', 'SET GEM_HOME=','SET GEM_PATH=', '%~dp0bin\\bolt.bat %*' -Encoding Ascii",
|
|
"post_install": [
|
|
"if (Test-Path \"$dir\\share\\install-tarballs\\ruby*.tgz\") {",
|
|
" info 'Extract tarball of gems...'",
|
|
" Expand-7zipArchive \"$dir\\share\\install-tarballs\\ruby*.tgz\" \"$dir\" -Removal",
|
|
"}"
|
|
],
|
|
"bin": "bolt.bat",
|
|
"checkver": {
|
|
"url": "https://downloads.puppetlabs.com/windows/puppet6/index_by_lastModified_reverse.html",
|
|
"regex": "puppet-bolt-([\\d.]+)-x64\\.msi"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://downloads.puppetlabs.com/windows/puppet6/puppet-bolt-$version-x64.msi"
|
|
}
|
|
}
|
|
}
|
|
}
|