@@ -10,52 +10,21 @@ if [ -z $1 ]; then
10
10
fi
11
11
12
12
function sign {
13
- ./osslsigncode -pkcs12 REDACTED.pkcs12 -pass " REDACTED" -n " Godot Game Engine" -i " https://godotengine.org" -t http://timestamp.comodoca.com -in $1 -out $1 -signed
14
- mv $1 -signed $1
13
+ ./osslsigncode -pkcs12 REDACTED.pkcs12 -pass " REDACTED" -n " Godot Game Engine" -i " https://godotengine.org" -t http://timestamp.comodoca.com -in $1 -out $1 -signed
14
+ mv $1 -signed $1
15
15
}
16
16
17
17
export GODOT_VERSION=$1
18
18
19
19
# Tarball
20
+
20
21
mkdir -p release-${GODOT_VERSION}
21
22
rm -rf release-${GODOT_VERSION} /* .xz release-${GODOT_VERSION} /* .sha256
22
23
zcat godot.tar.gz | xz -c > release-${GODOT_VERSION} /godot-${GODOT_VERSION} .tar.xz
23
24
sha256sum release-${GODOT_VERSION} /godot-${GODOT_VERSION} .tar.xz > release-${GODOT_VERSION} /godot-${GODOT_VERSION} .tar.xz.sha256
24
25
25
- # Ubuntu-32
26
- mkdir -p templates
27
- rm -f templates/linux_x11_32*
28
-
29
- cp out/linux/x86/templates/godot.x11.opt.debug.32 templates/linux_x11_32_debug
30
- cp out/linux/x86/templates/godot.x11.opt.32 templates/linux_x11_32_release
31
-
32
- mkdir -p release-${GODOT_VERSION}
33
- rm -f release-${GODOT_VERSION} /* linux* 32*
34
-
35
- cp out/linux/x86/tools/godot.x11.opt.tools.32 Godot_v${GODOT_VERSION} _x11.32
36
- zip -q -9 Godot_v${GODOT_VERSION} _x11.32.zip Godot_v${GODOT_VERSION} _x11.32
37
- mv Godot_v${GODOT_VERSION} _x11.32.zip release-${GODOT_VERSION}
38
- rm Godot_v${GODOT_VERSION} _x11.32
39
-
40
- mkdir -p mono/release-${GODOT_VERSION}
41
- rm -rf mono/release-${GODOT_VERSION} /* linux* 32*
42
-
43
- mkdir -p Godot_v${GODOT_VERSION} _mono_x11_32
44
- cp out/linux/x86/tools-mono/godot.x11.opt.tools.32.mono Godot_v${GODOT_VERSION} _mono_x11_32/Godot_v${GODOT_VERSION} _mono_x11.32
45
- cp -rp out/linux/x86/tools-mono/GodotSharp/ Godot_v${GODOT_VERSION} _mono_x11_32
46
- cp -rp mono-glue/Api Godot_v${GODOT_VERSION} _mono_x11_32/GodotSharp/Api
47
- zip -r -q -9 Godot_v${GODOT_VERSION} _mono_x11_32.zip Godot_v${GODOT_VERSION} _mono_x11_32
48
- mv Godot_v${GODOT_VERSION} _mono_x11_32.zip mono/release-${GODOT_VERSION}
49
- rm -rf Godot_v${GODOT_VERSION} _mono_x11_32
50
-
51
- mkdir -p mono/templates
52
- rm -rf mono/templates/* linux* 32*
53
-
54
- cp -rp out/linux/x86/templates-mono/data.mono.x11.32.* mono/templates/
55
- cp out/linux/x86/templates-mono/godot.x11.opt.debug.32.mono mono/templates/linux_x11_32_debug
56
- cp out/linux/x86/templates-mono/godot.x11.opt.32.mono mono/templates/linux_x11_32_release
26
+ # Linux 64
57
27
58
- # Ubuntu-64
59
28
mkdir -p templates
60
29
rm -f templates/linux_x11_64*
61
30
@@ -88,54 +57,39 @@ cp -rp out/linux/x64/templates-mono/data.mono.x11.64.* mono/templates/
88
57
cp out/linux/x64/templates-mono/godot.x11.opt.debug.64.mono mono/templates/linux_x11_64_debug
89
58
cp out/linux/x64/templates-mono/godot.x11.opt.64.mono mono/templates/linux_x11_64_release
90
59
91
- # Server
92
-
93
- cp out/server/x64/templates/godot_server.x11.opt.64 Godot_v${GODOT_VERSION} _linux_server.64
94
- zip -q -9 Godot_v${GODOT_VERSION} _linux_server.64.zip Godot_v${GODOT_VERSION} _linux_server.64
95
- mv Godot_v${GODOT_VERSION} _linux_server.64.zip release-${GODOT_VERSION}
96
- rm Godot_v${GODOT_VERSION} _linux_server.64
60
+ # Linux 32
97
61
98
- cp out/server/x64/tools/godot_server.x11.opt.tools.64 Godot_v${GODOT_VERSION} _linux_headless.64
99
- zip -q -9 Godot_v${GODOT_VERSION} _linux_headless.64.zip Godot_v${GODOT_VERSION} _linux_headless.64
100
- mv Godot_v${GODOT_VERSION} _linux_headless.64.zip release-${GODOT_VERSION}
101
- rm Godot_v${GODOT_VERSION} _linux_headless.64
62
+ mkdir -p templates
63
+ rm -f templates/linux_x11_32*
102
64
103
- # UWP
104
- mkdir -p templates
105
- rm -f templates/uwp*
106
- rm -rf uwp_template_*
65
+ cp out/linux/x86/templates/godot.x11.opt.debug.32 templates/linux_x11_32_debug
66
+ cp out/linux/x86/templates/godot.x11.opt.32 templates/linux_x11_32_release
107
67
108
- for arch in ARM Win32 x64 ; do
109
- cp -r git/misc/dist/uwp_template uwp_template_ ${arch}
68
+ mkdir -p release- ${GODOT_VERSION}
69
+ rm -f release- ${GODOT_VERSION} / * linux * 32 *
110
70
111
- cp angle/winrt/10/src/Release_${arch} /libEGL.dll \
112
- angle/winrt/10/src/Release_${arch} /libGLESv2.dll \
113
- uwp_template_${arch} /
114
- cp -r uwp_template_${arch} uwp_template_${arch} _debug
115
- done
71
+ cp out/linux/x86/tools/godot.x11.opt.tools.32 Godot_v${GODOT_VERSION} _x11.32
72
+ zip -q -9 Godot_v${GODOT_VERSION} _x11.32.zip Godot_v${GODOT_VERSION} _x11.32
73
+ mv Godot_v${GODOT_VERSION} _x11.32.zip release-${GODOT_VERSION}
74
+ rm Godot_v${GODOT_VERSION} _x11.32
116
75
117
- cp out/uwp/arm/godot.uwp.opt.32.arm.exe uwp_template_ARM/godot.uwp.exe
118
- cp out/uwp/arm/godot.uwp.opt.debug.32.arm.exe uwp_template_ARM_debug/godot.uwp.exe
119
- sign uwp_template_ARM/godot.uwp.exe
120
- sign uwp_template_ARM_debug/godot.uwp.exe
121
- cd uwp_template_ARM && zip -q -9 -r ../templates/uwp_arm_release.zip * && cd ..
122
- cd uwp_template_ARM_debug && zip -q -9 -r ../templates/uwp_arm_debug.zip * && cd ..
76
+ mkdir -p mono/release-${GODOT_VERSION}
77
+ rm -rf mono/release-${GODOT_VERSION} /* linux* 32*
123
78
124
- cp out/uwp/x86/godot.uwp.opt.32.x86.exe uwp_template_Win32/godot.uwp.exe
125
- cp out/uwp/x86/godot.uwp.opt.debug.32.x86.exe uwp_template_Win32_debug/godot.uwp.exe
126
- sign uwp_template_Win32/godot.uwp.exe
127
- sign uwp_template_Win32_debug/godot.uwp.exe
128
- cd uwp_template_Win32 && zip -q -9 -r ../templates/uwp_x86_release.zip * && cd ..
129
- cd uwp_template_Win32_debug && zip -q -9 -r ../templates/uwp_x86_debug.zip * && cd ..
79
+ mkdir -p Godot_v${GODOT_VERSION} _mono_x11_32
80
+ cp out/linux/x86/tools-mono/godot.x11.opt.tools.32.mono Godot_v${GODOT_VERSION} _mono_x11_32/Godot_v${GODOT_VERSION} _mono_x11.32
81
+ cp -rp out/linux/x86/tools-mono/GodotSharp/ Godot_v${GODOT_VERSION} _mono_x11_32
82
+ cp -rp mono-glue/Api Godot_v${GODOT_VERSION} _mono_x11_32/GodotSharp/Api
83
+ zip -r -q -9 Godot_v${GODOT_VERSION} _mono_x11_32.zip Godot_v${GODOT_VERSION} _mono_x11_32
84
+ mv Godot_v${GODOT_VERSION} _mono_x11_32.zip mono/release-${GODOT_VERSION}
85
+ rm -rf Godot_v${GODOT_VERSION} _mono_x11_32
130
86
131
- cp out/uwp/x64/godot.uwp.opt.64.x64.exe uwp_template_x64/godot.uwp.exe
132
- cp out/uwp/x64/godot.uwp.opt.debug.64.x64.exe uwp_template_x64_debug/godot.uwp.exe
133
- sign uwp_template_x64/godot.uwp.exe
134
- sign uwp_template_x64_debug/godot.uwp.exe
135
- cd uwp_template_x64 && zip -q -9 -r ../templates/uwp_x64_release.zip * && cd ..
136
- cd uwp_template_x64_debug && zip -q -9 -r ../templates/uwp_x64_debug.zip * && cd ..
87
+ mkdir -p mono/templates
88
+ rm -rf mono/templates/* linux* 32*
137
89
138
- rm -rf uwp_template_*
90
+ cp -rp out/linux/x86/templates-mono/data.mono.x11.32.* mono/templates/
91
+ cp out/linux/x86/templates-mono/godot.x11.opt.debug.32.mono mono/templates/linux_x11_32_debug
92
+ cp out/linux/x86/templates-mono/godot.x11.opt.32.mono mono/templates/linux_x11_32_release
139
93
140
94
# Windows
141
95
@@ -280,6 +234,27 @@ chmod +x Godot_mono.app/Contents/MacOS/Godot
280
234
zip -q -9 -r " mono/release-${GODOT_VERSION} /Godot_v${GODOT_VERSION} _mono_osx.64.zip" Godot_mono.app
281
235
rm -rf Godot_mono.app
282
236
237
+ # Server
238
+
239
+ cp out/server/x64/templates/godot_server.x11.opt.64 Godot_v${GODOT_VERSION} _linux_server.64
240
+ zip -q -9 Godot_v${GODOT_VERSION} _linux_server.64.zip Godot_v${GODOT_VERSION} _linux_server.64
241
+ mv Godot_v${GODOT_VERSION} _linux_server.64.zip release-${GODOT_VERSION}
242
+ rm Godot_v${GODOT_VERSION} _linux_server.64
243
+
244
+ cp out/server/x64/tools/godot_server.x11.opt.tools.64 Godot_v${GODOT_VERSION} _linux_headless.64
245
+ zip -q -9 Godot_v${GODOT_VERSION} _linux_headless.64.zip Godot_v${GODOT_VERSION} _linux_headless.64
246
+ mv Godot_v${GODOT_VERSION} _linux_headless.64.zip release-${GODOT_VERSION}
247
+ rm Godot_v${GODOT_VERSION} _linux_headless.64
248
+
249
+ # Javascript
250
+
251
+ cp out/javascript/godot.javascript.opt.zip templates/webassembly_release.zip
252
+ cp out/javascript/godot.javascript.opt.debug.zip templates/webassembly_debug.zip
253
+
254
+ # Android
255
+
256
+ cp out/android/* .apk templates
257
+
283
258
# iOS
284
259
285
260
cp -r git/misc/dist/ios_xcode ios_xcode
@@ -292,11 +267,42 @@ zip -q -9 -r ../templates/iphone.zip *
292
267
cd ..
293
268
rm -rf ios_xcode
294
269
295
- # Android
296
- cp out/android/* .apk templates
270
+ # UWP
297
271
298
- # Javascript
299
- cp out/javascript/godot.javascript.opt.zip templates/webassembly_release.zip
300
- cp out/javascript/godot.javascript.opt.debug.zip templates/webassembly_debug.zip
272
+ mkdir -p templates
273
+ rm -f templates/uwp*
274
+ rm -rf uwp_template_*
275
+
276
+ for arch in ARM Win32 x64; do
277
+ cp -r git/misc/dist/uwp_template uwp_template_${arch}
278
+
279
+ cp angle/winrt/10/src/Release_${arch} /libEGL.dll \
280
+ angle/winrt/10/src/Release_${arch} /libGLESv2.dll \
281
+ uwp_template_${arch} /
282
+ cp -r uwp_template_${arch} uwp_template_${arch} _debug
283
+ done
284
+
285
+ cp out/uwp/arm/godot.uwp.opt.32.arm.exe uwp_template_ARM/godot.uwp.exe
286
+ cp out/uwp/arm/godot.uwp.opt.debug.32.arm.exe uwp_template_ARM_debug/godot.uwp.exe
287
+ sign uwp_template_ARM/godot.uwp.exe
288
+ sign uwp_template_ARM_debug/godot.uwp.exe
289
+ cd uwp_template_ARM && zip -q -9 -r ../templates/uwp_arm_release.zip * && cd ..
290
+ cd uwp_template_ARM_debug && zip -q -9 -r ../templates/uwp_arm_debug.zip * && cd ..
291
+
292
+ cp out/uwp/x86/godot.uwp.opt.32.x86.exe uwp_template_Win32/godot.uwp.exe
293
+ cp out/uwp/x86/godot.uwp.opt.debug.32.x86.exe uwp_template_Win32_debug/godot.uwp.exe
294
+ sign uwp_template_Win32/godot.uwp.exe
295
+ sign uwp_template_Win32_debug/godot.uwp.exe
296
+ cd uwp_template_Win32 && zip -q -9 -r ../templates/uwp_x86_release.zip * && cd ..
297
+ cd uwp_template_Win32_debug && zip -q -9 -r ../templates/uwp_x86_debug.zip * && cd ..
298
+
299
+ cp out/uwp/x64/godot.uwp.opt.64.x64.exe uwp_template_x64/godot.uwp.exe
300
+ cp out/uwp/x64/godot.uwp.opt.debug.64.x64.exe uwp_template_x64_debug/godot.uwp.exe
301
+ sign uwp_template_x64/godot.uwp.exe
302
+ sign uwp_template_x64_debug/godot.uwp.exe
303
+ cd uwp_template_x64 && zip -q -9 -r ../templates/uwp_x64_release.zip * && cd ..
304
+ cd uwp_template_x64_debug && zip -q -9 -r ../templates/uwp_x64_debug.zip * && cd ..
305
+
306
+ rm -rf uwp_template_*
301
307
302
308
exit 0
0 commit comments