nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 27 lines 1.3 kB view raw
1diff --git a/QtScrcpy/main.cpp b/QtScrcpy/main.cpp 2index a24ba60..51e3d76 100644 3--- a/QtScrcpy/main.cpp 4+++ b/QtScrcpy/main.cpp 5@@ -22,22 +22,16 @@ int main(int argc, char *argv[]) 6 { 7 // set env 8 #ifdef Q_OS_WIN32 9- qputenv("QTSCRCPY_ADB_PATH", "../../../QtScrcpy/QtScrcpyCore/src/third_party/adb/win/adb.exe"); 10- qputenv("QTSCRCPY_SERVER_PATH", "../../../QtScrcpy/QtScrcpyCore/src/third_party/scrcpy-server"); 11 qputenv("QTSCRCPY_KEYMAP_PATH", "../../../keymap"); 12 qputenv("QTSCRCPY_CONFIG_PATH", "../../../config"); 13 #endif 14 15 #ifdef Q_OS_OSX 16- qputenv("QTSCRCPY_ADB_PATH", "../../../../../../QtScrcpy/QtScrcpyCore/src/third_party/adb/mac/adb"); 17- qputenv("QTSCRCPY_SERVER_PATH", "../../../../../../QtScrcpy/QtScrcpyCore/src/third_party/scrcpy-server"); 18 qputenv("QTSCRCPY_KEYMAP_PATH", "../../../../../../keymap"); 19 qputenv("QTSCRCPY_CONFIG_PATH", "../../../../../../config"); 20 #endif 21 22 #ifdef Q_OS_LINUX 23- qputenv("QTSCRCPY_ADB_PATH", "../../../QtScrcpy/QtScrcpyCore/src/third_party/adb/linux/adb"); 24- qputenv("QTSCRCPY_SERVER_PATH", "../../../QtScrcpy/QtScrcpyCore/src/third_party/scrcpy-server"); 25 qputenv("QTSCRCPY_KEYMAP_PATH", "../../../keymap"); 26 qputenv("QTSCRCPY_CONFIG_PATH", "../../../config"); 27 #endif