Compare commits

...

3 Commits

Author SHA1 Message Date
e0f003d5a8 Set GIT_REV from build script
Some checks failed
Push Workflows / rustfmt (push) Failing after 5s
Push Workflows / tailwind-build (push) Successful in 5s
Push Workflows / test (push) Successful in 28s
Push Workflows / clippy (push) Successful in 23s
Push Workflows / docs (push) Successful in 27s
Push Workflows / build (push) Has been cancelled
Push Workflows / nix-build (push) Has been cancelled
2026-06-20 22:34:09 -04:00
e5c968933e Add interact style 2026-06-20 14:41:31 -04:00
166b07e91f Add project information to Cargo.toml 2026-06-20 14:40:51 -04:00
3 changed files with 27 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
[package] [package]
name = "libretunes" name = "libretunes"
description = "Open-source audio player and library manager"
repository = "https://git.libretunes.xyz/LibreTunes/LibreTunes-DX"
license = "MIT"
version = "0.1.0" version = "0.1.0"
authors = ["Ethan Girouard"] authors = ["Ethan Girouard"]
edition = "2024" edition = "2024"

View File

@@ -1,3 +1,19 @@
use std::process::Command;
use std::env;
fn main() { fn main() {
println!("cargo:rerun-if-changed=migrations"); println!("cargo:rerun-if-changed=migrations");
println!("cargo:rerun-if-changed=.git");
if env::var("GIT_REV").is_err() {
let git_rev: String = Command::new("git")
.args(["rev-parse", "HEAD"])
.output()
.expect("Failed to run git rev-parse")
.stdout
.try_into()
.expect("Failed to parse output from git");
println!("cargo:rustc-env=GIT_REV={git_rev}");
}
} }

View File

@@ -9,3 +9,11 @@
@source not "*"; @source not "*";
@source "./src/**/*.{rs,html,css}"; @source "./src/**/*.{rs,html,css}";
@layer utilities {
.interact {
@apply cursor-pointer;
@apply hover:text-base-content/70;
@apply active:text-primary active:translate-y-[.5px] active:shadow-(--btn-shadow);
}
}