tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
84.7k stars 2.55k forks source link

[feat] bundle files only for specific platform #8360

Closed zhangsan946 closed 11 months ago

zhangsan946 commented 11 months ago

Describe the problem

I am developing a proxy application for all the platforms(Windows, Linux, MacOS). By default on Linux, MacOS, it supports TUN/TAP interface in kernal, while On Windows, it has to integrate addition TUN driver such as https://www.wintun.net/. Tauri currently dosen't support to bundle externalbin & resources only for target platform.

Describe the solution you'd like

To support bundle externalbin(dlls) only for specific platform.

Alternatives considered

No response

Additional context

No response

FabianLars commented 11 months ago

Hi! This is already possible, you can have platform specific merge configs as explained here https://tauri.app/v1/api/config#platform-specific-configuration

These configs don't have to be complete configs, just what you want to overwrite on the main configs.