-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeploy.sh
executable file
·23 lines (16 loc) · 1.05 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -x -e
function assert_mer_running {
VBoxManage list runningvms | grep -q 'Sailfish OS Build Engine' || (VBoxManage startvm 'Sailfish OS Build Engine' --type=headless ; sleep 30)
}
function assert_jolla_connection {
if [[ ! -e "/tmp/jolla.sock" ]]; then
ssh -TNf -S /tmp/jolla.sock jolla
fi
}
assert_mer_running
ssh -i /var/extra/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost -p 2222 "cd $(pwd | perl -npe 's{$ENV{HOME}}{/home/mersdk/share}'); mb2 make clean ; mb2 -t SailfishOS-armv7hl build; mv RPMS/*.rpm /tmp; mb2 make clean ; mb2 -t SailfishOS-i486 build; mv /tmp/*.rpm RPMS "
ssh -i /var/extra/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost -p 2222 "cd $(pwd | perl -npe 's{$ENV{HOME}}{/home/mersdk/share}'); rpmvalidation.sh RPMS/*armv7hl.rpm && rpmvalidation.sh RPMS/*i486.rpm"
assert_jolla_connection
scp -o ControlPath=/tmp/jolla.sock RPMS/harbour-sudoku*.armv7hl.rpm jolla:
ssh -S /tmp/jolla.sock jolla 'devel-su pkcon --noninteractive install-local harbour-sudoku*.armv7hl.rpm'