changed github actions workflow to install rustup

This commit is contained in:
Vomitblood 2024-08-08 00:45:20 +08:00
parent 8cc4f0bcbc
commit 3e813bbe7e
2 changed files with 8 additions and 5 deletions

View file

@ -30,10 +30,13 @@ jobs:
run: apt update && apt upgrade -y run: apt update && apt upgrade -y
- name: Install dependencies for Tauri - name: Install dependencies for Tauri
run: apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev run: apt install -y libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- name: Update Rust - name: Install Rust
run: rustup update run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"
rustup update
- name: Install mise - name: Install mise
run: | run: |

View file

@ -72,8 +72,8 @@ fn is_animated_webp(file_path: &std::path::Path) -> Result<bool, String> {
} }
fn main() { fn main() {
// Example usage // Example usage
let path = std::path::Path::new("path/to/your/image.webp"); let path = std::path::Path::new("/home/vomitblood/Downloads/title.keys");
match determine_image_type(&path) { match determine_image_type(path) {
Ok(image_type) => println!("Image type: {:?}", image_type), Ok(image_type) => println!("Image type: {:?}", image_type),
Err(e) => println!("Error determining image type: {}", e), Err(e) => println!("Error determining image type: {}", e),
} }