forked from ScoopInstaller/Versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gimp-dev.json
96 lines (96 loc) · 4.14 KB
/
gimp-dev.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"version": "2.99.12",
"description": "GNU Image Manipulation Program",
"homepage": "https://www.gimp.org",
"license": "GPL-3.0-only",
"url": "https://download.gimp.org/mirror/pub/gimp/v2.99/windows/gimp-2.99.12-setup.exe",
"hash": "cb6ed7af28dd3e489c4697a85e815391e2f1bf2caadce50258cb660a35ea8241",
"innosetup": true,
"installer": {
"script": [
"$scriptver = ($fname -split '-' | Select-Object -First 1 -Skip 1).Split('.')",
"$shortver = $scriptver[0] + '.' + $scriptver[1]",
"Push-Location \"$dir\"",
"Get-ChildItem -Filter '*.debug' -Recurse | Remove-Item -Recurse",
"if ($architecture -eq '64bit') {",
" Rename-Item \"lib\\gimp\\$shortver\\plug-ins\\twain\\twain,3.exe\" 'twain.exe'",
" Remove-Item \"lib\\gimp\\$shortver\\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\\$shortver\\plug-ins\\twain\\twain,1.exe\" 'twain.exe'",
" Remove-Item \"lib\\gimp\\$shortver\\plug-ins\\twain\\twain,3.exe\"",
" Get-ChildItem -Filter '*,1*' -Recurse | Remove-Item",
" Get-ChildItem -Filter '*,*' -Recurse | Rename-Item -NewName { $_.name -Replace ',\\d','' }",
"}",
"$defpath = \"`nPATH=`${gimp_installation_dir}\\bin`n\"",
"$defenv = Get-Content \"lib\\gimp\\$shortver\\environ\\default.env\" -Raw",
"$defenv += $defpath",
"$defenv += \"PYTHONPATH=`${gimp_installation_dir}\\lib\\gimp\\$shortver\\python;`${gimp_plug_in_dir}\\plug-ins\\python-console\"",
"$defenv | Set-Content \"lib\\gimp\\$shortver\\environ\\default.env\"",
"# Only worked for versions <2.99, installer no longer supplies 'pygimp.env'",
"# $pyenv = (Get-Content \"lib\\gimp\\$shortver\\environ\\pygimp.env\" -Raw) + '__COMPAT_LAYER=HIGHDPIAWARE'",
"# $pyenv | Set-Content \"lib\\gimp\\$shortver\\environ\\pygimp.env\"",
"'__COMPAT_LAYER=HIGHDPIAWARE' | Set-Content \"lib\\gimp\\$shortver\\environ\\pygimp.env\"",
"$pyint = Get-Content \"lib\\gimp\\$shortver\\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\\$shortver\\interpreters\\pygimp.interp\"",
"Pop-Location"
]
},
"bin": [
"bin\\gimp-console-2.99.exe",
[
"bin\\gimp-console-2.99.exe",
"gimp-console"
],
[
"bin\\gimp-console-2.99.exe",
"gimp"
],
"bin\\gimptool-2.99.exe",
[
"bin\\gimptool-2.99.exe",
"gimptool"
]
],
"shortcuts": [
[
"bin\\gimp-2.99.exe",
"GIMP Development Version"
]
],
"checkver": {
"url": "https://testing.gimp.org/downloads/devel/",
"regex": "The current development release of GIMP is \\<b\\>([\\d.]+)"
},
"autoupdate": {
"url": "https://download.gimp.org/mirror/pub/gimp/v$majorVersion.$minorVersion/windows/gimp-$matchHead-setup$matchTail.exe",
"hash": {
"url": "$baseurl/SHA256SUMS"
},
"bin": [
"bin\\gimp-console-$majorVersion.$minorVersion.exe",
[
"bin\\gimp-console-$majorVersion.$minorVersion.exe",
"gimp-console"
],
[
"bin\\gimp-console-$majorVersion.$minorVersion.exe",
"gimp"
],
"bin\\gimptool-$majorVersion.$minorVersion.exe",
[
"bin\\gimptool-$majorVersion.$minorVersion.exe",
"gimptool"
]
],
"shortcuts": [
[
"bin\\gimp-$majorVersion.$minorVersion.exe",
"GIMP Development Version"
]
]
}
}