Skip to content

Commit

Permalink
fix build dir for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nestire committed May 21, 2024
1 parent dfb285a commit 68502b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand All @@ -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

Expand Down

0 comments on commit 68502b7

Please sign in to comment.