fix(windows): fix PermissionKind out-param and add AppImage support
- Fix COREWEBVIEW2_PERMISSION_KIND out-param pattern in PermissionRequestedEventHandler - Add "wry" feature to tauri dep so with_webview compiles on Windows - Build both appimage and deb on Linux for auto-update compatibility - Commit AppRun-x86_64 binary to avoid GitHub download timeout in CI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,9 @@ pub fn run() {
|
||||
let handler = PermissionRequestedEventHandler::create(Box::new(
|
||||
|_sender, args| {
|
||||
if let Some(args) = args {
|
||||
let kind = unsafe { args.PermissionKind() }?;
|
||||
// PermissionKind uses a COM out-param pattern
|
||||
let mut kind = COREWEBVIEW2_PERMISSION_KIND(0);
|
||||
unsafe { args.PermissionKind(&mut kind) }?;
|
||||
if kind == COREWEBVIEW2_PERMISSION_KIND_MICROPHONE
|
||||
|| kind == COREWEBVIEW2_PERMISSION_KIND_CAMERA
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user