mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-03 15:21:18 +00:00
Change multiline strings to arrays (#2363)
This commit is contained in:
parent
571bf8cae3
commit
339115868d
12
apache.json
12
apache.json
@ -29,12 +29,12 @@
|
||||
"bin\\logresolve.exe",
|
||||
"bin\\rotatelogs.exe"
|
||||
],
|
||||
"post_install": "
|
||||
# set directory in httpd.conf
|
||||
$conf = \"$dir/conf/httpd.conf\"
|
||||
$root=(scoop which httpd | split-path -res -par | split-path -par) -replace '\\\\', '/';
|
||||
(gc $conf) | % { $_ -replace 'c:/Apache24', \"$root\" } | sc $conf
|
||||
",
|
||||
"post_install": [
|
||||
"# set directory in httpd.conf",
|
||||
"$conf = \"$dir/conf/httpd.conf\"",
|
||||
"$root=(scoop which httpd | split-path -res -par | split-path -par) -replace '\\\\', '/';",
|
||||
"(gc $conf) | % { $_ -replace 'c:/Apache24', \"$root\" } | sc $conf"
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://fossies.org/search?q=folder_search&q1=httpd&ad=%2Ffresh%2Fwindows%2Fwww&ca=yes&dp=1",
|
||||
"re": "httpd-([\\d.]+)-win64-VC15.zip"
|
||||
|
||||
6
bfg.json
6
bfg.json
@ -11,9 +11,9 @@
|
||||
]
|
||||
},
|
||||
"bin": "bfg.ps1",
|
||||
"pre_install": "
|
||||
write-output ('java -jar {0}\\bfg-{1}.jar $args' -f \"$dir\", \"$version\") | out-file -filepath $dir\\bfg.ps1
|
||||
",
|
||||
"pre_install": [
|
||||
"write-output ('java -jar {0}\\bfg-{1}.jar $args' -f \"$dir\", \"$version\") | out-file -filepath $dir\\bfg.ps1"
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://search.maven.org/solrsearch/select/?q=g:com.madgag+AND+a:bfg",
|
||||
"jp": "$.response.docs[0].latestVersion"
|
||||
|
||||
22
busybox.json
22
busybox.json
@ -26,17 +26,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"post_install": "
|
||||
if(!(test-path ~/.profile)) {
|
||||
'creating ~/.profile'
|
||||
@\"
|
||||
if [ -e ~/.bashrc ]
|
||||
then
|
||||
source ~/.bashrc
|
||||
fi
|
||||
\"@ | out-file -en oem ~/.profile
|
||||
}
|
||||
",
|
||||
"post_install": [
|
||||
"if(!(test-path ~/.profile)) {",
|
||||
" 'creating ~/.profile'",
|
||||
"@\"",
|
||||
"if [ -e ~/.bashrc ]",
|
||||
"then",
|
||||
" source ~/.bashrc",
|
||||
"fi",
|
||||
"\"@ | out-file -en oem ~/.profile",
|
||||
"}"
|
||||
],
|
||||
"bin": [
|
||||
"busybox.exe",
|
||||
[
|
||||
|
||||
19
git-up.json
19
git-up.json
@ -6,15 +6,16 @@
|
||||
"hash": "d7db91bb8c5d5a5d4635dee380ed496ca6a7da9903504357b752e0b396da327c",
|
||||
"extract_dir": "PyGitUp-1.5.0",
|
||||
"depends": "python",
|
||||
"post_install": "
|
||||
pushd \"$dir\"
|
||||
try {
|
||||
scoop reset python
|
||||
iex \"$(scoop which python) setup.py install\"
|
||||
}
|
||||
finally {
|
||||
popd
|
||||
}",
|
||||
"post_install": [
|
||||
"pushd \"$dir\"",
|
||||
"try {",
|
||||
" scoop reset python",
|
||||
" iex \"$(scoop which python) setup.py install\"",
|
||||
"}",
|
||||
"finally {",
|
||||
" popd",
|
||||
"}"
|
||||
],
|
||||
"checkver": "github",
|
||||
"autoupdate": {
|
||||
"url": "https://github.com/msiemens/PyGitUp/archive/v$version.zip",
|
||||
|
||||
14
git.json
14
git.json
@ -31,12 +31,14 @@
|
||||
"post_install": [
|
||||
"git config --global credential.helper manager"
|
||||
],
|
||||
"notes": "To get Git to recognise OpenSSH, you will need to run
|
||||
|
||||
scoop install openssh
|
||||
[environment]::setenvironmentvariable('GIT_SSH', (resolve-path (scoop which ssh)), 'USER')
|
||||
|
||||
and then restart powershell.",
|
||||
"notes": [
|
||||
"To get Git to recognise OpenSSH, you will need to run",
|
||||
"",
|
||||
"scoop install openssh",
|
||||
"[environment]::setenvironmentvariable('GIT_SSH', (resolve-path (scoop which ssh)), 'USER')",
|
||||
"",
|
||||
"and then restart powershell."
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://github.com/git-for-windows/git/releases/latest",
|
||||
"re": "v(?<version>[\\d\\w.]+)/PortableGit-(?<short>[\\d.]+).*\\.exe"
|
||||
|
||||
10
go.json
10
go.json
@ -41,9 +41,9 @@
|
||||
"url": "$url.sha256"
|
||||
}
|
||||
},
|
||||
"notes": "
|
||||
Your GOROOT has been set to: $dir
|
||||
You can run 'go env GOROOT' to view this at any time.
|
||||
\"$env:USERPROFILE\\go\\bin)\" has been added to your PATH.
|
||||
"
|
||||
"notes": [
|
||||
"Your GOROOT has been set to: $dir",
|
||||
"You can run 'go env GOROOT' to view this at any time.",
|
||||
"\"$env:USERPROFILE\\go\\bin)\" has been added to your PATH."
|
||||
]
|
||||
}
|
||||
|
||||
14
gow.json
14
gow.json
@ -7,13 +7,13 @@
|
||||
"url": "https://github.com/bmatzelle/gow/releases",
|
||||
"re": "<a.*?>Gow ([\\d.]+)</a>"
|
||||
},
|
||||
"pre_install": "
|
||||
\"@cscript //NoLogo \"\"$dir\\bin\\gow.vbs\"\" %1\" | Set-Content -force \"$dir\\bin\\gow.bat\"
|
||||
",
|
||||
"post_install": "
|
||||
# create etc directory (required by bash), if needed
|
||||
if (! (test-path \"$dir\\etc\")) { new-item -itemtype directory \"$dir\\etc\" }
|
||||
",
|
||||
"pre_install": [
|
||||
"\"@cscript //NoLogo \"\"$dir\\bin\\gow.vbs\"\" %1\" | Set-Content -force \"$dir\\bin\\gow.bat\""
|
||||
],
|
||||
"post_install": [
|
||||
"# create etc directory (required by bash), if needed",
|
||||
"if (! (test-path \"$dir\\etc\")) { new-item -itemtype directory \"$dir\\etc\" }"
|
||||
],
|
||||
"bin": [
|
||||
"bin\\awk.exe",
|
||||
"bin\\basename.exe",
|
||||
|
||||
10
haxe.json
10
haxe.json
@ -12,11 +12,11 @@
|
||||
"HAXEPATH": "$dir"
|
||||
},
|
||||
"depends": "neko",
|
||||
"pre_install": "
|
||||
if(Test-Path \"$dir\\haxe_*\") {
|
||||
Move-Item -Force \"$dir\\haxe_*\\*\" \"$dir\"
|
||||
}
|
||||
",
|
||||
"pre_install": [
|
||||
"if(Test-Path \"$dir\\haxe_*\") {",
|
||||
" Move-Item -Force \"$dir\\haxe_*\\*\" \"$dir\"",
|
||||
"}"
|
||||
],
|
||||
"checkver": {
|
||||
"github": "https://github.com/HaxeFoundation/haxe"
|
||||
},
|
||||
|
||||
@ -14,13 +14,15 @@
|
||||
],
|
||||
"extract_dir": "inadyn-mt.v.02.28.10",
|
||||
"hash": "f69bea12d96b66f9f662a8df0730c60457b24f5fb5308b109936880ebf7be5ca",
|
||||
"notes": "To install and run as a service:
|
||||
> notepad $dir\\bin\\win32\\inadyn-mt.conf
|
||||
> cd \"$dir\\bin\\win32\"
|
||||
> sudo .\\inadyn-mt -i
|
||||
> sudo .\\inadyn-mt -s
|
||||
|
||||
For help, see $dir\\readme.html",
|
||||
"notes": [
|
||||
"To install and run as a service:",
|
||||
"> notepad $dir\\bin\\win32\\inadyn-mt.conf",
|
||||
"> cd \"$dir\\bin\\win32\"",
|
||||
"> sudo .\\inadyn-mt -i",
|
||||
"> sudo .\\inadyn-mt -s",
|
||||
"",
|
||||
"For help, see $dir\\readme.html"
|
||||
],
|
||||
"persist": [
|
||||
"bin/win32/inadyn-mt.conf",
|
||||
"bin/win32/inadyn-mt.log",
|
||||
|
||||
@ -20,8 +20,10 @@
|
||||
"java/openjdk"
|
||||
]
|
||||
},
|
||||
"notes": "Install a JDK and set JAVA_HOME if you don't already have. JRuby won't work without it.
|
||||
Also note that this installation overrides GEM_HOME and GEM_PATH from any previous Ruby or JRuby installation.",
|
||||
"notes": [
|
||||
"Install a JDK and set JAVA_HOME if you don't already have. JRuby won't work without it.",
|
||||
"Also note that this installation overrides GEM_HOME and GEM_PATH from any previous Ruby or JRuby installation."
|
||||
],
|
||||
"checkver": {
|
||||
"url": "http://jruby.org/download",
|
||||
"re": "Current Release:\\s+JRuby\\s+([\\d.]+)"
|
||||
|
||||
@ -51,10 +51,8 @@
|
||||
"if (!(Test-Path \"$dir\\data\\auto.cnf\")) { mysqld --initialize-insecure }"
|
||||
],
|
||||
"notes": [
|
||||
"Run following command as administrator to run MariaDB as a service.
|
||||
",
|
||||
"mysqld --install \"[Service Name(default:MySQL)]\"
|
||||
"
|
||||
"Run following command as administrator to run MariaDB as a service.",
|
||||
"mysqld --install \"[Service Name(default:MySQL)]\""
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://downloads.mariadb.org/",
|
||||
|
||||
10
mongodb.json
10
mongodb.json
@ -22,11 +22,11 @@
|
||||
"bin\\mongostat.exe",
|
||||
"bin\\mongotop.exe"
|
||||
],
|
||||
"post_install": "
|
||||
# create initial directories
|
||||
if(!(test-path 'C:\\data')) { mkdir 'C:\\data' > $null }
|
||||
if(!(test-path 'C:\\data\\db')) { mkdir 'C:\\data\\db' > $null }
|
||||
",
|
||||
"post_install": [
|
||||
"# create initial directories",
|
||||
"if(!(test-path 'C:\\data')) { mkdir 'C:\\data' > $null }",
|
||||
"if(!(test-path 'C:\\data\\db')) { mkdir 'C:\\data\\db' > $null }"
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://www.mongodb.com/download-center",
|
||||
"re": "Current Stable Release \\(([\\d.]+)\\)"
|
||||
|
||||
13
msmpi.json
13
msmpi.json
@ -11,12 +11,13 @@
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"installer": {
|
||||
"script": "
|
||||
7z x -r \"$dir\\tmp\\4.msi\" -o\"$dir\"
|
||||
Remove-Item \"$dir\\msmpires.dll\"
|
||||
Remove-Item \"$dir\\msmpi.dll\"
|
||||
Rename-Item \"$dir\\msmpires64.dll\" \"$dir\\msmpires.dll\"
|
||||
Rename-Item \"$dir\\msmpi64.dll\" \"$dir\\msmpi.dll\""
|
||||
"script": [
|
||||
"7z x -r \"$dir\\tmp\\4.msi\" -o\"$dir\"",
|
||||
"Remove-Item \"$dir\\msmpires.dll\"",
|
||||
"Remove-Item \"$dir\\msmpi.dll\"",
|
||||
"Rename-Item \"$dir\\msmpires64.dll\" \"$dir\\msmpires.dll\"",
|
||||
"Rename-Item \"$dir\\msmpi64.dll\" \"$dir\\msmpi.dll\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"32bit": {
|
||||
|
||||
20
mysql.json
20
mysql.json
@ -29,16 +29,16 @@
|
||||
"persist": [
|
||||
"data"
|
||||
],
|
||||
"post_install": "
|
||||
#Initialize data directory (without generating root password)
|
||||
if (!(Test-Path \"$dir\\data\\auto.cnf\")) {
|
||||
mysqld --initialize-insecure
|
||||
}
|
||||
#Output client configuration to my.ini file so no username is required when connecting
|
||||
echo \"\" | out-file \"$dir/my.ini\" -Encoding ASCII -Append
|
||||
echo \"[client]\" | out-file \"$dir/my.ini\" -Encoding ASCII -Append
|
||||
echo \"user=root\" | out-file \"$dir/my.ini\" -Encoding ASCII -Append
|
||||
",
|
||||
"post_install": [
|
||||
"#Initialize data directory (without generating root password)",
|
||||
"if (!(Test-Path \"$dir\\data\\auto.cnf\")) {",
|
||||
" mysqld --initialize-insecure",
|
||||
"}",
|
||||
"#Output client configuration to my.ini file so no username is required when connecting",
|
||||
"echo \"\" | out-file \"$dir/my.ini\" -Encoding ASCII -Append",
|
||||
"echo \"[client]\" | out-file \"$dir/my.ini\" -Encoding ASCII -Append",
|
||||
"echo \"user=root\" | out-file \"$dir/my.ini\" -Encoding ASCII -Append"
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://dev.mysql.com/downloads/mysql/",
|
||||
"re": "<h1>MySQL Community Server ([\\d.]+)"
|
||||
|
||||
14
nano.json
14
nano.json
@ -6,11 +6,13 @@
|
||||
"hash": "c012456b9f29e488b0e9a688aa43a34326dd573f9e99765cbdac2b81a4bc1060",
|
||||
"bin": "nano.exe",
|
||||
"extract_dir": "nano-2.5.3-win32",
|
||||
"post_install": "if (-not (Test-Path ~/nano.rc)) { Copy-Item \"$dir/nano.rc\" ~/nano.rc }",
|
||||
"post_install": [
|
||||
"if (-not (Test-Path ~/nano.rc)) { Copy-Item \"$dir/nano.rc\" ~/nano.rc }"
|
||||
],
|
||||
"checkver": "Latest Version\\s+([\\d.]+)",
|
||||
"notes": "
|
||||
You can configure nano editor by editing the configuration file nano.rc
|
||||
in your home folder. For nano to find the configuration file, you will
|
||||
need to set %HOME% environment variable to point to your home folder.
|
||||
"
|
||||
"notes": [
|
||||
"You can configure nano editor by editing the configuration file nano.rc",
|
||||
"in your home folder. For nano to find the configuration file, you will",
|
||||
"need to set %HOME% environment variable to point to your home folder."
|
||||
]
|
||||
}
|
||||
|
||||
8
nim.json
8
nim.json
@ -14,10 +14,10 @@
|
||||
},
|
||||
"depends": "gcc",
|
||||
"extract_dir": "nim-0.18.0",
|
||||
"post_install": "
|
||||
# Copy Nimble package
|
||||
Copy-Item -Recurse \"$dir\\dist\\nimble\\src\\nimblepkg\" \"$dir\\bin\"
|
||||
",
|
||||
"post_install": [
|
||||
"# Copy Nimble package",
|
||||
"Copy-Item -Recurse \"$dir\\dist\\nimble\\src\\nimblepkg\" \"$dir\\bin\""
|
||||
],
|
||||
"bin": [
|
||||
"bin\\c2nim.exe",
|
||||
"bin\\makelink.exe",
|
||||
|
||||
@ -33,6 +33,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"notes": "Manage Services with NSSM (GUI based) (e.g., 'nssm install nginx' to install nginx as service gui will popup or 'nssm start/status/stop apache').
|
||||
Visit https://nssm.cc/commands for more info"
|
||||
"notes": [
|
||||
"Manage Services with NSSM (GUI based) (e.g., 'nssm install nginx' to install nginx as service gui will popup or 'nssm start/status/stop apache').",
|
||||
"Visit https://nssm.cc/commands for more info"
|
||||
]
|
||||
}
|
||||
|
||||
20
nvm.json
20
nvm.json
@ -25,17 +25,23 @@
|
||||
"hash": "975697d7a3ab697060fe71ffbb37dba7ff2120295ead3e75799f935ca7403135",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"pre_install": "if(!(test-path \"$dir\\settings.txt\")) {
|
||||
write-output \"root: $persist_dir\\nodejs`r`narch: 64`r`nproxy: none\" | Out-File -encoding \"ASCII\" \"$dir\\settings.txt\"
|
||||
}"
|
||||
"pre_install": [
|
||||
"if(!(test-path \"$dir\\settings.txt\")) {",
|
||||
" write-output \"root: $persist_dir\\nodejs`r`narch: 64`r`nproxy: none\" | Out-File -encoding \"ASCII\" \"$dir\\settings.txt\"",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"32bit": {
|
||||
"pre_install": "if(!(test-path \"$dir\\settings.txt\")) {
|
||||
write-output \"root: $persist_dir\\nodejs`r`narch: 32`r`nproxy: none\" | Out-File -encoding \"ASCII\" \"$dir\\settings.txt\"
|
||||
}"
|
||||
"pre_install": [
|
||||
"if(!(test-path \"$dir\\settings.txt\")) {",
|
||||
" write-output \"root: $persist_dir\\nodejs`r`narch: 32`r`nproxy: none\" | Out-File -encoding \"ASCII\" \"$dir\\settings.txt\"",
|
||||
"}"
|
||||
]
|
||||
}
|
||||
},
|
||||
"notes": "You'll need to restart powershell/cmd to have it reload Environment Variables so nvm will work correctly",
|
||||
"notes": [
|
||||
"You'll need to restart powershell/cmd to have it reload Environment Variables so nvm will work correctly"
|
||||
],
|
||||
"autoupdate": {
|
||||
"url": "https://github.com/coreybutler/nvm-windows/releases/download/$version/nvm-noinstall.zip"
|
||||
}
|
||||
|
||||
46
pester.json
46
pester.json
@ -7,29 +7,29 @@
|
||||
"hash": "34cabbfb33d46f9a91386308a3b86023af602845980b6c8507979db5c29214d0",
|
||||
"extract_dir": "pester-4.3.1",
|
||||
"bin": "bin\\pester.bat",
|
||||
"post_install": "
|
||||
$import = \"try { `$null = gcm pester -ea stop; import-module `\"$dir\\pester.psm1`\" } catch { }\"
|
||||
|
||||
if($profile) {
|
||||
'adding pester to powershell profile...'
|
||||
if(!(test-path $profile)) {
|
||||
'powershell profile doesn''t exist. creating...'
|
||||
$profile_dir = split-path $profile
|
||||
if(!(test-path $profile_dir)) { mkdir $profile_dir > $null }
|
||||
'' > $profile
|
||||
}
|
||||
|
||||
$text = get-content $profile
|
||||
if (($text | sls 'pester') -eq $null) {
|
||||
$new_profile = @($text) + $import
|
||||
$new_profile > $profile
|
||||
success 'pester added to powershell profile.'
|
||||
}
|
||||
} else { warn 'no powershell profile found. the pester module will not be imported each session.' }
|
||||
|
||||
'importing pester for current session...'
|
||||
iex \"$import\"
|
||||
",
|
||||
"post_install": [
|
||||
"$import = \"try { `$null = gcm pester -ea stop; import-module `\"$dir\\pester.psm1`\" } catch { }\"",
|
||||
"",
|
||||
"if($profile) {",
|
||||
" 'adding pester to powershell profile...'",
|
||||
" if(!(test-path $profile)) {",
|
||||
" 'powershell profile doesn''t exist. creating...'",
|
||||
" $profile_dir = split-path $profile",
|
||||
" if(!(test-path $profile_dir)) { mkdir $profile_dir > $null }",
|
||||
" '' > $profile",
|
||||
" }",
|
||||
"",
|
||||
" $text = get-content $profile",
|
||||
" if (($text | sls 'pester') -eq $null) {",
|
||||
" $new_profile = @($text) + $import",
|
||||
" $new_profile > $profile",
|
||||
" success 'pester added to powershell profile.'",
|
||||
" }",
|
||||
"} else { warn 'no powershell profile found. the pester module will not be imported each session.' }",
|
||||
"",
|
||||
"'importing pester for current session...'",
|
||||
"iex \"$import\""
|
||||
],
|
||||
"checkver": "github",
|
||||
"autoupdate": {
|
||||
"url": "https://github.com/pester/pester/archive/$version.tar.gz",
|
||||
|
||||
30
php-nts.json
30
php-nts.json
@ -27,21 +27,21 @@
|
||||
"env_set": {
|
||||
"PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;"
|
||||
},
|
||||
"post_install": "
|
||||
# Copy ini scan dir from old location before persistent update
|
||||
if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$dir\\cli\\conf.d\")) {
|
||||
Write-Host -ForegroundColor Cyan \"We are moving your php configuration to $dir\\cli\\conf.d\"
|
||||
Move-Item \"$dir\\..\\conf\" \"$dir\\cli\\conf.d\"
|
||||
}
|
||||
|
||||
# Create directory for custom PHP configuration
|
||||
if (!(Test-Path \"$dir\\cli\\conf.d\")) {
|
||||
(New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null
|
||||
}
|
||||
|
||||
# Enable extensions to be found in installation-relative folder (the default is to search C:/php)
|
||||
(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\"
|
||||
",
|
||||
"post_install": [
|
||||
"# Copy ini scan dir from old location before persistent update",
|
||||
"if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$dir\\cli\\conf.d\")) {",
|
||||
" Write-Host -ForegroundColor Cyan \"We are moving your php configuration to $dir\\cli\\conf.d\"",
|
||||
" Move-Item \"$dir\\..\\conf\" \"$dir\\cli\\conf.d\"",
|
||||
"}",
|
||||
"",
|
||||
"# Create directory for custom PHP configuration",
|
||||
"if (!(Test-Path \"$dir\\cli\\conf.d\")) {",
|
||||
" (New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null",
|
||||
"}",
|
||||
"",
|
||||
"# Enable extensions to be found in installation-relative folder (the default is to search C:/php)",
|
||||
"(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\""
|
||||
],
|
||||
"checkver": {
|
||||
"url": "http://windows.php.net/download/",
|
||||
"re": "<h3 id=\"php-7.2\".*?>.*?\\(([\\d.]+)\\)</h3>"
|
||||
|
||||
30
php.json
30
php.json
@ -27,21 +27,21 @@
|
||||
"env_set": {
|
||||
"PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;"
|
||||
},
|
||||
"post_install": "
|
||||
# Copy ini scan dir from old location before persistent update
|
||||
if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$dir\\cli\\conf.d\")) {
|
||||
Write-Host -ForegroundColor Cyan \"We are moving your php configuration to $dir\\cli\\conf.d\"
|
||||
Move-Item \"$dir\\..\\conf\" \"$dir\\cli\\conf.d\"
|
||||
}
|
||||
|
||||
# Create directory for custom PHP configuration
|
||||
if (!(Test-Path \"$dir\\cli\\conf.d\")) {
|
||||
(New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null
|
||||
}
|
||||
|
||||
# Enable extensions to be found in installation-relative folder (the default is to search C:/php)
|
||||
(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\"
|
||||
",
|
||||
"post_install": [
|
||||
"# Copy ini scan dir from old location before persistent update",
|
||||
"if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$dir\\cli\\conf.d\")) {",
|
||||
" Write-Host -ForegroundColor Cyan \"We are moving your php configuration to $dir\\cli\\conf.d\"",
|
||||
" Move-Item \"$dir\\..\\conf\" \"$dir\\cli\\conf.d\"",
|
||||
"}",
|
||||
"",
|
||||
"# Create directory for custom PHP configuration",
|
||||
"if (!(Test-Path \"$dir\\cli\\conf.d\")) {",
|
||||
" (New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null",
|
||||
"}",
|
||||
"",
|
||||
"# Enable extensions to be found in installation-relative folder (the default is to search C:/php)",
|
||||
"(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\""
|
||||
],
|
||||
"checkver": {
|
||||
"url": "http://windows.php.net/download/",
|
||||
"re": "<h3 id=\"php-7.2\".*?>.*?\\(([\\d.]+)\\)</h3>"
|
||||
|
||||
@ -24,9 +24,9 @@
|
||||
"env_set": {
|
||||
"PGDATA": "$dir\\data"
|
||||
},
|
||||
"post_install": "
|
||||
if (!(Test-Path \"$dir\\data\\pg_hba.conf\")) { iex \"initdb --username=postgres --encoding=UTF8 --locale=en --lc-collate=C\" }
|
||||
",
|
||||
"post_install": [
|
||||
"if (!(Test-Path \"$dir\\data\\pg_hba.conf\")) { iex \"initdb --username=postgres --encoding=UTF8 --locale=en --lc-collate=C\" }"
|
||||
],
|
||||
"notes": "To start/stop service, run `pg_ctl start`, `pg_ctl stop`.",
|
||||
"checkver": {
|
||||
"url": "https://www.enterprisedb.com/products-services-training/pgbindownload",
|
||||
|
||||
@ -100,19 +100,20 @@
|
||||
"python3"
|
||||
]
|
||||
],
|
||||
"post_install": "
|
||||
python -m ensurepip; cp (gcm pip3).path \"$(split-path (gcm pip3).path)/pip.exe\"
|
||||
$create_reg = {
|
||||
param($path, $value)
|
||||
$reg_base = \"Registry::HKEY_CURRENT_USER\\Software\"
|
||||
new-item -path \"$reg_base\\$path\" -force | out-null
|
||||
new-itemproperty -path \"$reg_base\\$path\" `
|
||||
-name \"(Default)\" -value \"$value\" -force | out-null
|
||||
}
|
||||
$create_reg.Invoke(\"Classes\\Python.File\\shell\\open\\command\", \"`\"$dir\\py.exe`\" `\"%1`\" %*\")
|
||||
$create_reg.Invoke(\"Classes\\.py\", \"Python.File\")
|
||||
$create_reg.Invoke(\"Python\\PythonCore\\3.5\\InstallPath\", \"$dir\")
|
||||
$create_reg.Invoke(\"Python\\PythonCore\\3.5\\PythonPath\", \"$dir;$dir\\Lib\\;$dir\\DLLs\\\")",
|
||||
"post_install": [
|
||||
"python -m ensurepip; cp (gcm pip3).path \"$(split-path (gcm pip3).path)/pip.exe\"",
|
||||
"$create_reg = {",
|
||||
" param($path, $value)",
|
||||
" $reg_base = \"Registry::HKEY_CURRENT_USER\\Software\"",
|
||||
" new-item -path \"$reg_base\\$path\" -force | out-null",
|
||||
" new-itemproperty -path \"$reg_base\\$path\" `",
|
||||
" -name \"(Default)\" -value \"$value\" -force | out-null",
|
||||
"}",
|
||||
"$create_reg.Invoke(\"Classes\\Python.File\\shell\\open\\command\", \"`\"$dir\\py.exe`\" `\"%1`\" %*\")",
|
||||
"$create_reg.Invoke(\"Classes\\.py\", \"Python.File\")",
|
||||
"$create_reg.Invoke(\"Python\\PythonCore\\3.5\\InstallPath\", \"$dir\")",
|
||||
"$create_reg.Invoke(\"Python\\PythonCore\\3.5\\PythonPath\", \"$dir;$dir\\Lib\\;$dir\\DLLs\\\")"
|
||||
],
|
||||
"env_add_path": [
|
||||
"scripts"
|
||||
],
|
||||
|
||||
19
r.json
19
r.json
@ -20,15 +20,16 @@
|
||||
"bin\\curr_arch\\rterm.exe",
|
||||
"bin\\curr_arch\\rscript.exe"
|
||||
],
|
||||
"notes": "You'll need to type 'r.ps1' or 'r.cmd' to run R, because in Powershell 'r' runs the last command. Alternatively 'rterm' can be used to start the interactive R terminal session.
|
||||
|
||||
You can remove Powershell's 'r' command with:
|
||||
rm alias:\\r
|
||||
|
||||
... but this only affects your current session: if you'd like to remove it for all future sessions you need to add the command above to your Powershell profile.
|
||||
|
||||
Annoying, right?! You might want to check out Pshazz (scoop install pshazz)--this has a plugin to remove some crazy aliases from Powershell, as well as many other improvements.
|
||||
",
|
||||
"notes": [
|
||||
"You'll need to type 'r.ps1' or 'r.cmd' to run R, because in Powershell 'r' runs the last command. Alternatively 'rterm' can be used to start the interactive R terminal session.",
|
||||
"",
|
||||
"You can remove Powershell's 'r' command with:",
|
||||
" rm alias:\\r",
|
||||
"",
|
||||
"... but this only affects your current session: if you'd like to remove it for all future sessions you need to add the command above to your Powershell profile.",
|
||||
"",
|
||||
"Annoying, right?! You might want to check out Pshazz (scoop install pshazz)--this has a plugin to remove some crazy aliases from Powershell, as well as many other improvements."
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://cran.rstudio.com/bin/windows/base/",
|
||||
"re": "<h1>R-([\\d.]+)"
|
||||
|
||||
16
rustup.json
16
rustup.json
@ -21,14 +21,14 @@
|
||||
"RUSTUP_HOME": "$persist_dir\\.rustup"
|
||||
},
|
||||
"installer": {
|
||||
"script": "
|
||||
# Create environment variables for this process
|
||||
[Environment]::SetEnvironmentVariable('CARGO_HOME', \"$persist_dir\\.cargo\", 'Process')
|
||||
[Environment]::SetEnvironmentVariable('RUSTUP_HOME', \"$persist_dir\\.rustup\", 'Process')
|
||||
|
||||
# Install Rustup
|
||||
& \"$dir\\rustup-init.exe\" -y --no-modify-path --default-toolchain stable-gnu
|
||||
"
|
||||
"script": [
|
||||
"# Create environment variables for this process",
|
||||
"[Environment]::SetEnvironmentVariable('CARGO_HOME', \"$persist_dir\\.cargo\", 'Process')",
|
||||
"[Environment]::SetEnvironmentVariable('RUSTUP_HOME', \"$persist_dir\\.rustup\", 'Process')",
|
||||
"",
|
||||
"# Install Rustup",
|
||||
"& \"$dir\\rustup-init.exe\" -y --no-modify-path --default-toolchain stable-gnu"
|
||||
]
|
||||
},
|
||||
"notes": "To use the MSVC ABI without Visual Studio 2015 (or higher) installed, you will need the Visual Studio 2017 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017"
|
||||
}
|
||||
|
||||
@ -19,6 +19,8 @@
|
||||
]
|
||||
],
|
||||
"checkver": "The latest version[^<]+<a href=\"[^\"]+srvman-([\\d.]+)\\.zip\"",
|
||||
"notes": "Always use sudo to start, stop or edit (e.g., 'sudo srvman start nginx' or 'sudo service restart apache').
|
||||
Visit http://tools.sysprogs.org/srvman/ for more info"
|
||||
"notes": [
|
||||
"Always use sudo to start, stop or edit (e.g., 'sudo srvman start nginx' or 'sudo service restart apache').",
|
||||
"Visit http://tools.sysprogs.org/srvman/ for more info"
|
||||
]
|
||||
}
|
||||
|
||||
10
unbound.json
10
unbound.json
@ -46,9 +46,9 @@
|
||||
}
|
||||
},
|
||||
"pre_install": "echo \"if (`$args.count -eq 0) {`n `t`Start-Process -WorkingDirectory `\"`$psscriptroot`\" -f unbound.exe -a '-c service.conf'-WindowStyle Hidden`n`tWrite-Host -F Green `\"Unbound started in background.``nRun 'ps -n unbound' to show the processes``nRun 'kill -n unbound' to stop the processes`\"`n} else {`n`t& `$psscriptroot @args `n}\" | out-file $dir\\unbound.ps1",
|
||||
"post_install": "
|
||||
(gc \"$dir\\create_unbound_ad_servers.cmd\").Replace('C:\\Program Files (x86)', (convert-path \"$dir\\..\")).replace('%prefix%\\Unbound', '%prefix%\\current') | sc \"$dir\\create_unbound_ad_servers.cmd\"
|
||||
(gc \"$dir\\unbound_cache.cmd\").Replace('C:\\Program Files (x86)', (convert-path \"$dir\\..\")).replace('%prefix%\\Unbound', '%prefix%\\current') | sc \"$dir\\unbound_cache.cmd\"
|
||||
(gc \"$dir\\unbound-control-setup.cmd\").Replace('C:\\Program Files', (convert-path \"$dir\\..\")).replace('%prefix%\\Unbound', '%prefix%\\current') | sc \"$dir\\unbound-control-setup.cmd\"
|
||||
"
|
||||
"post_install": [
|
||||
"(gc \"$dir\\create_unbound_ad_servers.cmd\").Replace('C:\\Program Files (x86)', (convert-path \"$dir\\..\")).replace('%prefix%\\Unbound', '%prefix%\\current') | sc \"$dir\\create_unbound_ad_servers.cmd\"",
|
||||
"(gc \"$dir\\unbound_cache.cmd\").Replace('C:\\Program Files (x86)', (convert-path \"$dir\\..\")).replace('%prefix%\\Unbound', '%prefix%\\current') | sc \"$dir\\unbound_cache.cmd\"",
|
||||
"(gc \"$dir\\unbound-control-setup.cmd\").Replace('C:\\Program Files', (convert-path \"$dir\\..\")).replace('%prefix%\\Unbound', '%prefix%\\current') | sc \"$dir\\unbound-control-setup.cmd\""
|
||||
]
|
||||
}
|
||||
|
||||
12
vim.json
12
vim.json
@ -76,11 +76,13 @@
|
||||
"-d"
|
||||
]
|
||||
],
|
||||
"post_install": "if( !(test-path ~\\.vimrc) -and !(test-path ~\\_vimrc) -and !(test-path ~\\vimfiles\\vimrc) -and !(test-path $env:VIM\\_vimrc) ) {
|
||||
cp \"$dir\\vimrc_example.vim\" ~\\_vimrc
|
||||
\"set shell=$((gcm powershell).path)\\ -executionpolicy\\ bypass\" | out-file ~\\_vimrc -append -encoding ascii
|
||||
echo 'Default vimrc file created in ~/_vimrc, with shell set to PowerShell.'
|
||||
} else { echo 'Existing vimrc file found, no default configuration created' }",
|
||||
"post_install": [
|
||||
"if( !(test-path ~\\.vimrc) -and !(test-path ~\\_vimrc) -and !(test-path ~\\vimfiles\\vimrc) -and !(test-path $env:VIM\\_vimrc) ) {",
|
||||
" cp \"$dir\\vimrc_example.vim\" ~\\_vimrc",
|
||||
" \"set shell=$((gcm powershell).path)\\ -executionpolicy\\ bypass\" | out-file ~\\_vimrc -append -encoding ascii",
|
||||
" echo 'Default vimrc file created in ~/_vimrc, with shell set to PowerShell.'",
|
||||
"} else { echo 'Existing vimrc file found, no default configuration created' }"
|
||||
],
|
||||
"checkver": {
|
||||
"github": "https://github.com/vim/vim-win32-installer"
|
||||
},
|
||||
|
||||
10
yarn.json
10
yarn.json
@ -19,11 +19,11 @@
|
||||
"bin",
|
||||
"mirror"
|
||||
],
|
||||
"post_install": "
|
||||
yarn config set cache-folder \"$dir\\cache\"
|
||||
yarn config set yarn-offline-mirror \"$dir\\mirror\"
|
||||
yarn config set prefix \"$dir\"
|
||||
",
|
||||
"post_install": [
|
||||
"yarn config set cache-folder \"$dir\\cache\"",
|
||||
"yarn config set yarn-offline-mirror \"$dir\\mirror\"",
|
||||
"yarn config set prefix \"$dir\""
|
||||
],
|
||||
"env_add_path": [
|
||||
"bin",
|
||||
"Yarn\\bin"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user