Skip to content

Commit

Permalink
feat: Chocolatey Package (#886)
Browse files Browse the repository at this point in the history
Thanks to @TheChiefMeat!
  • Loading branch information
TheChiefMeat authored and hacdias committed Mar 20, 2019
1 parent 4f95527 commit 94c6930
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
.cache
config.gypi
assets/webui
.nupkg
25 changes: 25 additions & 0 deletions pkgs/chocolatey/ipfs-desktop.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>ipfs-desktop</id>
<version>0.7.0</version>
<title>IPFS Desktop</title>
<authors>ipfs-shipyard</authors>
<projectUrl>https://github.com/ipfs-shipyard/ipfs-desktop/</projectUrl>
<iconUrl>https://dashboard.snapcraft.io/site_media/appmedia/2017/11/ipfs.ico.png</iconUrl>
<licenseUrl>https://raw.githubusercontent.com/ipfs-shipyard/ipfs-desktop/master/LICENSE</licenseUrl>
<projectSourceUrl>https://github.com/ipfs-shipyard/ipfs-desktop/</projectSourceUrl>
<bugTrackerUrl>https://github.com/ipfs-shipyard/ipfs-desktop/issues</bugTrackerUrl>
<tags>ipfs-desktop ipfs p2p distributed InterPlanetary-File-System gateway protocol</tags>
<summary>A desktop client for IPFS.</summary>
<description>
IPFS Desktop

A desktop client for [IPFS](https://ipfs.io).
You don't need the command line to run an IPFS node. Just install IPFS Desktop and have all the power of IPFS in your hands. Powered by [Web UI](https://github.com/ipfs-shipyard/ipfs-webui).
</description>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
21 changes: 21 additions & 0 deletions pkgs/chocolatey/tools/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 Protocol Labs, Inc.

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.
17 changes: 17 additions & 0 deletions pkgs/chocolatey/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$ErrorActionPreference = 'Stop';

$url = 'https://github.com/ipfs-shipyard/ipfs-desktop/releases/download/v0.7.0/ipfs-desktop-setup-0.7.0.exe'
$checksum = '6361E99B6A32481E6879F23E95A41A04A61707BD16A41086AC30F9090806EABE'

$packageArgs = @{
packageName = 'ipfs-desktop'
fileType = 'EXE'
softwareName = 'ipfs-desktop'
url = $url
checksum = $checksum
checksumType = 'sha256'
silentArgs = "/S"
validExitCodes= @(0)
}

Install-ChocolateyPackage @packageArgs

0 comments on commit 94c6930

Please sign in to comment.