chore(release): v2.0.0
This commit is contained in:
parent
a6f33284a7
commit
7fbf34ff2e
81 changed files with 16727 additions and 3280 deletions
16
build.rs
16
build.rs
|
|
@ -34,4 +34,20 @@ fn main() {
|
|||
compile_wgsl_to_spv("shaders/ui_sdf.wgsl", "ui_sdf.spv");
|
||||
compile_wgsl_to_spv("shaders/blur.wgsl", "blur.spv");
|
||||
compile_wgsl_to_spv("shaders/vibe.wgsl", "vibe.spv");
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
if env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
|
||||
let ico = "packaging/icons/yandex-music-rs.ico";
|
||||
println!("cargo:rerun-if-changed={}", ico);
|
||||
if Path::new(ico).exists() {
|
||||
let mut res = winresource::WindowsResource::new();
|
||||
res.set_icon(ico);
|
||||
res.set("ProductName", "Яндекс Музыка (yandex-music-rs)");
|
||||
res.set("FileDescription", "Yandex Music Desktop Client");
|
||||
res.set("CompanyName", "marwy");
|
||||
if let Err(e) = res.compile() {
|
||||
println!("cargo:warning=winresource failed: {}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue