SirAlienTheGreat / gtk-periodic-table

A periodic table made with GTK and Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gtk-periodic-table

Run instructions

  1. Download the release from your platform on the releases page on the right side of this page
  2. Open the gtk-periodic-table-*****.zip file and copy the contents to an empty folder somewhere
  3. DO NOT move any of the included files into a seperate folder
  4. Double click the file that says "gtk-periodic-table" or "gtk-periodic-table.exe"

Linux build instructions

If you don't know what this is, don't do this

  1. Most distros come with gtk4 preinstalled, if yours doesn't, use sudo pacman -S gtk4 or sudo apt install libgtk-4-dev (Probably, I don't use debian)
  2. Install rust with curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh or use your distro's package manager
  3. Clone this repository with git clone https://github.com/SirAlienTheGreat/gtk-periodic-table, then cd into this directory
  4. Build with cargo build --release
  5. You may need to chmod +x gtk-periodic-table, or it may have permission to run with ./gtk-periodic-table by default

Windows build instructions (Not recommended) (Untested)

  1. Download and install MSYS2 at https://www.msys2.org/
  2. Download and install rust with the .exe file at https://www.rust-lang.org/ but when it asks if you want a custom installation, answer yes, and change the toolkit to x86_64-pc-windows-gnu
  3. Open the MinGW shell. This is a Linux-like build environment for windows.
  4. Install dependencies by running pacman -S mingw-w64-x86_64-gtk4 and pacman -S mingw-w64-x86_64-toolchain
  5. Clone this repository with git clone https://github.com/SirAlienTheGreat/gtk-periodic-table, then cd into this directory
  6. Build with cargo build --release
  7. Pray to your favorite god, because this never works for me, and this sometimes seems to fix itself randomly
  8. cd into target/release and add the .dlls with ldd gtk-periodic-table.exe | grep '\/mingw64\/bin\/.*dll' -o | xargs -I{} cp "{}" . (the period is part of the command)
  9. You can open file explorer and go to your MSYS2 installation folder (By default, C:msys2)/home/[USERNAME]/gtk-periodic-table-main/target/release and run gtk-periodic-table.exe

About

A periodic table made with GTK and Rust

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%