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

feat: canoncialize assets for macOS, Windows, and Linux #278

Merged
merged 3 commits into from
Feb 26, 2022

Conversation

jkelleyrtp
Copy link
Member

@jkelleyrtp jkelleyrtp commented Feb 23, 2022

This PR adds the right relative pathing for assets when bundled through cargo-bundle.

It's never been this easy to include an image in your Rust .app! :)

I don't have any other machine than a mac box so I can't test alternate implementations.

https://crates.io/crates/directories

  • macOS

These targets do not provide a straightforward way of bundling assets. I've opted to make it the asset dir configurable instead.

  • windows
  • linux (rpm)
  • linux (deb)

@jkelleyrtp jkelleyrtp marked this pull request as draft February 23, 2022 18:54
This commit enables assets to be served locally through cargo run
or through a bundle strategy. We use cargo-bundle's bundle strategy.
This PR checks only for macOS targets.
@jkelleyrtp jkelleyrtp marked this pull request as ready for review February 23, 2022 20:12
@jkelleyrtp jkelleyrtp merged commit 25c82b7 into master Feb 26, 2022
@jkelleyrtp
Copy link
Member Author

We will add windows/linux later, or anyone apsiring to figure it out can take care of it.

It seems that when building with cargo-wix, you can choose the resource directory. Same with linux. Either we'll work with the tauri config and get theirs working by default or come up with our owm.

@jkelleyrtp jkelleyrtp deleted the jk/canonicalize-assets branch April 27, 2022 05:35
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

Successfully merging this pull request may close these issues.

1 participant