diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4807b2f..a098287 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,12 +12,21 @@ env: jobs: build: - - runs-on: ubuntu-latest + runs-on: windows-latest + # strategy: + # matrix: + # targetplatform: [x86, x64] steps: - uses: actions/checkout@v3 - - name: Lint - run: cargo clippy -- -W clippy::pedantic -W clippy::nursery -W clippy::expect_used + + - name: Set up MinGW + uses: egor-tensin/setup-mingw@v2 + with: + platform: x64 + - name: Build run: cargo build --verbose + + - name: Lint + run: cargo clippy -- -W clippy::pedantic -W clippy::nursery -W clippy::expect_used diff --git a/Cargo.toml b/Cargo.toml index 4475f10..efd2ec0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,10 @@ version = "0.2.0" edition = "2021" build = "build.rs" +[package.metadata.winres] +OriginalFilename = "sharextended.exe" +LegalCopyright = "Copyright © 2022" + [target.'cfg(windows)'.build-dependencies] winres = "0.1" diff --git a/build.rs b/build.rs index cbdf5f7..09a6740 100644 --- a/build.rs +++ b/build.rs @@ -1,7 +1,10 @@ +use winres; + fn main() { if cfg!(target_os = "windows") { - let mut res = winres::WindowsResource::new(); - res.set_icon("test.ico"); - res.compile().unwrap(); + winres::WindowsResource::new() + .set_icon("test.ico") + .compile() + .unwrap(); } }