mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
fix so that dev on linux doesn't rebuild entire project (#312)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user