Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable auto model downloading #2

Merged
merged 11 commits into from
Dec 9, 2024
Merged
Prev Previous commit
Next Next commit
Bump project version to 0.2.0 and add image command
- Upgrade application version to 0.2.0 across all relevant files and configurations.
- Enhance image processing capabilities by adding a new command to check image dimensions.
- Clean up build configurations by updating the .gitignore and removing unnecessary sections in the bundle configuration.
zhongweili committed Dec 6, 2024
commit 671ea30893dd9837123c8b1ccdf6bac19523e4aa
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "imagenie",
"private": true,
"version": "0.1.0",
"version": "0.2.0",
"type": "module",
"scripts": {
"dev": "vite",
2 changes: 1 addition & 1 deletion src-tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -7,4 +7,4 @@
/gen/schemas

/fixtures/
/actual_models/
/models/
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "imagenie"
version = "0.1.0"
version = "0.2.0"
description = "A Tauri App"
authors = ["zhongwei"]
edition = "2021"
5 changes: 5 additions & 0 deletions src-tauri/src/commands/image.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[tauri::command]
pub async fn check_image_dimensions(input_path: &str) -> Result<(u32, u32), String> {
let dimensions = image::image_dimensions(input_path).unwrap();
Ok(dimensions)
}
5 changes: 1 addition & 4 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "imagenie",
"version": "0.1.0",
"version": "0.2.0",
"identifier": "com.imagenie.app",
"build": {
"beforeDevCommand": "yarn dev",
@@ -46,9 +46,6 @@
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
],
"resources": [
"models/*"
]
}
}