docker-tauri icon indicating copy to clipboard operation
docker-tauri copied to clipboard

Tauri build does not produce MSI nor NSIS if in targets.

Open Deathrage opened this issue 11 months ago • 4 comments

Hello, running tauri build with msi or nsis as targets will not produce these two bundles.

Deathrage avatar Mar 17 '24 16:03 Deathrage

Hi,

Sorry for not seeing your message sooner. Unless I'm missing something, how do you expect to generate a Windows build under a Linux image?

ivangabriele avatar Jun 07 '24 14:06 ivangabriele

Not sure, but cross-compilation is a real thing. We compile for android on Windows. If it is not possible it should state explicitly instead of having tauri not produce the output. It took me a while to discover that the issue is in fact that cross-compilation is not supported here.

Deathrage avatar Jun 07 '24 20:06 Deathrage

It depends on what you're talking about.

If you're just talking about building an MSI or a NSIS, it's pretty straightforward: https://github.com/ivangabriele/clamav-desktop/blob/main/.github/workflows/build.yml#L56. There is no need for this complex Docker image which only exists for E2E OS tests. Maybe I will specify this point in the README.

If you're talking about e2e-testing a Tauri app in Windows, the process is completely different from Linux e2e-testing. It may be something I'll try to achieve at some point either through official Microsoft Docker images or dockur/windows ones. But I know it won't be easy.

ivangabriele avatar Jun 07 '24 23:06 ivangabriele

We use GitLab CI/CD and were unable to create working build configuration based on windows docker image. Your image is at least a currently working solution for us (except for building for windows). Eventually we will give it another try.

Deathrage avatar Jun 09 '24 12:06 Deathrage