-
-
Notifications
You must be signed in to change notification settings - Fork 819
Implement basic desktop app with chromium embeded framework #2874
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
Implement basic desktop app with chromium embeded framework #2874
Conversation
0806b05
to
809a009
Compare
809a009
to
5e4d5d1
Compare
5e4d5d1
to
c5d0e41
Compare
fn main() { | ||
let frontend_dir = format!("{}/../frontend/dist", env!("CARGO_MANIFEST_DIR")); | ||
metadata(&frontend_dir).expect("Failed to find frontend directory. Please build the frontend first."); | ||
metadata(format!("{}/index.html", &frontend_dir)).expect("Failed to find index.html in frontend directory."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain to me why this build.rs
exists? Just to verify the frontend is build? Two scenarios:
- You are embedding the frontend/dist folder in the executable: Then the embedding process should fail during build, not the build script during check.
- You are referencing this folder from code and it will be distributed alongside the executable: Then wouldn't a simple
#[test]
protect against failure? - Also consider just building the frontend in the build script?
Background: Every cargo check
, cargo test
or cargo build
now fails if you didn't explicitly build the frontend first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the first case, and for me it was just a way to provide better feedback to devs. But I didn't think about your Issue. Feel free to open a pr. Or I will take a look maybe tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I can just comment out the build.rs
, rather you have a look cause you also know how the embedding works
Things done:
Known issues:
[ERROR:components/viz/service/main/viz_main_impl.cc:184] Exiting GPU process due to errors during initialization
[ERROR:content/browser/gpu/gpu_process_host.cc:957] GPU process exited unexpectedly: exit_code=133
[FATAL:content/browser/gpu/gpu_data_manager_impl_private.cc:415] GPU process isn't usable. Goodbye.
[ERROR:google_apis/gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
Subprocess of type zygote failed
Other possible improvements: