Skip to content

Commit

Permalink
Merge branch 'staging' into 1681_clear_result_panel
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruValeanu committed Oct 16, 2021
2 parents 88ae71c + 52de5c9 commit 29b97f5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
4 changes: 2 additions & 2 deletions chocolatey/altair-graphql.nuspec
Expand Up @@ -38,8 +38,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
<authors>Samuel Imolorhe</authors>
<!-- projectUrl is required for the community feed -->
<projectUrl>https://github.com/altair-graphql/altair</projectUrl>
<!-- TODO: update when site is deployed with logo -->
<iconUrl>https://altair.sirmuel.design/favicon.ico</iconUrl>
<iconUrl>https://altair.sirmuel.design/assets/img/altair_logo_128.png</iconUrl>
<!-- <copyright>Year Software Vendor</copyright> -->
<!-- If there is a license Url available, it is required for the community feed -->
<licenseUrl>https://github.com/altair-graphql/altair/blob/staging/.github/LICENSE</licenseUrl>
Expand Down Expand Up @@ -76,6 +75,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
<files>
<!-- this section controls what actually gets packaged into the Chocolatey package -->
<file src="tools\**" target="tools" />
<file src="legal\**" target="legal" />
<file src="..\packages\altair-electron\out\**" target="bins" />
<!--Building from Linux? You may need this instead: <file src="tools/**" target="tools" />-->
</files>
Expand Down
21 changes: 21 additions & 0 deletions chocolatey/legal/LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Samuel Imolorhe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 7 additions & 0 deletions chocolatey/legal/VERIFICATION.txt
@@ -0,0 +1,7 @@
VERIFICATION

Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

This package is published by the Altair GraphQL Project author himself (Samuel Imolorhe). Any binaries will be
identical to other package types published by the project.
7 changes: 3 additions & 4 deletions chocolatey/tools/chocolateyInstall.ps1
@@ -1,17 +1,16 @@
$ErrorActionPreference = 'Stop'; # stop on all errors

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fileLocation = Join-Path $toolsDir '..\bins\altair_4.0.11_x64_win.exe'
$fileHash = Get-FileHash $fileLocation

$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'EXE'
file = $fileLocation
file64 = $fileLocation
softwareName = 'altair-graphql*'
checksum = '' # TODO: Figure this out
checksumType = 'sha256'
checksum64 = '' # TODO: Figure this out
checksum64 = $fileHash.Hash
checksumType64= 'sha256'
silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
validExitCodes= @(0, 3010, 1641)
Expand Down

0 comments on commit 29b97f5

Please sign in to comment.