Skip to content

Commit

Permalink
Try to bundle msedgdriver.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Mar 27, 2024
1 parent 627d131 commit 4e180dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
*.gif binary
*.7z binary
*.ico binary
*.webp binary
*.webp binary
*.exe binary
14 changes: 7 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ jobs:
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Update to Evergreen WebView2 Runtime
shell: pwsh
# See here: https://developer.microsoft.com/en-us/microsoft-edge/webview2/
# https://github.com/actions/runner-images/issues/9538
run: |
Invoke-WebRequest -Uri 'https://go.microsoft.com/fwlink/p/?LinkId=2124703' -OutFile 'setup.exe'
Start-Process -FilePath setup.exe -Verb RunAs -Wait
# - name: Update to Evergreen WebView2 Runtime
# shell: pwsh
# # See here: https://developer.microsoft.com/en-us/microsoft-edge/webview2/
# # https://github.com/actions/runner-images/issues/9538
# run: |
# Invoke-WebRequest -Uri 'https://go.microsoft.com/fwlink/p/?LinkId=2124703' -OutFile 'setup.exe'
# Start-Process -FilePath setup.exe -Verb RunAs -Wait

- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand Down
Binary file added msedgedriver.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion wdio.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports.config = {
beforeSession: () =>
(tauriDriver = spawn(
path.resolve(os.homedir(), '.cargo', 'bin', 'tauri-driver'),
[],
['--native-driver', path.resolve(__dirname, 'msedgedriver.exe')],
{ stdio: [null, process.stdout, process.stderr] }
)),

Expand Down

0 comments on commit 4e180dd

Please sign in to comment.