fix so that dev on linux doesn't rebuild entire project (#312)

This commit is contained in:
Edvin Bryntesson
2024-11-19 09:27:50 +01:00
committed by GitHub
parent 9d6eb111ab
commit f2d79a6b62
2 changed files with 5 additions and 3 deletions

View File

@@ -73,7 +73,8 @@ sysinfo = "0.32.0"
# commands
async-trait = "0.1.83"
[build-dependencies]
tauri-winres = "0.1.1"
git-version = "0.3.9"
# This makes it so the entire project doesn't recompile on each build on linux.
[target.'cfg(target_os = "windows")'.build-dependencies]
tauri-winres= "0.1.1"

View File

@@ -2,7 +2,8 @@ use git_version::git_version;
use std::env;
fn main() {
if cfg!(target_os = "windows") {
#[cfg(all(target_os = "windows", not(debug_assertions)))]
{
let mut res = tauri_winres::WindowsResource::new();
res.set_icon("../assets/icon.ico");
res.set_language(0x0009); // English