1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

fix(ci): strip commit version for emulator releases

trezor-user-env can't work with that
This commit is contained in:
Tomas Susanka 2021-02-11 08:25:24 +01:00
parent e5741ac308
commit 6214156c35

View File

@ -184,7 +184,7 @@ release core unix debug deploy:
- core unix frozen debug build - core unix frozen debug build
script: script:
- export VERSION=$(./tools/version.sh core/embed/firmware/version.h) - export VERSION=$(./tools/version.sh core/embed/firmware/version.h)
- DEST="$DEPLOY_PATH/trezor-emu-core-$VERSION-$CI_COMMIT_SHORT_SHA" - DEST="$DEPLOY_PATH/trezor-emu-core-v$VERSION"
- echo "Deploying to $DEST" - echo "Deploying to $DEST"
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 core/build/unix/trezor-emu-core" - nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 core/build/unix/trezor-emu-core"
- rsync --delete -va core/build/unix/trezor-emu-core "$DEST" - rsync --delete -va core/build/unix/trezor-emu-core "$DEST"
@ -205,7 +205,7 @@ release legacy unix debug deploy:
- legacy emu regular debug build - legacy emu regular debug build
script: script:
- export VERSION=$(./tools/version.sh legacy/firmware/version.h) - export VERSION=$(./tools/version.sh legacy/firmware/version.h)
- DEST="$DEPLOY_PATH/trezor-emu-legacy-$VERSION-$CI_COMMIT_SHORT_SHA" - DEST="$DEPLOY_PATH/trezor-emu-legacy-v$VERSION"
- echo "Deploying to $DEST" - echo "Deploying to $DEST"
- nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 legacy/firmware/trezor.elf" - nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 legacy/firmware/trezor.elf"
- rsync --delete -va legacy/firmware/trezor.elf "$DEST" - rsync --delete -va legacy/firmware/trezor.elf "$DEST"