-
Notifications
You must be signed in to change notification settings - Fork 10
Sailfish OS
Alexandr Akulich edited this page Apr 15, 2017
·
28 revisions
https://build.merproject.org/project/show/home:Kaffeine:morse
https://build.merproject.org/project/show/home:Kaffeine:morse_wip
The project is not released for Sailfish OS yet, so ATM the most convenient way is to install it from the Mer OBS.
Do
curl -O https://gist.githubusercontent.com/Kaffeine/09e06042e77525ec2fafd14b9b75640f/raw/a7b9ec2c50087b451aaee36ec95fc20fc7c5fe04/InstallMorseor create a file InstallMorse and put the follow code:
#!/bin/sh
if [ "$1" = "wip" ]; then
REPO=morse_wip
elif [ "$1" = "stable" ]; then
REPO=morse
else
echo "Invalid usage. Pass build type ('wip' or 'stable') as an argument."
exit 1
fi
PACKAGES="telegram-qt-qt5 telegram-qt-qt5-declarative sailfish-settings-accounts-extensions-telegram telepathy-morse"
REPO_URL=http://repo.merproject.org/obs/home:/Kaffeine:/$REPO/${REPO}_repo
echo The repo url is $REPO_URL
echo Add repo...
ssu ar $REPO $REPO_URL
echo Enable repo...
ssu er $REPO
echo Refresh pkcon cache for the repo
pkcon repo-set-data $REPO refresh-now true > /dev/null
echo Install packages...
pkcon install $PACKAGES
echo Disable repo...
ssu dr $REPO
echo "Installed packages:"
for PACKAGE in ${PACKAGES}; do
echo -n " "
rpm -q $PACKAGE
done
ONLINE_ACCOUNTS=`mc-tool summary|grep morse|grep -v offline|cut -d ' ' -f 1`
if [ -z "$ONLINE_ACCOUNTS" ]; then
echo "There is no active account. Done."
else
echo $ONLINE_ACCOUNTS
for ACCOUNT in ${ONLINE_ACCOUNTS}; do
echo "Disconnect account" $ACCOUNT
mc-tool request $ACCOUNT offline
done
sleep 1 # one sec should be enough for connection to sync and go offline
fi
MORSE_PID=`pidof telepathy-morse`
if [ "$MORSE_PID" = "" ]; then
echo telepathy-morse is not running
else
echo killall telepathy-morse
killall telepathy-morse
fi
do chmod +x ./InstallMorse
In root terminal (devel-su):
Use ./InstallMorse stable command to install a stable build or ./InstallMorse wip command to install a testing build.