~mil/mepo

22765ea126a0fb8906b6be8979b0492dd27cfa60 — Miles Alan 8 months ago 1c16d06 0.4
mepo_dev_pp.sh: Delete on rsync, fix hostname
1 files changed, 3 insertions(+), 2 deletions(-)

M scriptsdev/mepo_dev_pp.sh
M scriptsdev/mepo_dev_pp.sh => scriptsdev/mepo_dev_pp.sh +3 -2
@@ 1,13 1,14 @@
#!/usr/bin/env sh
cd "$(realpath $(dirname "$0"))"/..
USER=user
CONN=$USER@10.0.0.102
rsync -v -a --exclude 'zig-out' --exclude 'zig-cache' . $CONN:/home/$USER/mepo
CONN=$USER@pine64-pinephone
rsync --delete -v -a --exclude 'zig-out' --exclude 'zig-cache' . $CONN:/home/$USER/mepo
ssh -t $CONN 'sudo sh -c "
  set -e
  pkill -9 mepo || echo
  cd /home/'$USER'/mepo
  zig build
  rm -f /usr/bin/mepo_*
  cp zig-out/bin/* /usr/bin/
  cp zig-out/share/applications/* /usr/share/applications/
  cp zig-out/share/pixmaps/mepo.png /usr/share/pixmaps/mepo.png