chore: fix cross compiling of thumbnail extension (#2587)

This commit is contained in:
Huang Xin
2025-12-02 01:55:03 +08:00
parent b9dadc0f4f
commit 852f9f40ec
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -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"
+9 -1
View File
@@ -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");