From 4c4335a50e5a4b278d57d821e3e4f81d348c3d27 Mon Sep 17 00:00:00 2001 From: einliterflasche Date: Fri, 19 Sep 2025 02:48:43 +0200 Subject: [PATCH] fix tauri missing libwinpthread-1.dll --- dev_scripts/ubuntu_build_x86_86-w64-mingw32-gcc.sh | 3 ++- src-tauri/tauri.windows.conf.json | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dev_scripts/ubuntu_build_x86_86-w64-mingw32-gcc.sh b/dev_scripts/ubuntu_build_x86_86-w64-mingw32-gcc.sh index 3e922417..0c05eff2 100755 --- a/dev_scripts/ubuntu_build_x86_86-w64-mingw32-gcc.sh +++ b/dev_scripts/ubuntu_build_x86_86-w64-mingw32-gcc.sh @@ -293,6 +293,7 @@ build_winpthreads() { copy_dlls() { echo "Copying dll's to src-tauri/" cp -f $PREFIX/x86_64-w64-mingw32/lib/{libstdc++-6,libgcc_s_seh-1}.dll $SRC_TAURI_DIR/ + cp -f $PREFIX/x86_64-w64-mingw32/bin/libwinpthread-1.dll $SRC_TAURI_DIR/ } setup_path() { @@ -349,7 +350,7 @@ verify_installation() { # Check DLLs in src-tauri directory local missing_dlls=() - for dll in libstdc++-6.dll libgcc_s_seh-1.dll; do + for dll in libstdc++-6.dll libgcc_s_seh-1.dll libwinpthread-1.dll; do if [ ! -f "$SRC_TAURI_DIR/$dll" ]; then missing_dlls+=("$dll") fi diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index a1c9a1a3..9ecc296e 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -1,5 +1,9 @@ { "bundle": { - "resources": ["libstdc++-6.dll", "libgcc_s_seh-1.dll"] + "resources": [ + "libstdc++-6.dll", + "libgcc_s_seh-1.dll", + "libwinpthread-1.dll" + ] } }