Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

GirkovArpa/temps-lite-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

temps-lite (Rust)

Rust port of temps-lite.

It has served its purpose as a testing ground and is now archived.

Usage

The folder locale is not packed into the executable and must be included with it in order to run. This is to allow extending locale support without having to rebuild.

Compiling for Linux

Before running cargo build --release, please be aware of some Windows-specific things.

#![windows_subsystem="windows"]

I'm not sure if this is safe to leave or must be commented out or deleted. It's purpose is to hide the console window.

if cfg!(target_os = "windows") {
Command::new("packfolder")
  .args(&["app", "target/assets.rc", "-binary"])
  .output()
  .expect("Unable to run packfolder.exe!");
  WindowsResource::new()
    .set_icon("icon.ico")
    .compile();
}

This way of setting the icon is of course incompatible with Linux. Also, the call to packfolder.exe should be replaced with the equivalent of calling the packfolder.

Also, this application requires the library corresponding to your version of Linux to be either in PATH (not sure if they have that on Linux) or in the same folder. They can be found here.