Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Deathrage opened this issue Mar 17, 2024 · 4 comments
Open

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

Deathrage opened this issue Mar 17, 2024 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@Deathrage
Copy link

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

@ivangabriele
Copy link
Owner

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?

@Deathrage
Copy link
Author

Deathrage commented Jun 7, 2024

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.

@ivangabriele
Copy link
Owner

ivangabriele commented Jun 7, 2024

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 ivangabriele added the documentation Improvements or additions to documentation label Jun 8, 2024
@Deathrage
Copy link
Author

Deathrage commented Jun 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants