Skip to content

Commit 7b34c19

Browse files
committed
Add '32bit' to gimp.json
1 parent d57e676 commit 7b34c19

File tree

1 file changed

+49
-29
lines changed

1 file changed

+49
-29
lines changed

bucket/gimp.json

Lines changed: 49 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,55 @@
55
"version": "2.10.14",
66
"url": "https://download.gimp.org/mirror/pub/gimp/v2.10/windows/gimp-2.10.14-setup.exe",
77
"hash": "6de7f8722a0601e821c6cbfe3fc8b5055fb32d59d2b64fbdbd19f7dcf5a4b8e9",
8-
"installer": {
9-
"type": "inno",
10-
"include": [
11-
"gimp32on64",
12-
"gs",
13-
"py"
14-
],
15-
"exclude": [
16-
"gimp32",
17-
"deps32",
18-
"debug",
19-
"{sys}"
20-
],
21-
"script": [
22-
"$defpath = \"`nPATH=`${gimp_installation_dir}\\bin\"",
23-
"if ($architecture -eq '64bit') {",
24-
" $defpath += \"`${gimp_installation_dir}\\32\\bin\"",
25-
"}",
26-
"$defenv = Get-Content \"$dir\\lib\\gimp\\2.0\\environ\\default.env\" -Raw",
27-
"$defenv += $defpath",
28-
"$defenv += 'PYTHONPATH=${gimp_installation_dir}\\lib\\gimp\\2.0\\python;${gimp_plug_in_dir}\\plug-ins\\python-console'",
29-
"$defenv | Set-Content \"$dir\\lib\\gimp\\2.0\\environ\\default.env\"",
30-
"$pyenv = Get-Content \"$dir\\lib\\gimp\\2.0\\environ\\pygimp.env\" -Raw",
31-
"$pyenv += '__COMPAT_LAYER=HIGHDPIAWARE'",
32-
"$pyenv | Set-Content \"$dir\\lib\\gimp\\2.0\\environ\\pygimp.env\"",
33-
"$pyint = Get-Content \"$dir\\lib\\gimp\\2.0\\interpreters\\pygimp.interp\" -Raw",
34-
"$pyint = ($pyint -Replace '/mingw32', \"$dir\\bin\") -Replace 'py::python2', 'py::python'",
35-
"$pyint | Set-Content \"$dir\\lib\\gimp\\2.0\\interpreters\\pygimp.interp\""
36-
]
8+
"architecture": {
9+
"64bit": {
10+
"installer": {
11+
"type": "inno",
12+
"include": "gimp32on64",
13+
"exclude": [
14+
"gimp32",
15+
"deps32",
16+
"debug",
17+
"{sys}"
18+
],
19+
"script": [
20+
"$defenv = Get-Content \"$dir\\lib\\gimp\\2.0\\environ\\default.env\" -Raw",
21+
"$defenv += \"`nPATH=`${gimp_installation_dir}\\bin;`${gimp_installation_dir}\\32\\bin`n\"",
22+
"$defenv += 'PYTHONPATH=${gimp_installation_dir}\\lib\\gimp\\2.0\\python;${gimp_plug_in_dir}\\plug-ins\\python-console'",
23+
"$defenv | Set-Content \"$dir\\lib\\gimp\\2.0\\environ\\default.env\"",
24+
"$pyenv = Get-Content \"$dir\\lib\\gimp\\2.0\\environ\\pygimp.env\" -Raw",
25+
"$pyenv += '__COMPAT_LAYER=HIGHDPIAWARE'",
26+
"$pyenv | Set-Content \"$dir\\lib\\gimp\\2.0\\environ\\pygimp.env\"",
27+
"$pyint = Get-Content \"$dir\\lib\\gimp\\2.0\\interpreters\\pygimp.interp\" -Raw",
28+
"$pyint = ($pyint -Replace '/mingw32', \"$dir\\bin\") -Replace 'py::python2', 'py::python'",
29+
"$pyint | Set-Content \"$dir\\lib\\gimp\\2.0\\interpreters\\pygimp.interp\""
30+
]
31+
}
32+
},
33+
"32bit": {
34+
"installer": {
35+
"type": "inno",
36+
"exclude": [
37+
"gimp32on64",
38+
"gimp64",
39+
"deps64",
40+
"debug",
41+
"{sys}"
42+
],
43+
"script": [
44+
"$defenv = Get-Content \"$dir\\lib\\gimp\\2.0\\environ\\default.env\" -Raw",
45+
"$defenv += \"`nPATH=`${gimp_installation_dir}\\bin`n\"",
46+
"$defenv += 'PYTHONPATH=${gimp_installation_dir}\\lib\\gimp\\2.0\\python;${gimp_plug_in_dir}\\plug-ins\\python-console'",
47+
"$defenv | Set-Content \"$dir\\lib\\gimp\\2.0\\environ\\default.env\"",
48+
"$pyenv = Get-Content \"$dir\\lib\\gimp\\2.0\\environ\\pygimp.env\" -Raw",
49+
"$pyenv += '__COMPAT_LAYER=HIGHDPIAWARE'",
50+
"$pyenv | Set-Content \"$dir\\lib\\gimp\\2.0\\environ\\pygimp.env\"",
51+
"$pyint = Get-Content \"$dir\\lib\\gimp\\2.0\\interpreters\\pygimp.interp\" -Raw",
52+
"$pyint = ($pyint -Replace '/mingw32', \"$dir\\bin\") -Replace 'py::python2', 'py::python'",
53+
"$pyint | Set-Content \"$dir\\lib\\gimp\\2.0\\interpreters\\pygimp.interp\""
54+
]
55+
}
56+
}
3757
},
3858
"bin": [
3959
[

0 commit comments

Comments
 (0)