pibox-installer-macos.spec 1.42 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
             datas=[('ui.glade', '.'),
thiolliere's avatar
thiolliere committed
13
                    ('pibox_ideascube_conf.py', '.'),
thiolliere's avatar
thiolliere committed
14
                    ('pibox-installer-logo.png', '.'),
thiolliere's avatar
thiolliere committed
15
                    ('ansiblecube', 'ansiblecube'),
thiolliere's avatar
thiolliere committed
16
                    ('pibox-installer-vexpress-boot', 'pibox-installer-vexpress-boot')],
user's avatar
user committed
17
             hiddenimports=[],
thiolliere's avatar
thiolliere committed
18
             hookspath=['additional-hooks'],
user's avatar
user committed
19
20
21
22
23
24
25
26
27
             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,
thiolliere's avatar
thiolliere committed
28
          exclude_binaries=True,
user's avatar
user committed
29
30
31
32
          name='pibox-installer',
          debug=False,
          strip=False,
          upx=True,
thiolliere's avatar
thiolliere committed
33
          console=False)
thiolliere's avatar
thiolliere committed
34
35
36
37
38
39
40
coll = COLLECT(exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=False,
               upx=True,
               name='pibox-installer')
thiolliere's avatar
thiolliere committed
41
app = BUNDLE(coll,
thiolliere's avatar
thiolliere committed
42
             name='pibox-installer.app',
thiolliere's avatar
thiolliere committed
43
             icon='pibox-installer-logo.icns',
thiolliere's avatar
thiolliere committed
44
             bundle_identifier='org.ideascube.pibox')