@@ -34,7 +34,6 @@ sign_macos() {
34
34
if [[ " ${_is_mono} " == " 1" ]]; then
35
35
_appname=" Godot_mono.app"
36
36
_sharpdir=" ${_appname} /Contents/Resources/GodotSharp"
37
- _extra_files=" ${_sharpdir} /Mono/lib/*.dylib ${_sharpdir} /Tools/aot-compilers/*/*"
38
37
else
39
38
_appname=" Godot.app"
40
39
fi
@@ -46,7 +45,7 @@ sign_macos() {
46
45
unzip ${_binname} .zip && \
47
46
codesign --force --timestamp \
48
47
--options=runtime --entitlements editor.entitlements \
49
- -s ${OSX_KEY_ID} -v ${_extra_files} ${ _appname} && \
48
+ -s ${OSX_KEY_ID} -v ${_appname} && \
50
49
zip -r ${_binname} _signed.zip ${_appname} "
51
50
52
51
_request_uuid=$( ssh " ${OSX_HOST} " " xcrun altool --notarize-app --primary-bundle-id \" ${OSX_BUNDLE_ID} \" --username \" ${APPLE_ID} \" --password \" ${APPLE_ID_PASSWORD} \" --file ${_macos_tmpdir} /${_binname} _signed.zip" )
@@ -76,17 +75,13 @@ sign_macos_template() {
76
75
_reldir=" $1 "
77
76
_is_mono=" $2 "
78
77
79
- if [[ " ${_is_mono} " == " 1" ]]; then
80
- _extra_files=" macos_template.app/Contents/Resources/data.mono.*/Mono/lib/*.dylib"
81
- fi
82
-
83
78
scp " ${_reldir} /macos.zip" " ${OSX_HOST} :${_macos_tmpdir} "
84
79
ssh " ${OSX_HOST} " "
85
80
cd ${_macos_tmpdir} && \
86
81
unzip macos.zip && \
87
82
codesign --force -s - \
88
83
--options=linker-signed \
89
- -v ${_extra_files} macos_template.app/Contents/MacOS/* && \
84
+ -v macos_template.app/Contents/MacOS/* && \
90
85
zip -r macos_signed.zip macos_template.app"
91
86
92
87
scp " ${OSX_HOST} :${_macos_tmpdir} /macos_signed.zip" " ${_reldir} /macos.zip"
@@ -354,7 +349,6 @@ if [ "${build_mono}" == "1" ]; then
354
349
cp out/linux/x86_64/tools-mono/godot.linuxbsd.opt.tools.x86_64.mono ${binbasename} _x86_64/${binbasename} .x86_64
355
350
strip ${binbasename} _x86_64/${binbasename} .x86_64
356
351
cp -rp out/linux/x86_64/tools-mono/GodotSharp ${binbasename} _x86_64/
357
- cp -rp out/aot-compilers ${binbasename} _x86_64/GodotSharp/Tools/
358
352
zip -r -q -9 " ${reldir_mono} /${binbasename} _x86_64.zip" ${binbasename} _x86_64
359
353
rm -rf ${binbasename} _x86_64
360
354
@@ -363,22 +357,16 @@ if [ "${build_mono}" == "1" ]; then
363
357
cp out/linux/x86_32/tools-mono/godot.linuxbsd.opt.tools.x86_32.mono ${binbasename} _x86_32/${binbasename} .x86_32
364
358
strip ${binbasename} _x86_32/${binbasename} .x86_32
365
359
cp -rp out/linux/x86_32/tools-mono/GodotSharp/ ${binbasename} _x86_32/
366
- cp -rp out/aot-compilers ${binbasename} _x86_32/GodotSharp/Tools/
367
360
zip -r -q -9 " ${reldir_mono} /${binbasename} _x86_32.zip" ${binbasename} _x86_32
368
361
rm -rf ${binbasename} _x86_32
369
362
370
363
# Templates
371
- cp -rp out/linux/x86_64/templates-mono/data.mono.linuxbsd.x86_64.* ${templatesdir_mono} /
372
364
cp out/linux/x86_64/templates-mono/godot.linuxbsd.opt.debug.x86_64.mono ${templatesdir_mono} /linux_debug.x86_64
373
365
cp out/linux/x86_64/templates-mono/godot.linuxbsd.opt.x86_64.mono ${templatesdir_mono} /linux_release.x86_64
374
- cp -rp out/linux/x86_32/templates-mono/data.mono.linuxbsd.x86_32.* ${templatesdir_mono} /
375
366
cp out/linux/x86_32/templates-mono/godot.linuxbsd.opt.debug.x86_32.mono ${templatesdir_mono} /linux_debug.x86_32
376
367
cp out/linux/x86_32/templates-mono/godot.linuxbsd.opt.x86_32.mono ${templatesdir_mono} /linux_release.x86_32
377
368
strip ${templatesdir_mono} /linux*
378
369
379
- mkdir -p ${templatesdir_mono} /bcl
380
- cp -r out/linux/x86_64/tools-mono/GodotSharp/Mono/lib/mono/4.5/ ${templatesdir_mono} /bcl/net_4_x
381
-
382
370
# # Windows (Mono) ##
383
371
384
372
# Editor
@@ -389,7 +377,6 @@ if [ "${build_mono}" == "1" ]; then
389
377
strip ${binname} /${binname} .exe
390
378
sign_windows ${binname} /${binname} .exe
391
379
cp -rp out/windows/x86_64/tools-mono/GodotSharp ${binname} /
392
- cp -rp out/aot-compilers ${binname} /GodotSharp/Tools/
393
380
echo " @echo off" > ${batname}
394
381
echo ${binname} .exe >> ${batname}
395
382
echo " pause > nul" >> ${batname}
@@ -404,7 +391,6 @@ if [ "${build_mono}" == "1" ]; then
404
391
strip ${binname} /${binname} .exe
405
392
sign_windows ${binname} /${binname} .exe
406
393
cp -rp out/windows/x86_32/tools-mono/GodotSharp ${binname} /
407
- cp -rp out/aot-compilers ${binname} /GodotSharp/Tools/
408
394
echo " @echo off" > ${batname}
409
395
echo ${binname} .exe >> ${batname}
410
396
echo " pause > nul" >> ${batname}
@@ -413,17 +399,12 @@ if [ "${build_mono}" == "1" ]; then
413
399
rm -rf ${binname}
414
400
415
401
# Templates
416
- cp -rp out/windows/x86_64/templates-mono/data.mono.windows.x86_64.* ${templatesdir_mono} /
417
402
cp out/windows/x86_64/templates-mono/godot.windows.opt.debug.x86_64.mono.exe ${templatesdir_mono} /windows_debug_x86_64.exe
418
403
cp out/windows/x86_64/templates-mono/godot.windows.opt.x86_64.mono.exe ${templatesdir_mono} /windows_release_x86_64.exe
419
- cp -rp out/windows/x86_32/templates-mono/data.mono.windows.x86_32.* ${templatesdir_mono} /
420
404
cp out/windows/x86_32/templates-mono/godot.windows.opt.debug.x86_32.mono.exe ${templatesdir_mono} /windows_debug_x86_32.exe
421
405
cp out/windows/x86_32/templates-mono/godot.windows.opt.x86_32.mono.exe ${templatesdir_mono} /windows_release_x86_32.exe
422
406
strip ${templatesdir_mono} /windows* .exe
423
407
424
- mkdir -p ${templatesdir_mono} /bcl
425
- cp -r out/windows/x86_64/tools-mono/GodotSharp/Mono/lib/mono/4.5/ ${templatesdir_mono} /bcl/net_4_x_win
426
-
427
408
# # macOS (Mono) ##
428
409
429
410
# Editor
@@ -433,7 +414,6 @@ if [ "${build_mono}" == "1" ]; then
433
414
mkdir -p Godot_mono.app/Contents/{MacOS,Resources}
434
415
cp out/macos/tools-mono/godot.macos.opt.tools.universal.mono Godot_mono.app/Contents/MacOS/Godot
435
416
cp -rp out/macos/tools-mono/GodotSharp Godot_mono.app/Contents/Resources/GodotSharp
436
- cp -rp out/aot-compilers Godot_mono.app/Contents/Resources/GodotSharp/Tools/
437
417
chmod +x Godot_mono.app/Contents/MacOS/Godot
438
418
zip -q -9 -r " ${reldir_mono} /${binname} .zip" Godot_mono.app
439
419
rm -rf Godot_mono.app
@@ -445,12 +425,15 @@ if [ "${build_mono}" == "1" ]; then
445
425
mkdir -p macos_template.app/Contents/{MacOS,Resources}
446
426
cp out/macos/templates-mono/godot.macos.opt.debug.universal.mono macos_template.app/Contents/MacOS/godot_macos_debug.universal
447
427
cp out/macos/templates-mono/godot.macos.opt.universal.mono macos_template.app/Contents/MacOS/godot_macos_release.universal
448
- cp -rp out/macos/templates-mono/data.mono.macos.* macos_template.app/Contents/Resources/
449
428
chmod +x macos_template.app/Contents/MacOS/godot_macos*
450
429
zip -q -9 -r " ${templatesdir_mono} /macos.zip" macos_template.app
451
430
rm -rf macos_template.app
452
431
sign_macos_template ${templatesdir_mono} 1
453
432
433
+ # No .NET support for those platforms yet.
434
+
435
+ if false ; then
436
+
454
437
# # Web (Mono) ##
455
438
456
439
# Templates
@@ -462,18 +445,10 @@ if [ "${build_mono}" == "1" ]; then
462
445
# Lib for direct download
463
446
cp out/android/templates-mono/godot-lib.release.aar ${reldir_mono} /godot-lib.${templates_version} .mono.release.aar
464
447
465
- # Editor
466
- # binname="${godot_basename}_mono_android_editor.apk"
467
- # cp out/android/tools-mono/android_editor.apk ${reldir_mono}/${binname}
468
-
469
448
# Templates
470
449
cp out/android/templates-mono/* .apk ${templatesdir_mono} /
471
450
cp out/android/templates-mono/android_source.zip ${templatesdir_mono} /
472
451
473
- mkdir -p ${templatesdir_mono} /bcl
474
- cp -r out/android/templates-mono/bcl/godot_android_ext ${templatesdir_mono} /bcl/
475
- cp -r out/android/templates-mono/bcl/monodroid ${templatesdir_mono} /bcl/
476
-
477
452
# # iOS (Mono) ##
478
453
479
454
rm -rf ios_xcode
@@ -489,13 +464,7 @@ if [ "${build_mono}" == "1" ]; then
489
464
cd ..
490
465
rm -rf ios_xcode
491
466
492
- mkdir -p ${templatesdir_mono} /bcl
493
- cp -r out/ios/templates-mono/bcl/monotouch* ${templatesdir_mono} /bcl/
494
- cp -r out/ios/templates-mono/ios-mono-libs ${templatesdir_mono}
495
-
496
- # ## UWP (Mono) ##
497
- #
498
- # # Not supported yet.
467
+ fi
499
468
500
469
# # Templates TPZ (Mono) ##
501
470
0 commit comments