File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,31 @@ sign_macos() {
70
70
fi
71
71
}
72
72
73
+ sign_macos_template () {
74
+ if [ -z " ${OSX_HOST} " ]; then
75
+ return
76
+ fi
77
+ osx_tmpdir=$( ssh " ${OSX_HOST} " " mktemp -d" )
78
+ reldir=" $1 "
79
+ is_mono=" $2 "
80
+
81
+ if [[ " ${is_mono} " == " 1" ]]; then
82
+ extra_files=" osx_template.app/Contents/Resources/data.mono.*/Mono/lib/*.dylib"
83
+ fi
84
+
85
+ scp " ${reldir} /osx.zip" " ${OSX_HOST} :${osx_tmpdir} "
86
+ ssh " ${OSX_HOST} " "
87
+ cd ${osx_tmpdir} && \
88
+ unzip osx.zip && \
89
+ codesign --force -s - \
90
+ --options=linker-signed \
91
+ -v ${extra_files} osx_template.app/Contents/MacOS/* && \
92
+ zip -r osx_signed.zip osx_template.app"
93
+
94
+ scp " ${OSX_HOST} :${osx_tmpdir} /osx_signed.zip" ${reldir} /osx.zip
95
+ ssh " ${OSX_HOST} " " rm -rf ${osx_tmpdir} "
96
+ }
97
+
73
98
godot_version=" "
74
99
templates_version=" "
75
100
build_classical=1
@@ -209,6 +234,7 @@ if [ "${build_classical}" == "1" ]; then
209
234
chmod +x osx_template.app/Contents/MacOS/godot_osx*
210
235
zip -q -9 -r " ${templatesdir} /osx.zip" osx_template.app
211
236
rm -rf osx_template.app
237
+ sign_macos_template ${templatesdir} 0
212
238
213
239
# # Server (Classical) ##
214
240
@@ -414,6 +440,7 @@ if [ "${build_mono}" == "1" ]; then
414
440
chmod +x osx_template.app/Contents/MacOS/godot_osx*
415
441
zip -q -9 -r " ${templatesdir_mono} /osx.zip" osx_template.app
416
442
rm -rf osx_template.app
443
+ sign_macos_template ${templatesdir_mono} 1
417
444
418
445
# # Server (Mono) ##
419
446
You can’t perform that action at this time.
0 commit comments