We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6986eb7 commit e9ce5cdCopy full SHA for e9ce5cd
src/main.rs
@@ -1,11 +1,16 @@
1
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
2
+
3
use eframe;
4
use pomot::App;
5
6
+const ICON: &[u8] = include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/", "pomot.png"));
7
8
// When compiling natively:
9
#[cfg(not(target_arch = "wasm32"))]
10
fn main() {
-
- let icon = image::open("pomot.png").expect("Failed to open icon path.").to_rgba8();
11
+ let icon = image::load_from_memory(ICON)
12
+ .expect("Failed to open icon path.")
13
+ .to_rgba8();
14
let (icon_width, icon_height) = icon.dimensions();
15
let native_options = eframe::NativeOptions {
16
icon_data: Some(eframe::IconData {
0 commit comments