ci: fix builds for MacOS

Drop .app bundling and use a simpler approach. A simple .command bash
script is present that launches the binary.
pull/1228/head
Tomas Susanka 4 years ago
parent f51fac3410
commit 00593dc6d6

@ -115,23 +115,23 @@ core unix frozen debug build:
untracked: true untracked: true
expire_in: 1 week expire_in: 1 week
core unix frozen regular darwin: core macos frozen regular build:
stage: build stage: build
needs: [] needs: []
tags: tags:
- darwin - darwin
when: manual
script: script:
- nix-shell --run "pipenv run make -C core build_unix_frozen" - nix-shell --run "pipenv run make -C core build_unix_frozen"
- mkdir -p TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/{MacOS,libs} - export NAME="trezor-emu-core.darwin"
- cp -v core/build/unix/trezor-emu-core TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/MacOS/TrezorEmu-$CI_COMMIT_SHORT_SHA - cp -v core/build/unix/trezor-emu-core ./$NAME
- dylibbundler -of -b -i /usr/lib/system -d TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/libs -x TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/MacOS/TrezorEmu-$CI_COMMIT_SHORT_SHA - chmod +x $NAME
- mv TrezorEmu-$CI_COMMIT_SHORT_SHA.app trezor-emu-regular-macos-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.app - echo '"$(dirname "$BASH_SOURCE")"/trezor-emu-core.darwin' > trezor-emulator.command
allow_failure: true - chmod u+x trezor-emulator.command
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
paths: paths:
- trezor-emu-regular-macos-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.app - trezor-emu-core.darwin
- trezor-emulator.command
expire_in: 1 week expire_in: 1 week
# Crypto # Crypto

Loading…
Cancel
Save