Skip to content

Commit 76e9f4d

Browse files
committed
feat: Add aarch64-pc-windows-msvc target to the release workflow
1 parent 1a020d3 commit 76e9f4d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ jobs:
4646
- name: install Rust stable
4747
uses: dtolnay/rust-toolchain@stable
4848
with:
49-
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
50-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
49+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || (matrix.args == '--target aarch64-pc-windows-msvc' && 'aarch64-pc-windows-msvc') || '' }}
5150

5251
- name: install dependencies (ubuntu only)
5352
if: runner.os == 'Linux'

src-tauri/src/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use tauri::{AppHandle, Emitter, Manager};
33

44
#[cfg(any(target_os = "windows", target_os = "linux"))]
5-
fn show_window(app: &AppHandle, args: Vec<String>) {
5+
pub fn show_window(app: &AppHandle, args: Vec<String>) {
66
let windows = app.webview_windows();
77
let main_window = windows.values().next().expect("Sorry, no window found");
88

0 commit comments

Comments
 (0)