Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nathan Dines
committed
Aug 13, 2018
1 parent
d8bc27d
commit 01b9943
Showing
6 changed files
with
146 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
VERIFICATION | ||
|
||
Verification is intended to assist the Chocolatey moderators and community | ||
in verifying that this package's contents are trustworthy. | ||
|
||
Package can be verified like this: | ||
|
||
1. Go to | ||
|
||
x32: {{ url_386 }} | ||
x64: {{ url_x64 }} | ||
|
||
to download the binary. | ||
|
||
2. You can use one of the following methods to obtain the SHA256 checksum: | ||
- Use powershell function 'Get-FileHash' | ||
- Use Chocolatey utility 'checksum.exe' | ||
|
||
checksum32: {{ sha256_386 }} | ||
checksum64: {{ sha256_x64 }} | ||
|
||
File 'license.txt' is obtained from: | ||
https://github.com/nathandines/forge/blob/{{ license_commit }}/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. --> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<id>forge</id> | ||
<version>{{ package_version }}</version> | ||
<packageSourceUrl>https://github.com/nathandines/forge</packageSourceUrl> | ||
<owners>Nathan Dines</owners> | ||
|
||
<title>forge</title> | ||
<authors>Nathan Dines</authors> | ||
<projectUrl>https://github.com/nathandines/forge</projectUrl> | ||
<copyright>2018 Nathan Dines</copyright> | ||
<licenseUrl>https://github.com/nathandines/forge/blob/master/LICENSE</licenseUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<projectSourceUrl>https://github.com/nathandines/forge</projectSourceUrl> | ||
<bugTrackerUrl>https://github.com/nathandines/forge/issues</bugTrackerUrl> | ||
<tags>forge cloudformation aws golang continuous-delivery</tags> | ||
<summary>Continuous Delivery friendly CloudFormation deployment tool</summary> | ||
<description> | ||
Forge is a simple tool which makes deploying CloudFormation stacks a bit easier in continuous delivery environments. In contrast to awscli, Forge provides a mechanism to create, update and delete CloudFormation stacks synchronously, while also providing output on the stack events, and an exit code reflecting the final state of the stack deployment. | ||
</description> | ||
</metadata> | ||
<files> | ||
<file src="tools/**" target="tools" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$ErrorActionPreference = 'Stop' | ||
|
||
$fileName = "forge_v${Env:ChocolateyPackageVersion}.zip" | ||
$toolsPath = Split-Path -Parent $MyInvocation.MyCommand.Definition | ||
$zip_path = "$toolsPath\$fileName" | ||
Remove-Item $toolsPath\* -Recurse -Force -Exclude $fileName | ||
|
||
$packageArgs = @{ | ||
PackageName = 'forge' | ||
FileFullPath = $zip_path | ||
Destination = $toolsPath | ||
} | ||
Get-ChocolateyUnzip @packageArgs | ||
Remove-Item $zip_path -ea 0 | ||
|
||
if ((Get-OSArchitectureWidth 64) -or $Env:ChocolateyForceX86) { | ||
Write-Verbose "Removing x32 version" | ||
Remove-Item "$toolsPath/forge32.exe" -ea 0 | ||
Move-Item "$toolsPath/forge64.exe" "$toolsPath/forge.exe" -Force | ||
} else { | ||
Write-Verbose "Removing x64 version" | ||
Remove-Item "$toolsPath/forge64.exe" -ea 0 | ||
Move-Item "$toolsPath/forge32.exe" "$toolsPath/forge.exe" -Force | ||
} |