Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/MicroCBer/CeleMod
Browse files Browse the repository at this point in the history
  • Loading branch information
std-microblock committed Aug 23, 2024
2 parents c47674b + 3daa3ef commit 5791694
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,30 @@ jobs:
./target/release/aria2c.exe
./target/release/sciter.dll
build-linux:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: sudo cat deb http://archive.ubuntu.com/ubuntu focal-updates main > /etc/apt/sources.list & sudo apt-get update & sudo apt-get install -y pkg-config cmake clang libpango-1.0-0 librust-atk-dev gdk-3.0
run: |
sudo sh -c 'echo "deb http://archive.ubuntu.com/ubuntu focal-updates main" > /etc/apt/sources.list.d/focal-updates.list'
sudo apt-get update
sudo apt-get install -y \
pkg-config \
cmake \
clang \
libpango-1.0-0 \
libatk1.0-dev \
libgtk-3-dev
- uses: actions/checkout@v3
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Build Rust
run: cargo build --verbose --release
- uses: actions/[email protected]
with:
name: linux
path: ./target/release/cele-mod
path: |
./target/release/cele-mod
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use std::{
path::{Path, PathBuf},
rc::Rc,
};
use winapi::um::winuser::ShowWindow;


extern crate msgbox;

Expand Down Expand Up @@ -841,6 +841,7 @@ fn main() {
// windows only
#[cfg(windows)]
{
use winapi::um::winuser::ShowWindow;
use winapi::um::winuser::SetProcessDPIAware;
unsafe {
SetProcessDPIAware();
Expand Down

0 comments on commit 5791694

Please sign in to comment.