mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-03 15:21:18 +00:00
72 lines
3.2 KiB
JSON
72 lines
3.2 KiB
JSON
{
|
|
"version": "10.02.1",
|
|
"description": "An interpreter for the PostScript language and for PDF",
|
|
"homepage": "https://www.ghostscript.com",
|
|
"license": {
|
|
"identifier": "AGPL-3.0-or-later|Freeware",
|
|
"url": "https://www.ghostscript.com/license.html"
|
|
},
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10021/gs10021w64.exe#/dl.7z",
|
|
"hash": "sha512:f93cd5f07f358c7ca445c02a18a0026dc1fd5fbb8697db830c3661d98e42ac852938b50401179435d0704e5512b6bfa7409ac6386c5ae7b4596e0d1534e41b7b",
|
|
"bin": [
|
|
"bin\\gswin64.exe",
|
|
"bin\\gswin64c.exe",
|
|
[
|
|
"bin\\gswin64c.exe",
|
|
"gs"
|
|
]
|
|
]
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10021/gs10021w32.exe#/dl.7z",
|
|
"hash": "sha512:81b4a7577bcd57727363711678c0ad5ba00f7b6fab1d6d81b361bb83274847eaad3200a5a3dfbb0cd265b1c2abaaf0e4cff816012469d6109d710161bd58c3ee",
|
|
"bin": [
|
|
"bin\\gswin32.exe",
|
|
"bin\\gswin32c.exe",
|
|
[
|
|
"bin\\gswin32c.exe",
|
|
"gs"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"post_install": [
|
|
"$reg_app = \"HKCU:\\SOFTWARE\\Artifex\\GPL Ghostscript\\$version\"",
|
|
"$reg_lib = \"HKCU:\\SOFTWARE\\GPL Ghostscript\\$version\"",
|
|
"if ($global) { $reg_app = $reg_app.Replace('HKCU:','HKLM:'); $reg_lib = $reg_lib.Replace('HKCU:','HKLM:') }",
|
|
"$reg_gs_dll = \"$dir\\bin\\gsdll$($architecture.Replace('bit', '')).dll\".Replace('\\','\\\\')",
|
|
"$reg_gs_lib = \"$dir\\bin;$dir\\lib;$dir\\fonts\".Replace('\\','\\\\')",
|
|
"New-Item -Path $reg_app -Value $dir.Replace('\\','\\\\') -Force | Out-Null",
|
|
"New-Item -Path $reg_lib -Value $dir.Replace('\\','\\\\') -Force | Out-Null",
|
|
"New-ItemProperty -Path $reg_lib -Name 'GS_DLL' -Value $reg_gs_dll -PropertyType String | Out-Null",
|
|
"New-ItemProperty -Path $reg_lib -Name 'GS_LIB' -Value $reg_gs_lib -PropertyType String | Out-Null"
|
|
],
|
|
"env_add_path": "lib",
|
|
"post_uninstall": [
|
|
"$reg_app = \"HKCU:\\SOFTWARE\\Artifex\\GPL Ghostscript\\$version\"",
|
|
"$reg_lib = \"HKCU:\\SOFTWARE\\GPL Ghostscript\\$version\"",
|
|
"if ($global) { $reg_app = $reg_app.Replace('HKCU:','HKLM:'); $reg_lib = $reg_lib.Replace('HKCU:','HKLM:') }",
|
|
"Remove-Item -Path $reg_app -Force -Recurse",
|
|
"Remove-Item -Path $reg_lib -Force -Recurse"
|
|
],
|
|
"checkver": {
|
|
"github": "https://github.com/ArtifexSoftware/ghostpdl-downloads/",
|
|
"regex": "Ghostscript/GhostPDL ([\\d.]+)"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$cleanVersion/gs$cleanVersionw64.exe#/dl.7z"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$cleanVersion/gs$cleanVersionw32.exe#/dl.7z"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "$baseurl/SHA512SUMS"
|
|
}
|
|
}
|
|
}
|