mirror of https://github.com/Tim-Paik/neutauri.git
Fixed the problem of unsuccessful compilation under Linux
This commit is contained in:
parent
93eb7bd1dc
commit
27ba6b6215
|
@ -1033,17 +1033,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "7efd1d698db0759e6ef11a7cd44407407399a910c774dd804c64c032da7826ff"
|
||||
|
||||
[[package]]
|
||||
name = "libayatana-appindicator"
|
||||
version = "0.2.0"
|
||||
name = "libappindicator"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0379d22a323947cb27b4dbe3b14fc1dcde07c9e9c3eca52ddf97ca0819c28cc4"
|
||||
checksum = "97b29fab3280d59f3d06725f75da9ef9a1b001b2c748b1abfebd1c966c61d7de"
|
||||
dependencies = [
|
||||
"glib",
|
||||
"gtk",
|
||||
"gtk-sys",
|
||||
"libappindicator-sys",
|
||||
"log",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "libappindicator-sys"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "90bdcb8c5cfc11febe2ff3f18386d6cb7d29f464cbaf6b286985c3f1a501d74f"
|
||||
dependencies = [
|
||||
"gtk-sys",
|
||||
"pkg-config",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.125"
|
||||
|
@ -1188,6 +1199,7 @@ dependencies = [
|
|||
"new_mime_guess",
|
||||
"rcedit",
|
||||
"serde",
|
||||
"tao",
|
||||
"toml",
|
||||
"winres",
|
||||
"wry",
|
||||
|
@ -1200,6 +1212,7 @@ dependencies = [
|
|||
"bincode",
|
||||
"brotli",
|
||||
"serde",
|
||||
"tao",
|
||||
"winres",
|
||||
"wry",
|
||||
]
|
||||
|
@ -1293,16 +1306,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"
|
||||
dependencies = [
|
||||
"malloc_buf",
|
||||
"objc_exception",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "objc_exception"
|
||||
version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4"
|
||||
dependencies = [
|
||||
"cc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -1796,7 +1799,7 @@ dependencies = [
|
|||
"gtk",
|
||||
"instant",
|
||||
"lazy_static",
|
||||
"libayatana-appindicator",
|
||||
"libappindicator",
|
||||
"libc",
|
||||
"log",
|
||||
"ndk",
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@ version = "0.1.0"
|
|||
bincode = "1.3"
|
||||
brotli = "3.3"
|
||||
serde = {version = "1.0", features = ["derive"]}
|
||||
wry = "0.15"
|
||||
tao = {version = "*", default-features = false}
|
||||
wry = {version = "0.15", default-features = false, features = ["protocol", "tray", "gtk-tray", "transparent", "fullscreen"]}
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
winres = "0.1"
|
||||
|
|
Loading…
Reference in New Issue