mirror of
https://github.com/AkiChase/scrcpy-mask
synced 2025-02-22 14:42:15 +08:00
fix(adb): adb for linux
This commit is contained in:
parent
6bcaca105f
commit
e9f1547093
BIN
src-tauri/resource/adb-linux
Normal file
BIN
src-tauri/resource/adb-linux
Normal file
Binary file not shown.
@ -28,9 +28,11 @@ impl ResHelper {
|
||||
pub fn get_file_path(dir: &PathBuf, file_name: ResourceName) -> PathBuf {
|
||||
match file_name {
|
||||
#[cfg(target_os = "windows")]
|
||||
ResourceName::Adb => dir.join("adb.exe"),
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
ResourceName::Adb => dir.join("adb"),
|
||||
ResourceName::Adb => dir.join("adb-win.exe"),
|
||||
#[cfg(target_os = "linux")]
|
||||
ResourceName::Adb => dir.join("adb-linux"),
|
||||
#[cfg(target_os = "macos")]
|
||||
ResourceName::Adb => dir.join("adb-mac"),
|
||||
|
||||
ResourceName::ScrcpyServer => dir.join("scrcpy-server-v2.4"),
|
||||
ResourceName::DefaultKeyConfig => dir.join("default-key-config.json"),
|
||||
|
@ -30,11 +30,6 @@
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
],
|
||||
"resources": [
|
||||
"resource/default-key-config.json",
|
||||
"resource/scrcpy-server-v2.4",
|
||||
"resource/adb"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
9
src-tauri/tauri.linux.conf.json.json
Normal file
9
src-tauri/tauri.linux.conf.json.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"bundle": {
|
||||
"resources": [
|
||||
"resource/default-key-config.json",
|
||||
"resource/scrcpy-server-v2.4",
|
||||
"resource/adb-linux"
|
||||
]
|
||||
}
|
||||
}
|
9
src-tauri/tauri.macos.conf.json
Normal file
9
src-tauri/tauri.macos.conf.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"bundle": {
|
||||
"resources": [
|
||||
"resource/default-key-config.json",
|
||||
"resource/scrcpy-server-v2.4",
|
||||
"resource/adb-mac"
|
||||
]
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
"resources": [
|
||||
"resource/default-key-config.json",
|
||||
"resource/scrcpy-server-v2.4",
|
||||
"resource/adb.exe",
|
||||
"resource/adb-win.exe",
|
||||
"resource/AdbWinApi.dll",
|
||||
"resource/AdbWinUsbApi.dll"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user