pibox-installer-macos.spec 1.1 KB
Newer Older
user's avatar
user committed
1
# -*- mode: python -*-
thiolliere's avatar
thiolliere committed
2
import subprocess
user's avatar
user committed
3

thiolliere's avatar
thiolliere committed
4
5
output = subprocess.check_output(["ls", "qemu"])
files = output.decode('utf-8').splitlines()
user's avatar
user committed
6

thiolliere's avatar
thiolliere committed
7
block_cipher = None
user's avatar
user committed
8
9
10

a = Analysis(['pibox-installer/__main__.py'],
             pathex=['.'],
thiolliere's avatar
thiolliere committed
11
             binaries=[("qemu/" + file, '.') for file in files],
thiolliere's avatar
thiolliere committed
12
13
             datas=[('ui.glade', '.'),
                    ('pibox-installer-vexpress-boot', 'pibox-installer-vexpress-boot')],
user's avatar
user committed
14
             hiddenimports=[],
thiolliere's avatar
thiolliere committed
15
             hookspath=['additional-hooks'],
user's avatar
user committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
             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='pibox-installer',
          debug=False,
          strip=False,
          upx=True,
thiolliere's avatar
thiolliere committed
32
          console=False)
thiolliere's avatar
thiolliere committed
33
34
app = BUNDLE(exe,
             name='pibox-installer.app',
thiolliere's avatar
thiolliere committed
35
             icon='pibox-installer-logo.icns',
thiolliere's avatar
thiolliere committed
36
             bundle_identifier='org.ideascube.pibox')