mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
ci: fix builds for MacOS
Drop .app bundling and use a simpler approach. A simple .command bash script is present that launches the binary.
This commit is contained in:
parent
f51fac3410
commit
00593dc6d6
16
ci/build.yml
16
ci/build.yml
@ -115,23 +115,23 @@ core unix frozen debug build:
|
||||
untracked: true
|
||||
expire_in: 1 week
|
||||
|
||||
core unix frozen regular darwin:
|
||||
core macos frozen regular build:
|
||||
stage: build
|
||||
needs: []
|
||||
tags:
|
||||
- darwin
|
||||
when: manual
|
||||
script:
|
||||
- nix-shell --run "pipenv run make -C core build_unix_frozen"
|
||||
- mkdir -p TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/{MacOS,libs}
|
||||
- cp -v core/build/unix/trezor-emu-core TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/MacOS/TrezorEmu-$CI_COMMIT_SHORT_SHA
|
||||
- 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
|
||||
- mv TrezorEmu-$CI_COMMIT_SHORT_SHA.app trezor-emu-regular-macos-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.app
|
||||
allow_failure: true
|
||||
- export NAME="trezor-emu-core.darwin"
|
||||
- cp -v core/build/unix/trezor-emu-core ./$NAME
|
||||
- chmod +x $NAME
|
||||
- echo '"$(dirname "$BASH_SOURCE")"/trezor-emu-core.darwin' > trezor-emulator.command
|
||||
- chmod u+x trezor-emulator.command
|
||||
artifacts:
|
||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||
paths:
|
||||
- trezor-emu-regular-macos-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.app
|
||||
- trezor-emu-core.darwin
|
||||
- trezor-emulator.command
|
||||
expire_in: 1 week
|
||||
|
||||
# Crypto
|
||||
|
Loading…
Reference in New Issue
Block a user