Samuel Attard 10 months ago
parent
commit
9f42ca2c58
1 changed files with 8 additions and 8 deletions
  1. 8 8
      .github/workflows/pipeline-segment-electron-test.yml

+ 8 - 8
.github/workflows/pipeline-segment-electron-test.yml

@@ -45,11 +45,6 @@ jobs:
       if: ${{ inputs.target-arch == 'arm' }}
       run: |
         cp $(which node) /mnt/runner-externals/node20/bin/
-    - name: Setup tmate session
-      if: ${{ inputs.target-platform == 'macos' }}
-      uses: mxschmitt/action-tmate@v3
-      with:
-        limit-access-to-actor: true
     - name: Add TCC permissions on macOS
       if: ${{ inputs.target-platform == 'macos' }}
       run: |
@@ -68,14 +63,19 @@ jobs:
         }
 
         userValuesArray=(
-          "'kTCCServiceBluetoothAlways','/bin/bash',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1583997993"
-          "'kTCCServiceMicrophone','/bin/bash',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1583997993"
-          "'kTCCServiceCamera','/bin/bash',1,2,0,1,NULL,NULL,NULL,'UNUSED',NULL,0,1583997993"
+            "'kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159"
+            "'kTCCServiceCamera','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159"
+            "'kTCCServiceBluetoothAlways','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159"
         )
         for values in "${userValuesArray[@]}"; do
           configure_user_tccdb "$values,NULL,NULL,'UNUSED',${values##*,}"
           configure_sys_tccdb "$values,NULL,NULL,'UNUSED',${values##*,}"
         done
+    - name: Setup tmate session
+      if: ${{ inputs.target-platform == 'macos' }}
+      uses: mxschmitt/action-tmate@v3
+      with:
+        limit-access-to-actor: true
     - name: Checkout Electron
       uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
       with: