Skip to content

Commit 48571c3

Browse files
committed
Add macOS Ad-hoc Codesigning to workflow
1 parent d114eca commit 48571c3

File tree

2 files changed

+32
-23
lines changed

2 files changed

+32
-23
lines changed

.github/workflows/builds.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ jobs:
114114
if: ${{ matrix.platform == 'windows' }}
115115
run: |
116116
Remove-Item game/bin/openvic/* -Include *.exp,*.lib,*.pdb -Force
117+
118+
- name: Sign Binary
119+
if: ${{ matrix.platform == 'macos' }}
120+
uses: OpenVicProject/apple-code-sign-action@main
121+
with:
122+
input_path: ${{ github.workspace }}/game/bin/openvic/*
117123

118124
- name: Upload extension artifact
119125
uses: actions/upload-artifact@v3

game/export_presets.cfg

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ encryption_include_filters=""
1313
encryption_exclude_filters=""
1414
encrypt_pck=false
1515
encrypt_directory=false
16-
script_encryption_key=""
1716

1817
[preset.0.options]
1918

2019
custom_template/debug=""
2120
custom_template/release=""
22-
debug/export_console_script=1
21+
debug/export_console_wrapper=1
2322
binary_format/embed_pck=false
2423
texture_format/bptc=false
2524
texture_format/s3tc=true
@@ -38,6 +37,7 @@ unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
3837
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
3938
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
4039
rm -rf \"{temp_dir}\""
40+
debug/export_console_script=1
4141

4242
[preset.1]
4343

@@ -54,23 +54,19 @@ encryption_include_filters=""
5454
encryption_exclude_filters=""
5555
encrypt_pck=false
5656
encrypt_directory=false
57-
script_encryption_key=""
5857

5958
[preset.1.options]
6059

6160
custom_template/debug=""
6261
custom_template/release=""
63-
debug/export_console_script=1
62+
debug/export_console_wrapper=1
6463
binary_format/embed_pck=false
6564
texture_format/bptc=false
6665
texture_format/s3tc=true
6766
texture_format/etc=false
6867
texture_format/etc2=false
6968
binary_format/architecture="x86_64"
7069
codesign/enable=false
71-
codesign/identity_type=0
72-
codesign/identity=""
73-
codesign/password=""
7470
codesign/timestamp=true
7571
codesign/timestamp_server_url=""
7672
codesign/digest_algorithm=1
@@ -87,6 +83,7 @@ application/product_name=""
8783
application/file_description=""
8884
application/copyright=""
8985
application/trademarks=""
86+
application/export_angle=0
9087
ssh_remote_deploy/enabled=false
9188
ssh_remote_deploy/host="user@host_ip"
9289
ssh_remote_deploy/port="22"
@@ -104,6 +101,7 @@ Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorActi
104101
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
105102
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
106103
Remove-Item -Recurse -Force '{temp_dir}'"
104+
debug/export_console_script=1
107105

108106
[preset.2]
109107

@@ -120,14 +118,14 @@ encryption_include_filters=""
120118
encryption_exclude_filters=""
121119
encrypt_pck=false
122120
encrypt_directory=false
123-
script_encryption_key=""
124121

125122
[preset.2.options]
126123

124+
export/distribution_type=1
127125
binary_format/architecture="universal"
128126
custom_template/debug=""
129127
custom_template/release=""
130-
debug/export_console_script=1
128+
debug/export_console_wrapper=1
131129
application/icon=""
132130
application/icon_interpolation=4
133131
application/bundle_identifier="com.openvic.openvic"
@@ -137,24 +135,32 @@ application/short_version="0.1"
137135
application/version="0.1"
138136
application/copyright=""
139137
application/copyright_localized={}
138+
application/min_macos_version="10.12"
139+
application/export_angle=0
140140
display/high_res=false
141-
codesign/codesign=0
141+
xcode/platform_build="14C18"
142+
xcode/sdk_version="13.1"
143+
xcode/sdk_build="22C55"
144+
xcode/sdk_name="macosx13.1"
145+
xcode/xcode_version="1420"
146+
xcode/xcode_build="14C18"
147+
codesign/codesign=1
148+
codesign/installer_identity=""
149+
codesign/apple_team_id=""
142150
codesign/identity=""
143-
codesign/certificate_file=""
144-
codesign/certificate_password=""
145151
codesign/entitlements/custom_file=""
146-
codesign/entitlements/allow_jit_code_execution=false
147-
codesign/entitlements/allow_unsigned_executable_memory=false
148-
codesign/entitlements/allow_dyld_environment_variables=false
149-
codesign/entitlements/disable_library_validation=false
152+
codesign/entitlements/allow_jit_code_execution=true
153+
codesign/entitlements/allow_unsigned_executable_memory=true
154+
codesign/entitlements/allow_dyld_environment_variables=true
155+
codesign/entitlements/disable_library_validation=true
150156
codesign/entitlements/audio_input=false
151157
codesign/entitlements/camera=false
152158
codesign/entitlements/location=false
153159
codesign/entitlements/address_book=false
154160
codesign/entitlements/calendars=false
155161
codesign/entitlements/photos_library=false
156162
codesign/entitlements/apple_events=false
157-
codesign/entitlements/debugging=false
163+
codesign/entitlements/debugging=true
158164
codesign/entitlements/app_sandbox/enabled=false
159165
codesign/entitlements/app_sandbox/network_server=false
160166
codesign/entitlements/app_sandbox/network_client=false
@@ -164,15 +170,10 @@ codesign/entitlements/app_sandbox/files_downloads=0
164170
codesign/entitlements/app_sandbox/files_pictures=0
165171
codesign/entitlements/app_sandbox/files_music=0
166172
codesign/entitlements/app_sandbox/files_movies=0
173+
codesign/entitlements/app_sandbox/files_user_selected=0
167174
codesign/entitlements/app_sandbox/helper_executables=[]
168175
codesign/custom_options=PackedStringArray()
169176
notarization/notarization=0
170-
notarization/apple_id_name=""
171-
notarization/apple_id_password=""
172-
notarization/apple_team_id=""
173-
notarization/api_uuid=""
174-
notarization/api_key=""
175-
notarization/api_key_id=""
176177
privacy/microphone_usage_description=""
177178
privacy/microphone_usage_description_localized={}
178179
privacy/camera_usage_description=""
@@ -206,3 +207,5 @@ open \"{temp_dir}/{exe_name}.app\" --args {cmd_args}"
206207
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
207208
kill $(pgrep -x -f \"{temp_dir}/{exe_name}.app/Contents/MacOS/{exe_name} {cmd_args}\")
208209
rm -rf \"{temp_dir}\""
210+
debug/export_console_script=1
211+
notarization/apple_team_id=""

0 commit comments

Comments
 (0)