mirror of
https://github.com/Tim-Paik/neutauri.git
synced 2024-10-12 23:29:41 +00:00
Fixed the problem of unsuccessful compilation under Linux
This commit is contained in:
@ -11,8 +11,9 @@ gumdrop = "0.8"
|
||||
image = "0.24"
|
||||
new_mime_guess = "4.0"
|
||||
serde = {version = "1.0", features = ["derive"]}
|
||||
tao = {version = "*", default-features = false}
|
||||
toml = "0.5"
|
||||
wry = {version = "0.15", features = ["devtools"]}
|
||||
wry = {version = "0.15", default-features = false, features = ["protocol", "tray", "gtk-tray", "transparent", "fullscreen", "devtools"]}
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
rcedit = {git = "https://github.com/Tim-Paik/rcedit-rs.git", rev = "2805fca"}
|
||||
|
@ -1,11 +1,17 @@
|
||||
use crate::data;
|
||||
use anyhow::Context;
|
||||
use std::{
|
||||
env, fs,
|
||||
hash::{Hash, Hasher},
|
||||
fs,
|
||||
io::{self, Write},
|
||||
};
|
||||
|
||||
#[cfg(windows)]
|
||||
use anyhow::Context;
|
||||
#[cfg(windows)]
|
||||
use std::{
|
||||
env,
|
||||
hash::{Hash, Hasher},
|
||||
};
|
||||
|
||||
fn options() -> fs::OpenOptions {
|
||||
#[cfg(not(windows))]
|
||||
use std::os::unix::prelude::OpenOptionsExt;
|
||||
@ -19,7 +25,10 @@ fn options() -> fs::OpenOptions {
|
||||
}
|
||||
|
||||
#[cfg(not(windows))]
|
||||
fn get_runtime_data() -> anyhow::Result<Vec<u8>> {
|
||||
fn get_runtime_data(
|
||||
_icon_path: Option<std::path::PathBuf>,
|
||||
_manifest_path: Option<std::path::PathBuf>,
|
||||
) -> anyhow::Result<Vec<u8>> {
|
||||
Ok(include_bytes!("../../target/release/neutauri_runtime").to_vec())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user