mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-02 06:41:19 +00:00
i2p: Use portable version as default
This commit is contained in:
parent
6fe6200ed6
commit
58dbf03196
@ -24,11 +24,12 @@
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
"I2Psvc.exe",
|
"I2Psvc.exe",
|
||||||
"I2P\\Start I2P (restartable)",
|
"Start I2P",
|
||||||
"-c \"$dir\\wrapper.config\"",
|
"-c \"$dir\\wrapper.config\"",
|
||||||
"docs\\start.ico"
|
"docs\\start.ico"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
"persist": "i2p",
|
||||||
"installer": {
|
"installer": {
|
||||||
"script": [
|
"script": [
|
||||||
"$temp = \"$env:TEMP\\I2P\"",
|
"$temp = \"$env:TEMP\\I2P\"",
|
||||||
@ -36,7 +37,16 @@
|
|||||||
"Move-Item \"$dir\\install.jar\" \"$temp\\install.jar\" -Force",
|
"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",
|
"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",
|
"& (scoop which java) -jar \"$temp\\install.jar\" -auto | Out-Null",
|
||||||
"Remove-Item $temp -Force -Recurse"
|
"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": {
|
"checkver": {
|
||||||
|
|||||||
@ -16,14 +16,19 @@
|
|||||||
"I2Psvc.exe"
|
"I2Psvc.exe"
|
||||||
],
|
],
|
||||||
"shortcuts": [
|
"shortcuts": [
|
||||||
|
[
|
||||||
|
"I2P.exe",
|
||||||
|
"I2P\\Start I2P (no window)",
|
||||||
|
"",
|
||||||
|
"docs\\start.ico"
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"I2Psvc.exe",
|
"I2Psvc.exe",
|
||||||
"Start I2P",
|
"I2P\\Start I2P (restartable)",
|
||||||
"-c \"$dir\\wrapper.config\"",
|
"-c \"$dir\\wrapper.config\"",
|
||||||
"docs\\start.ico"
|
"docs\\start.ico"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"persist": "i2p",
|
|
||||||
"installer": {
|
"installer": {
|
||||||
"script": [
|
"script": [
|
||||||
"$temp = \"$env:TEMP\\I2P\"",
|
"$temp = \"$env:TEMP\\I2P\"",
|
||||||
@ -31,16 +36,7 @@
|
|||||||
"Move-Item \"$dir\\install.jar\" \"$temp\\install.jar\" -Force",
|
"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",
|
"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",
|
"& (scoop which java) -jar \"$temp\\install.jar\" -auto | Out-Null",
|
||||||
"Remove-Item $temp -Force -Recurse",
|
"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": {
|
"checkver": {
|
||||||
Loading…
x
Reference in New Issue
Block a user