generated from ScoopInstaller/BucketTemplate
/
gimp.json
67 lines (67 loc) · 2.77 KB
/
gimp.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"version": "2.10.36-1",
"description": "GNU Image Manipulation Program",
"homepage": "https://www.gimp.org",
"license": "GPL-3.0-only",
"url": "https://download.gimp.org/mirror/pub/gimp/v2.10/windows/gimp-2.10.36-setup-1.exe",
"hash": "5dc0efd3c877c6e8fd8af44944d31997875e38b610f95b30445aea3758dbbe90",
"innosetup": true,
"installer": {
"script": [
"Push-Location \"$dir\"",
"Get-ChildItem -Filter '*.debug' -Recurse | Remove-Item -Recurse",
"if ($architecture -eq '64bit') {",
" Rename-Item 'lib\\gimp\\2.0\\plug-ins\\twain\\twain,3.exe' 'twain.exe'",
" Remove-Item 'lib\\gimp\\2.0\\plug-ins\\twain\\twain,1.exe'",
" Get-ChildItem -Filter '*,1*' -Recurse | Rename-Item -NewName { $_.name -Replace ',\\d','' }",
" Get-ChildItem -Filter '*,*' -Recurse | Remove-Item",
"} else {",
" Rename-Item 'lib\\gimp\\2.0\\plug-ins\\twain\\twain,1.exe' 'twain.exe'",
" Remove-Item 'lib\\gimp\\2.0\\plug-ins\\twain\\twain,3.exe'",
" Get-ChildItem -Filter '*,1*' -Recurse | Remove-Item",
" Get-ChildItem -Filter '*,*' -Recurse | Rename-Item -NewName { $_.name -Replace ',\\d','' }",
"}",
"$pyenv = Get-Content 'lib\\gimp\\2.0\\environ\\pygimp.env' -Raw",
"$pyenv + '__COMPAT_LAYER=HIGHDPIAWARE' | Set-Content 'lib\\gimp\\2.0\\environ\\pygimp.env'",
"$pyint = Get-Content 'lib\\gimp\\2.0\\interpreters\\pygimp.interp' -Raw",
"$pyint = $pyint -Replace '(python|python2)=(.*)', \"`$1=$dir\\bin\\pythonw.exe\"",
"$pyint = $pyint -Replace 'py::python2', 'py::python'",
"$pyint | Set-Content 'lib\\gimp\\2.0\\interpreters\\pygimp.interp'",
"Pop-Location",
"Copy-Item \"$bucketsdir\\extras\\scripts\\gimp\\default.env\" \"$dir\\lib\\gimp\\2.0\\environ\\\" | Out-Null"
]
},
"bin": [
"bin\\gimp-console-2.10.exe",
[
"bin\\gimp-console-2.10.exe",
"gimp-console"
],
[
"bin\\gimp-console-2.10.exe",
"gimp"
],
"bin\\gimptool-2.0.exe",
[
"bin\\gimptool-2.0.exe",
"gimptool"
]
],
"shortcuts": [
[
"bin\\gimp-2.10.exe",
"GIMP"
]
],
"checkver": {
"url": "https://www.gimp.org/downloads/",
"regex": "gimp-(?<version>[\\d.]+)-setup(?<build>-\\d)?\\.exe",
"replace": "${version}${build}"
},
"autoupdate": {
"url": "https://download.gimp.org/mirror/pub/gimp/v$majorVersion.$minorVersion/windows/gimp-$matchHead-setup$matchTail.exe",
"hash": {
"url": "$baseurl/SHA256SUMS"
}
}
}