From a55134b4322e34bc1134a410c832f36d82066951 Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Fri, 5 Jul 2019 04:06:03 +0000 Subject: [PATCH] i2p: Add version 0.9.41 (#209) --- bucket/i2p-portable.json | 60 ++++++++++++++++++++++++++++++++++++++++ bucket/i2p.json | 56 +++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 bucket/i2p-portable.json create mode 100644 bucket/i2p.json diff --git a/bucket/i2p-portable.json b/bucket/i2p-portable.json new file mode 100644 index 0000000000..b9c7be268e --- /dev/null +++ b/bucket/i2p-portable.json @@ -0,0 +1,60 @@ +{ + "version": "0.9.41", + "description": "An anonymizing network.", + "homepage": "https://geti2p.net", + "license": { + "identifier": "Freeware", + "url": "https://github.com/i2p/i2p.i2p/blob/master/LICENSE.txt" + }, + "suggest": { + "JDK": [ + "java/oraclejdk", + "java/openjdk" + ] + }, + "url": "https://launchpad.net/i2p/trunk/0.9.41/%2Bdownload/i2pinstall_0.9.41_windows.exe#/dl.7z", + "hash": "e8d896e94696c3cb3be20cb28ea902595f82f7028622931a8ab6f451e4a3d6b5", + "bin": [ + "I2P.exe", + "I2Psvc.exe" + ], + "shortcuts": [ + [ + "I2Psvc.exe", + "Start I2P", + "-c \"$dir\\wrapper.config\"", + "docs\\start.ico" + ] + ], + "persist": "i2p", + "installer": { + "script": [ + "$temp = \"$env:TEMP\\I2P\"", + "New-Item $temp -ItemType 'Directory' -Force | Out-Null", + "Move-Item \"$dir\\install.jar\" \"$temp\\install.jar\" -Force", + "New-Item -Path $temp -Name 'install.defaults' -Value \"INSTALL_PATH=$($dir.toString().Replace('\\', '/'))\" -Force | Out-Null", + "& (scoop which java) -jar \"$temp\\install.jar\" -auto | Out-Null", + "Remove-Item $temp -Force -Recurse", + "$content = @(", + " 'wrapper.java.additional.3=-Di2p.dir.pid=./i2p'", + " 'wrapper.java.additional.4=-Di2p.dir.temp=./i2p'", + " 'wrapper.java.additional.5=-Di2p.dir.config=./i2p'", + " 'wrapper.logfile=./i2p/wrapper.log'", + " 'wrapper.java.pidfile=./i2p/routerjvm.pid'", + " 'wrapper.pidfile=./i2p/i2p.pid'", + ")", + "Add-Content \"$dir\\wrapper.config\" $content -Encoding UTF8" + ] + }, + "checkver": { + "url": "https://launchpad.net/i2p/trunk", + "regex": "Latest version is ([\\d.]+)" + }, + "autoupdate": { + "url": "https://launchpad.net/i2p/trunk/$version/%2Bdownload/i2pinstall_$version_windows.exe#/dl.7z", + "hash": { + "url": "https://geti2p.net/download", + "regex": "(?sm)$basename.*?$sha256" + } + } +} diff --git a/bucket/i2p.json b/bucket/i2p.json new file mode 100644 index 0000000000..241e13ad85 --- /dev/null +++ b/bucket/i2p.json @@ -0,0 +1,56 @@ +{ + "version": "0.9.41", + "description": "An anonymizing network.", + "homepage": "https://geti2p.net", + "license": { + "identifier": "Freeware", + "url": "https://github.com/i2p/i2p.i2p/blob/master/LICENSE.txt" + }, + "suggest": { + "JDK": [ + "java/oraclejdk", + "java/openjdk" + ] + }, + "url": "https://launchpad.net/i2p/trunk/0.9.41/%2Bdownload/i2pinstall_0.9.41_windows.exe#/dl.7z", + "hash": "e8d896e94696c3cb3be20cb28ea902595f82f7028622931a8ab6f451e4a3d6b5", + "bin": [ + "I2P.exe", + "I2Psvc.exe" + ], + "shortcuts": [ + [ + "I2P.exe", + "I2P\\Start I2P (no window)", + "", + "docs\\start.ico" + ], + [ + "I2Psvc.exe", + "I2P\\Start I2P (restartable)", + "-c \"$dir\\wrapper.config\"", + "docs\\start.ico" + ] + ], + "installer": { + "script": [ + "$temp = \"$env:TEMP\\I2P\"", + "New-Item $temp -ItemType 'Directory' -Force | Out-Null", + "Move-Item \"$dir\\install.jar\" \"$temp\\install.jar\" -Force", + "New-Item -Path $temp -Name 'install.defaults' -Value \"INSTALL_PATH=$($dir.toString().Replace('\\', '/'))\" -Force | Out-Null", + "& (scoop which java) -jar \"$temp\\install.jar\" -auto | Out-Null", + "Remove-Item $temp -Force -Recurse" + ] + }, + "checkver": { + "url": "https://launchpad.net/i2p/trunk", + "regex": "Latest version is ([\\d.]+)" + }, + "autoupdate": { + "url": "https://launchpad.net/i2p/trunk/$version/%2Bdownload/i2pinstall_$version_windows.exe#/dl.7z", + "hash": { + "url": "https://geti2p.net/download", + "regex": "(?sm)$basename.*?$sha256" + } + } +}