Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2025-02-17 11:21:01 +00:00
parent 21084af22f
commit 360bda6d4f
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D

View File

@ -86,7 +86,7 @@ jobs:
- name: Windows (x86) Squirrel - name: Windows (x86) Squirrel
os: windows-2022 os: windows-2022
artifact: win-ia32 artifact: win-ia32
executable: "$LOCALAPPDATA/element-desktop/app-*/Element.exe" executable: "$LOCALAPPDATA/element-desktop/app-1.11.92/Element.exe"
prepare_cmd: | prepare_cmd: |
. "./dist/squirrel-windows*/Element Setup*.exe" . "./dist/squirrel-windows*/Element Setup*.exe"
Start-Sleep -Seconds 30 Start-Sleep -Seconds 30
@ -100,7 +100,7 @@ jobs:
- name: Windows (x64) Squirrel - name: Windows (x64) Squirrel
os: windows-2022 os: windows-2022
artifact: win-x64 artifact: win-x64
executable: "$LOCALAPPDATA/element-desktop/app-*/Element.exe" executable: "$LOCALAPPDATA/element-desktop/app-1.11.92/Element.exe"
prepare_cmd: | prepare_cmd: |
. "./dist/squirrel-windows*/Element Setup*.exe" . "./dist/squirrel-windows*/Element Setup*.exe"
Start-Sleep -Seconds 30 Start-Sleep -Seconds 30
@ -136,17 +136,8 @@ jobs:
# We previously disabled the `EnableNodeCliInspectArguments` fuse, but Playwright requires # We previously disabled the `EnableNodeCliInspectArguments` fuse, but Playwright requires
# it to be enabled to test Electron apps, so turn it back on. # it to be enabled to test Electron apps, so turn it back on.
- name: Set EnableNodeCliInspectArguments fuse enabled - name: Set EnableNodeCliInspectArguments fuse enabled
run: $RUN_AS npx @electron/fuses write --app "${{ matrix.executable }}" EnableNodeCliInspectArguments=on run: sudo npx @electron/fuses write --app "${{ matrix.executable }}" EnableNodeCliInspectArguments=on
shell: bash shell: bash
env:
# We need sudo on Linux as it is installed in /opt/
RUN_AS: ${{ runner.os == 'Linux' && 'sudo' || '' }}
- name: Workaround macOS GHA permission issues
if: runner.os == 'macOS'
run: |
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);"
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/opt/off/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);"
- name: Run tests - name: Run tests
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a