Martin Tian
Martin Tian

Reputation: 73

How to pack more DLLs into tauri bundle?

I'm learning to play Tauri on windows and I've been able to generate bundle file, which is able to be installed onto other new machines, but failed to run the app. eventually I figured out there're 3 DLLs missing, msvcp140.dll/vcruntime140.dll/vcruntime140_1.dll. by manually copy/paste these files into the app destination folder, it works. However, I want to know is there any workaround how can I include these a few missing DLLs when I generate the bundle?

Thanks & Regards, Martin.

Upvotes: 3

Views: 1507

Answers (1)

Martin Tian
Martin Tian

Reputation: 73

I'm able to fix the issue by myself with below workaround:

  1. Copy the 3 DLLs into src-tauri folder,

  2. Edit tauri.conf.json and put below lines:

    "resources": [ "./msvcp140.dll", "./vcruntime140.dll", "./vcruntime140_1.dll" ],

Then the bundle will include these DLLs and the installation will work normally.

Thanks & Regards, Martin.

Upvotes: 3

Related Questions