Compare commits
3 Commits
836fe1adcd
...
e0f003d5a8
| Author | SHA1 | Date | |
|---|---|---|---|
|
e0f003d5a8
|
|||
|
e5c968933e
|
|||
|
166b07e91f
|
@@ -1,5 +1,8 @@
|
||||
[package]
|
||||
name = "libretunes"
|
||||
description = "Open-source audio player and library manager"
|
||||
repository = "https://git.libretunes.xyz/LibreTunes/LibreTunes-DX"
|
||||
license = "MIT"
|
||||
version = "0.1.0"
|
||||
authors = ["Ethan Girouard"]
|
||||
edition = "2024"
|
||||
|
||||
16
src/build.rs
16
src/build.rs
@@ -1,3 +1,19 @@
|
||||
use std::process::Command;
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
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}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,3 +9,11 @@
|
||||
|
||||
@source not "*";
|
||||
@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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user