move launcher installation from installer to oml

This commit is contained in:
Jan Gerber 2015-03-31 20:24:14 +02:00
commit 393fe7eb6e
5 changed files with 116 additions and 67 deletions

View file

@ -9,19 +9,10 @@ import sys
import shutil
import settings
from utils import run, get
root_dir = dirname(settings.base_dir)
def run(*cmd):
p = subprocess.Popen(cmd, close_fds=True)
p.wait()
return p.returncode
def get(*cmd):
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
stdout, error = p.communicate()
return stdout.decode()
def r(*cmd):
print(' '.join(cmd))
return subprocess.call(cmd)
@ -64,6 +55,20 @@ def command_stop(*args):
"""
pass
def command_install_launcher(*args):
"""
Install launcher
"""
import integration
integration.install_launcher()
def command_uninstall_launcher(*args):
"""
Uninstall launcher
"""
import integration
integration.uninstall_launcher()
def command_install_update(*args):
"""
Install available updates