From bf5af04c87fce2bc7bfd1a28062ca36339b7d8e2 Mon Sep 17 00:00:00 2001 From: aisuneko Date: Fri, 21 Oct 2022 23:26:11 +0800 Subject: [PATCH] release v0.1.1, now with prebuilt binaries --- .gitignore | 2 ++ Cargo.lock | 2 +- Cargo.toml | 15 ++++++++++++--- README.md | 5 ++++- icon.svg => src/icon.svg | 0 src/utils.rs | 2 +- 6 files changed, 20 insertions(+), 6 deletions(-) rename icon.svg => src/icon.svg (100%) diff --git a/.gitignore b/.gitignore index ea8c4bf..a0c0247 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /target +*.AppImage +build_commands.txt \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index b0c685d..954835d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -114,7 +114,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "lightmol" -version = "0.1.0" +version = "0.1.1" dependencies = [ "fltk", "fltk-theme", diff --git a/Cargo.toml b/Cargo.toml index 18c7f7c..5f4d13b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,12 @@ [package] name = "lightmol" -version = "0.1.0" +version = "0.1.1" edition = "2021" - +include = ["icon.svg", "icon.png"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[[bin]] +name = "lightmol" +path = "src/main.rs" [dependencies] periodic-table-on-an-enum = "0.3.2" @@ -12,4 +15,10 @@ fltk-theme = "0.4.2" [profile.release] strip = true -lto = true \ No newline at end of file +lto = true + +# [target.'cfg(target_family = "windows")'] +# rustflags = ["-C","-Wl,--subsystem,windows"] + +# [package.metadata.appimage] +# auto_link = true \ No newline at end of file diff --git a/README.md b/README.md index 496a0d2..64b059b 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,15 @@ The app supports two calculation modes: Normal Mode and school Mode. In Normal M Examples: `Ca(OH)2` `Cu2(OH)2CO3` `NH4OH` `CCl4` `AgCl` `CuSO4-5H2O` `KAl(SO4)2-12H2O` `[C(NH2)3]Al(SO4)2` ## TODO -- [ ] Publish prebuilt binaries +- [X] Publish prebuilt binaries - [ ] ~~Make UI prettier (is that even possible under FLTK?)~~ - [ ] Tidy up UI-side code - [ ] Add support for custom rounding precision ## Changelog +- v0.1.1 (2022/10/21) + - Published prebuilt binaries for Linux (Appimage) and Windows + - Fixed a bug related to icon loading - v0.1 (2022/10/18) - Initial release diff --git a/icon.svg b/src/icon.svg similarity index 100% rename from icon.svg rename to src/icon.svg diff --git a/src/utils.rs b/src/utils.rs index 007d9e6..910b541 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -62,7 +62,7 @@ pub fn parse_num(s: &str, i: usize) -> u32 { // println!(); // } -pub static ABOUT_MSG: &str = "Lightmol v0.1 by aisuneko\npowered by Rust and fltk-rs"; +pub static ABOUT_MSG: &str = "Lightmol v0.1.1 by aisuneko\npowered by Rust and fltk-rs"; pub fn init_schooldata() -> HashMap { HashMap::from([ (Element::Carbon, 12.0),