Skip to content

Commit 4358d64

Browse files
Update pre-release.yml
1 parent 019fa98 commit 4358d64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/pre-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ jobs:
7777
security unlock-keychain -p "$RUNNER_PW"
7878
xcrun notarytool store-credentials CodeEdit --apple-id "$APPLE_ID" --team-id "$APPLE_TEAM_ID" --password "$APPLE_ID_PWD"
7979
cp "$RUNNER_TEMP/../CodeEdit/CodeEdit/Resources/dmgBackground.png" "$RUNNER_TEMP/.background.png"
80-
echo $RUNNER_PW | sudo -S create-dmg \
80+
epochdate=$(($(date +'%s * 1000 + %-N / 1000000')))
81+
tcc_service_appleevents="replace into access (service,client,client_type,auth_value,auth_reason,auth_version,indirect_object_identifier_type,indirect_object_identifier,flags,last_modified) values (\"kTCCServiceAppleEvents\",\"/usr/sbin/sshd\",1,2,4,1,0,\"com.apple.finder\",0,$epochdate);"
82+
sudo sqlite3 "/Users/distiller/Library/Application Support/com.apple.TCC/TCC.db" "$tcc_service_appleevents"
83+
create-dmg \
8184
--volname "CodeEdit" \
8285
--window-pos 200 120 \
8386
--window-size 699 518 \

0 commit comments

Comments
 (0)