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

[Question] How many time does release build needed on MacOs? #2554

Closed
bigdogs opened this issue Aug 30, 2021 · 6 comments
Closed

[Question] How many time does release build needed on MacOs? #2554

bigdogs opened this issue Aug 30, 2021 · 6 comments

Comments

@bigdogs
Copy link

bigdogs commented Aug 30, 2021

Hi,
cargo tauri build was hang for about 4 hours for my empty demo(crated by cargo tauri init), Not sure if this is a normal case.
image
I notice that rustc is still working
image

@bigdogs
Copy link
Author

bigdogs commented Aug 30, 2021

Compiled failed finally... :(

(signal: 9, SIGKILL: kill)
Error: failed to build app

@seryj
Copy link

seryj commented Sep 13, 2021

Same or similar issue here on Ubuntu 21.04. Building in release mode hangs in the building step for a undefinite period of time.

I'm using latest beta.10 version. No web frameworks (so no Vue, Angular or similar) are used but part of the code uses WASM (if this is somehow relevant).

Any ideas what could be the reason?

@lucasfernog
Copy link
Member

Can you guys share your tauri info output? Specifically I'd like to know the distDir on your tauri.conf.json file.

@seryj
Copy link

seryj commented Oct 3, 2021

Hi Lucas,

after your comment, I was able to fix the issue. In my case, I was executing the npm run tauri build command from parent directory of src-tauri (in which index.html is located). But it looks like that distDir was looking for index.html not relative to src-tauri but relative to my current directory. After changing distDir to ./, everything started working.

Not sure if I was using tauri wrong - if yes sorry for confusion!

Sergej

@lucasfernog
Copy link
Member

distDir is relative to src-tauri, but you can't use ./ since that'll increase your bundle size (including target folder etc).

@seryj
Copy link

seryj commented Oct 5, 2021

Hi, thanks for your hint. I was misunderstanding what I was doing. Setting distDir to correct folder (dist) folder, solved the issue with compilation time. The error sat in front of the screen all the time. :)

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

No branches or pull requests

3 participants