Commit 823a985e authored by thiolliere's avatar thiolliere
Browse files

add macos qemu deps

parent c5f3f2cc
...@@ -14,6 +14,24 @@ matrix: ...@@ -14,6 +14,24 @@ matrix:
- brew install pygobject3 --with-python3 gtk+3 - brew install pygobject3 --with-python3 gtk+3
- python3 -m pip install -r requirements-macos.txt - python3 -m pip install -r requirements-macos.txt
- python3 -m pip install pyinstaller - python3 -m pip install pyinstaller
# Bundle QEMU
- git clone https://github.com/auriamg/macdylibbundler/
- cd macdylibbundler/
- make
- cd ..
- mkdir qemu
- cd qemu
- cp /usr/local/bin/qemu-img .
- cp /usr/local/bin/qemu-system-arm .
- chmod u+w qemu-img
- chmod u+w qemu-system-arm
- ../macdylibbundler/dylibbundler -d . -p @loader_path/ -b -x ./qemu-system-arm -x ./qemu-img
- chmod u-w qemu-img
- chmod u-w qemu-system-arm
- cd ..
# Run PyInstaller
- pyinstaller --log-level=DEBUG pibox-installer-macos.spec - pyinstaller --log-level=DEBUG pibox-installer-macos.spec
# Sign application # Sign application
...@@ -29,7 +47,7 @@ matrix: ...@@ -29,7 +47,7 @@ matrix:
- create-dmg dist/pibox-installer.app || true - create-dmg dist/pibox-installer.app || true
# Send dmg # Send dmg
- scp -v -o StrictHostKeyChecking=no -i pibox_installer_ci_rsa pibox-installer-0.0.0.dmg pibox_ci@buildbot.wan.bsf-intranet.org:/srv/repos/pibox/$(date +"%Y-%m-%d")/pibox-installer-macos.dmg - scp -v -o StrictHostKeyChecking=no -i pibox_installer_ci_rsa pibox-installer-0.0.0.dmg pibox_ci@buildbot.wan.bsf-intranet.org:/srv/repos/pibox/$(date +"%Y-%m-%d")/pibox-installer-macos-qemu-deps.dmg
- os: linux - os: linux
language: python language: python
......
# -*- mode: python -*- # -*- mode: python -*-
import subprocess
block_cipher = None output = subprocess.check_output(["ls", "qemu"])
files = output.decode('utf-8').splitlines()
block_cipher = None
a = Analysis(['pibox-installer/__main__.py'], a = Analysis(['pibox-installer/__main__.py'],
pathex=['.'], pathex=['.'],
binaries=[('/usr/local/bin/qemu-system-arm', '.'), ('/usr/local/bin/qemu-img', '.')], binaries=[("qemu/" + file, '.') for file in files],
datas=[('ui.glade', '.')], datas=[('ui.glade', '.')],
hiddenimports=[], hiddenimports=[],
hookspath=[], hookspath=[],
......
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