diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9a16e3d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +* text=auto + +*.xcf filter=lfs diff=lfs merge=lfs -text +*.ico filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text diff --git a/Cargo.lock b/Cargo.lock index 55cdf0d..a251de9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -549,7 +549,7 @@ dependencies = [ "directories", "serde", "thiserror", - "toml", + "toml 0.8.13", ] [[package]] @@ -918,6 +918,7 @@ dependencies = [ "tracing-error", "tracing-subscriber", "usvg", + "winres", "zip", ] @@ -3407,7 +3408,7 @@ dependencies = [ "cfg-expr", "heck 0.5.0", "pkg-config", - "toml", + "toml 0.8.13", "version-compare", ] @@ -3614,6 +3615,15 @@ dependencies = [ "tokio", ] +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + [[package]] name = "toml" version = "0.8.13" @@ -4396,6 +4406,15 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "winres" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c" +dependencies = [ + "toml 0.5.11", +] + [[package]] name = "wio" version = "0.2.2" diff --git a/crates/dtmm/Cargo.toml b/crates/dtmm/Cargo.toml index 661eb17..f947fc6 100644 --- a/crates/dtmm/Cargo.toml +++ b/crates/dtmm/Cargo.toml @@ -2,6 +2,12 @@ name = "dtmm" version = "0.1.0" edition = "2021" +authors = ["Lucas Schwiderski "] +description = "DTMM is a GUI application to install and manage mods for the game." +documentation = "https://git.sclu1034.dev/bitsquid_dt/dtmt/wiki" +repository = "https://git.sclu1034.dev/bitsquid_dt/dtmt" +homepage = "https://git.sclu1034.dev/bitsquid_dt/dtmt" +license-file = "LICENSE" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -38,3 +44,6 @@ tracing-error = "0.2.0" tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } usvg = "0.25.0" zip = { workspace = true } + +[build-dependencies] +winres = "0.1.12" diff --git a/crates/dtmm/assets/DTMM_logo.xcf b/crates/dtmm/assets/DTMM_logo.xcf new file mode 100644 index 0000000..00de67d --- /dev/null +++ b/crates/dtmm/assets/DTMM_logo.xcf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:144903129d56235895e433435ecee90528ceb5c4db98f5b02e637a215dde1881 +size 17736337 diff --git a/crates/dtmm/assets/DTMM_logo_256.png b/crates/dtmm/assets/DTMM_logo_256.png new file mode 100644 index 0000000..e53931f --- /dev/null +++ b/crates/dtmm/assets/DTMM_logo_256.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62096b0f6e3798820c9ad04ba61fdff45522b7c67c4b254dc8fd11bdde984c76 +size 39017 diff --git a/crates/dtmm/assets/DTMM_logo_48.png b/crates/dtmm/assets/DTMM_logo_48.png new file mode 100644 index 0000000..33c1d11 --- /dev/null +++ b/crates/dtmm/assets/DTMM_logo_48.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b0524e05b8f2c6ca061aa7edc6f7e62efb8bcddf347e4e9344187efb437436c +size 3082 diff --git a/crates/dtmm/assets/DTMM_logo_64.png b/crates/dtmm/assets/DTMM_logo_64.png new file mode 100644 index 0000000..e5d5407 --- /dev/null +++ b/crates/dtmm/assets/DTMM_logo_64.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0bf9431d5f46f4437c21fe38ebbd86e8b3872acaf3a13f0bc8f4a9e8e78e118 +size 4287 diff --git a/crates/dtmm/assets/DTMM_logo_border.png b/crates/dtmm/assets/DTMM_logo_border.png new file mode 100644 index 0000000..bf610e4 --- /dev/null +++ b/crates/dtmm/assets/DTMM_logo_border.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cefec60ffe91eb4d827e1c7c9b4bfebdec528236809e02ccc9f15b15ee290442 +size 537707 diff --git a/crates/dtmm/assets/DTMM_logo_faint_glow.png b/crates/dtmm/assets/DTMM_logo_faint_glow.png new file mode 100644 index 0000000..1066370 --- /dev/null +++ b/crates/dtmm/assets/DTMM_logo_faint_glow.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d579be0297e78ef0c9cfb4ce357dd61ed13cc65084d5a38c322913cdcdbe5b99 +size 605023 diff --git a/crates/dtmm/assets/DTMM_logo_small.png b/crates/dtmm/assets/DTMM_logo_small.png new file mode 100644 index 0000000..0020520 --- /dev/null +++ b/crates/dtmm/assets/DTMM_logo_small.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be2a3cb6a94828b3df9368bcf9ea335ad08590a69b128a15a92fb1cf751d06b6 +size 502425 diff --git a/crates/dtmm/assets/dtmm.desktop b/crates/dtmm/assets/dtmm.desktop index 4c2e0a9..cb9185c 100644 --- a/crates/dtmm/assets/dtmm.desktop +++ b/crates/dtmm/assets/dtmm.desktop @@ -8,3 +8,4 @@ Keywords=Mod; StartupNotify=true Categories=Utility; MimeType=x-scheme-handler/nxm; +Icon=dtmm diff --git a/crates/dtmm/assets/dtmm.ico b/crates/dtmm/assets/dtmm.ico new file mode 100644 index 0000000..b862839 --- /dev/null +++ b/crates/dtmm/assets/dtmm.ico @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02d4bea2d7af89a86c3f052240a2acd137a0df5e9b6e85ecfe3f163032010652 +size 37519 diff --git a/crates/dtmm/build.rs b/crates/dtmm/build.rs new file mode 100644 index 0000000..9e551d4 --- /dev/null +++ b/crates/dtmm/build.rs @@ -0,0 +1,7 @@ +fn main() { + if cfg!(target_os = "windows") { + let mut res = winres::WindowsResource::new(); + res.set_icon("assets/dtmm.ico"); + res.compile().unwrap(); + } +} diff --git a/docs/screenshots/dtmm.png b/docs/screenshots/dtmm.png index af2a980..d51c253 100644 Binary files a/docs/screenshots/dtmm.png and b/docs/screenshots/dtmm.png differ