Commit 48af7487 authored by thiolliere's avatar thiolliere
Browse files

add pyinstaller packaging for linux

it has been tested but I can't say if all dependencies of qemu-img and
qemu-system-arm have been bundled because I only tested by deleting
qemu-system-arm
parent 89ec3c35
# -*- mode: python -*-
block_cipher = None
a = Analysis(['ideascube_raspberrypi_installer/__main__.py'],
pathex=['/home/thiolliere/developpement/ideascube_raspberrypi_installer'],
binaries=[('/usr/bin/qemu-system-arm', '.'), ('/usr/bin/qemu-img', '.')],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='__main__',
debug=False,
strip=False,
upx=True,
console=True )
......@@ -2,12 +2,16 @@
import os
import argparse
import sys
from backend import vexpress_boot
from backend import catalog
from backend import raspbian
from backend import pretty_print
from backend import qemu
if getattr(sys, "frozen", False):
os.environ["PATH"] += ":" + sys._MEIPASS
parser = argparse.ArgumentParser(description="ideascube/kiwix installer for raspberrypi.")
parser.add_argument("-n", "--name", help="name of the box (mybox)", default="mybox")
parser.add_argument("-t", "--timezone", help="timezone (Europe/Paris)", default="Europe/Paris")
......
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