diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index 8ce7155..0000000 --- a/.github/workflows/rust.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Rust - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - - - diff --git a/src/main.rs b/src/main.rs index 61d24ae..3ee431a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,8 +53,8 @@ impl App { .with_size(800, 600) .center_screen() .with_label("AblEditor"); - - let image = fltk::image::PngImage::load("assets/icon.png").unwrap(); + let ico = include_bytes!("../assets/icon.png"); + let image = fltk::image::PngImage::from_data(ico).unwrap(); main_win.set_icon(Some(image)); let _menu = menu::Menu::new(&s);