Browse Source

update i2pd to 2.36.0

Signed-off-by: R4SAS <r4sas@i2pmail.org>
master
R4SAS 4 years ago
parent
commit
3f51b2ca66
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      i2pd/i2pd.nuspec
  2. 32
      i2pd/tools/ChocolateyInstall.ps1

2
i2pd/i2pd.nuspec

@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> <package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata> <metadata>
<id>i2pd</id> <id>i2pd</id>
<version>2.34.0</version> <version>2.36.0</version>
<packageSourceUrl>https://github.com/r4sas/chocolatey-packages/tree/master/i2pd/</packageSourceUrl> <packageSourceUrl>https://github.com/r4sas/chocolatey-packages/tree/master/i2pd/</packageSourceUrl>
<owners>r4sas</owners> <owners>r4sas</owners>

32
i2pd/tools/ChocolateyInstall.ps1

@ -1,29 +1,29 @@
$ErrorActionPreference = 'Stop'; # stop on all errors $ErrorActionPreference = 'Stop'; # stop on all errors
$packagename = 'i2pd' $packagename = 'i2pd'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = 'https://github.com/PurpleI2P/i2pd/releases/download/2.34.0/i2pd_2.34.0_win32_mingw.zip' $url = 'https://github.com/PurpleI2P/i2pd/releases/download/2.36.0/i2pd_2.36.0_win32_mingw.zip'
$checksum = 'b22b9a891268b6770b3aef80a1f2780c1e4387f1347b5927ebb04f0e9a965ecc' $checksum = '155209fd53c10b76311dd230ebe017bb7dd12700d7f722c973ec40f8f7e3d854'
$checksumType = 'sha256' $checksumType = 'sha256'
$url64 = 'https://github.com/PurpleI2P/i2pd/releases/download/2.34.0/i2pd_2.34.0_win64_mingw.zip' $url64 = 'https://github.com/PurpleI2P/i2pd/releases/download/2.36.0/i2pd_2.36.0_win64_mingw.zip'
$checksum64 = '0ae5d933bca5ac21561b1deef755f4cffa58eb9536dc4c9231ebc212b328795a' $checksum64 = '550eddb45f37d2714f6f2e1febf3d41c0b30287f9ed046a8b564ded51787f869'
$checksumType64 = 'sha256' $checksumType64 = 'sha256'
Install-ChocolateyZipPackage -packageName "$packagename" ` Install-ChocolateyZipPackage -packageName "$packagename" `
-UnzipLocation "$toolsDir" ` -UnzipLocation "$toolsDir" `
-Url "$url" ` -Url "$url" `
-checksum "$checksum" ` -checksum "$checksum" `
-checksumType "$checksumType" ` -checksumType "$checksumType" `
-Url64 "$url64" ` -Url64 "$url64" `
-checksum64 "$checksum64" ` -checksum64 "$checksum64" `
-checksumType64 "$checksumType64" -checksumType64 "$checksumType64"
# Install configs and certificates if i2pd dir not available, otherwise just update certificates # Install configs and certificates if i2pd dir not available, otherwise just update certificates
$dataDir = Join-Path $Env:APPDATA 'i2pd' $dataDir = Join-Path $Env:APPDATA 'i2pd'
if (Test-Path -Path $dataDir) { if (Test-Path -Path $dataDir) {
Write-Host "Updating i2pd certificates" Write-Host "Updating i2pd certificates"
Remove-Item $dataDir\certificates -Recurse Remove-Item $dataDir\certificates -Recurse
Copy-Item $toolsDir\contrib\certificates -Destination $dataDir\certificates -Recurse Copy-Item $toolsDir\contrib\certificates -Destination $dataDir\certificates -Recurse
} else { } else {
Write-Host "Copying default configs and certificates" Write-Host "Copying default configs and certificates"
Copy-Item $toolsDir\contrib -Destination $dataDir -Recurse Copy-Item $toolsDir\contrib -Destination $dataDir -Recurse
} }

Loading…
Cancel
Save