Skip to content

Commit

Permalink
fix: use default openssl for windows runners
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Nijhuis committed Apr 24, 2024
1 parent 3675bfe commit 3a2662f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 23 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,13 @@ jobs:
sudo apt-get update || true
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Install OpenSSL
- name: Set-up OpenSSL (Windows Only)
if: matrix.platform == 'windows-latest'
run: |
choco install openssl --execution-timeout 7200
mkdir -p "C:\Program Files\OpenSSL\ca"
curl -o "C:\Program Files\OpenSSL\ca\cacert.pem" https://curl.se/ca/cacert.pem
copy "C:\Program Files\OpenSSL\bin\libcrypto-3-x64.dll" .\src-tauri
copy "C:\Program Files\OpenSSL\bin\libssl-3-x64.dll" .\src-tauri
copy "C:\Program Files\OpenSSL\bin\libcrypto-1_1-x64.dll" .\src-tauri
copy "C:\Program Files\OpenSSL\bin\libssl-1_1-x64.dll" .\src-tauri
- name: Set Windows Env Vars
if: matrix.platform == 'windows-latest'
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ jobs:
sudo apt-get update || true
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Install OpenSSL (Windows only)
- name: Set-up OpenSSL (Windows only)
if: matrix.settings.platform == 'windows-latest'
run: |
choco install openssl --execution-timeout 7200
mkdir -p "C:\Program Files\OpenSSL\ca"
curl -o "C:\Program Files\OpenSSL\ca\cacert.pem" https://curl.se/ca/cacert.pem
copy "C:\Program Files\OpenSSL\bin\libcrypto-3-x64.dll" .\src-tauri
copy "C:\Program Files\OpenSSL\bin\libssl-3-x64.dll" .\src-tauri
copy "C:\Program Files\OpenSSL\bin\libcrypto-1_1-x64.dll" .\src-tauri
copy "C:\Program Files\OpenSSL\bin\libssl-1_1-x64.dll" .\src-tauri
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand Down
27 changes: 12 additions & 15 deletions src-tauri/tauri.windows.conf.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"tauri": {
"bundle": {
"resources": [
"libcrypto-3-x64.dll",
"libssl-3-x64.dll"
]
},
"windows": [
{
"title": "JET Pilot",
"decorations": false
}
]
}
}
"tauri": {
"bundle": {
"resources": ["libcrypto-1_1-x64.dll", "libssl-1_1-x64.dll"]
},
"windows": [
{
"title": "JET Pilot",
"decorations": false
}
]
}
}

0 comments on commit 3a2662f

Please sign in to comment.