1
0
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:
2022-05-02 15:56:39 +08:00
parent 46f65e0c7e
commit 111b0a9e15
4 changed files with 34 additions and 20 deletions

View File

@ -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"}

View File

@ -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())
}