Browse Source

add deploy & run scripts

xuqiang 5 tháng trước cách đây
mục cha
commit
5e5bdf1b85
2 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 3 0
      scripts/deploy.sh
  2. 9 0
      scripts/run.sh

+ 3 - 0
scripts/deploy.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+
+scp -r  build/release/monitor forlinx@192.168.1.101:/home/forlinx/633

+ 9 - 0
scripts/run.sh

@@ -0,0 +1,9 @@
+#!/bin/bash
+# for remote ssh
+export XDG_RUNTIME_DIR=/run/user/1000
+export QT_QPA_PLATFORM=wayland
+export QT_QPA_PLATFORMTHEME=qt5ct
+
+# run
+export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH
+./bin/monitor