Commit afc811d9 authored by thiolliere's avatar thiolliere
Browse files

add ideascube configuration

parent 261f13bb
......@@ -7,6 +7,7 @@ a = Analysis(['pibox-installer/__main__.py'],
pathex=['.'],
binaries=[('qemu-system-arm', '.'), ('qemu-img', '.')],
datas=[('ui.glade', '.'),
('pibox_ideascube_conf.py', '.'),
('pibox-installer-vexpress-boot', 'pibox-installer-vexpress-boot')],
hiddenimports=[],
hookspath=['additional-hooks'],
......
......@@ -10,6 +10,7 @@ a = Analysis(['pibox-installer/__main__.py'],
pathex=['.'],
binaries=[("qemu/" + file, '.') for file in files],
datas=[('ui.glade', '.'),
('pibox_ideascube_conf.py', '.'),
('pibox-installer-vexpress-boot', 'pibox-installer-vexpress-boot')],
hiddenimports=[],
hookspath=['additional-hooks'],
......
......@@ -70,6 +70,7 @@ a = Analysis(['pibox-installer/__main__.py'],
('C:\Program Files\qemu\liblzma-5.dll', 'qemu'),
('C:\Program Files\qemu\libpixman-1-0.dll', 'qemu')],
datas=[('ui.glade', '.'),
('pibox_ideascube_conf.py', '.'),
('pibox-installer-vexpress-boot', 'pibox-installer-vexpress-boot')],
hiddenimports=[],
hookspath=['additional-hooks'],
......
......@@ -70,6 +70,7 @@ a = Analysis(['pibox-installer/__main__.py'],
('C:\Program Files\qemu\liblzma-5.dll', 'qemu'),
('C:\Program Files\qemu\libpixman-1-0.dll', 'qemu')],
datas=[('ui.glade', '.'),
('pibox_ideascube_conf.py', '.'),
('pibox-installer-vexpress-boot', 'pibox-installer-vexpress-boot')],
hiddenimports=[],
hookspath=['additional-hooks'],
......
......@@ -10,3 +10,5 @@ ui_glade = os.path.join(data_dir, "ui.glade")
_vexpress_boot_dir = "pibox-installer-vexpress-boot"
vexpress_boot_kernel = os.path.join(data_dir, _vexpress_boot_dir, "zImage")
vexpress_boot_dtb = os.path.join(data_dir, _vexpress_boot_dir, "vexpress-v2p-ca9.dtb")
pibox_ideascube_conf = os.path.join(data_dir, "pibox_ideascube_conf.py")
......@@ -65,6 +65,19 @@ def run_installation(name, timezone, wifi_pwd, kalite, zim_install, size, logger
kalite=kalite,
zim_install=zim_install)
with open(data.pibox_ideascube_conf, "r") as f:
pibox_ideascube_conf = f.read()
emulation.write_file("/opt/venvs/ideascube/lib/python3.4/site-packages/ideascube/conf/pibox.py", pibox_ideascube_conf)
extra_app_cards = []
if kalite != None:
extra_app_cards.append('khanacademy')
conf = """from .pibox import * # pragma: no flakes
EXTRA_APP_CARDS = {}""".format(extra_app_cards)
machine.write_file("/opt/venvs/ideascube/lib/python3.4/site-packages/ideascube/conf/kb.py", conf)
if sd_card:
emulator.copy_image(sd_card)
......
from .base import * # pragma: no flakes
from tzlocal import get_localzone
ALLOWED_HOSTS = ['.koombook.lan', 'localhost', '127.0.0.1']
TIME_ZONE = get_localzone().zone
DOMAIN = 'koombook.lan'
STAFF_HOME_CARDS = [c for c in STAFF_HOME_CARDS # pragma: no flakes
if c['url'] in ['user_list', 'server:settings']]
BUILTIN_APP_CARDS = []
EXTRA_APP_CARDS = []
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment