From 68502b74d625b122bb985ad09fa6ad0c8b0057fb Mon Sep 17 00:00:00 2001 From: nestire Date: Mon, 29 Apr 2024 12:40:35 +0200 Subject: [PATCH] fix build dir for ci --- create-release.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/create-release.sh b/create-release.sh index aeae81314..344d5e969 100755 --- a/create-release.sh +++ b/create-release.sh @@ -5,6 +5,7 @@ targets="x230-hotp-maximized t430-hotp-maximized nitropad-nv41 nitropad-ns50" version=$(git describe --dirty) +build_dir="/builds/nitrokey/heads/build/x86/" rm -rf artifacts mkdir -p artifacts @@ -19,9 +20,8 @@ do mytarget=$(echo $target | sed -e 's/hotp-maximized/maximized/g' | sed -e 's/nitropad-//g') - - cp build/x86/${target}/nitrokey-${target}-${version}.zip artifacts/firmware-nitropad-${mytarget}-${version}.zip - cp build/x86/${target}/nitrokey-${target}-${version}.rom artifacts/firmware-nitropad-${mytarget}-${version}.rom + cp ${build_dir}${target}/nitrokey-${target}-${version}.zip artifacts/firmware-nitropad-${mytarget}-${version}.zip + cp ${build_dir}${target}/nitrokey-${target}-${version}.rom artifacts/firmware-nitropad-${mytarget}-${version}.rom # assemble "old style" .npf from new .zip format for backwards compatibility rm -rf /tmp/heads/ @@ -37,8 +37,8 @@ do if [[ "$target" = "t430-hotp-maximized" ]] || [[ "$target" = "x230-hotp-maximized" ]]; then - cp build/x86/${target}/heads-${target}-${version}-top.rom artifacts/firmware-nitropad-${mytarget}-${version}-top.rom - cp build/x86/${target}/heads-${target}-${version}-bottom.rom artifacts/firmware-nitropad-${mytarget}-${version}-bottom.rom + cp ${build_dir}${target}/heads-${target}-${version}-top.rom artifacts/firmware-nitropad-${mytarget}-${version}-top.rom + cp ${build_dir}${target}/heads-${target}-${version}-bottom.rom artifacts/firmware-nitropad-${mytarget}-${version}-bottom.rom fi