diff --git a/Cargo.toml b/Cargo.toml index 6584271..2dcaf97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,26 @@ edition = "2024" [dependencies] eframe = "0.33.0" egui_extras = "0.33.0" + +[package.metadata.deb] +maintainer = "Letellier thomas.letellier2812@gmail.com" +copyright = "2025, Letellier" +license-file = ["LICENSE.txt", "4"] +extended-description = """ +A graphical calculator application made to complete my debian system since there is no calculator in the software minimum tool package. +""" +depends = "$auto" +section = "utility" +priority = "optional" +assets = [ + ["target/release/calculator", "usr/bin/", "755"], + ["README.md", "usr/share/doc/hatmos-calculator/", "644"], +] + +# Si vous avez une interface graphique +[package.metadata.deb.variants.gui] +assets = [ + ["target/release/calculator", "usr/bin/", "755"], + ["assets/calculator.desktop", "usr/share/applications/", "644"], + ["assets/icon.png", "usr/share/icons/hicolor/256x256/apps/hatmos-calculator.png", "644"], +] diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..75f5eb3 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Letellier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..9f585f4 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +#Hatmos Calculator + +This application was created because there were no calculator on my system. +This software is licensed under the MIT License, feel free to use it in the respect of this license. diff --git a/assets/.desktop b/assets/.desktop new file mode 100644 index 0000000..e9475c6 --- /dev/null +++ b/assets/.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Calculator-H +Comment=Small Calculator because i don't have one +Exec=Hatmos-Calculator +Icon=Calculator of Hatmos +Terminal=false +Categories=Utility;