diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a064d3f5..72078f9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -321,7 +321,7 @@ jobs: echo "Building Portable Binaries" pushd apps/readest-app/ echo "NEXT_PUBLIC_PORTABLE_APP=true" >> .env.local - pnpm tauri build + pnpm tauri build ${{ matrix.config.args }} popd echo "Uploading Portable Binaries" diff --git a/apps/readest-app/src-tauri/build.rs b/apps/readest-app/src-tauri/build.rs index 722d9e68..901abda0 100644 --- a/apps/readest-app/src-tauri/build.rs +++ b/apps/readest-app/src-tauri/build.rs @@ -44,7 +44,15 @@ fn build_windows_thumbnail() { } let dll_name = "windows_thumbnail.dll"; - let dll_src = dll_crate_dir.join("target").join(&profile).join(dll_name); + let dll_src = if !target_triple.is_empty() { + dll_crate_dir + .join("target") + .join(&target_triple) + .join(&profile) + .join(dll_name) + } else { + dll_crate_dir.join("target").join(&profile).join(dll_name) + }; let dll_dest = dll_crate_dir.join("target").join(dll_name); fs::copy(&dll_src, &dll_dest).expect("Failed to copy windows_thumbnail DLL");