From da8165e7789144b7bd4ea8d5e0a1bc7f2d2bb634 Mon Sep 17 00:00:00 2001 From: Whovian9369 Date: Sat, 4 Dec 2021 01:14:35 -0500 Subject: [PATCH] Update `build.sh` to archive debug ELFs after build (#102) --- build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index cdeed17..2e0db14 100644 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash cd "$(dirname "${BASH_SOURCE[0]}")" -archive_filename="nxdumptool-rewrite_poc_$(git rev-parse --short HEAD).7z" +archive_filename="nxdumptool-rewrite_poc_$(git rev-parse --short HEAD)" rm -f ./*.7z @@ -33,7 +33,7 @@ for f in ./code_templates/*.c; do mkdir ./code_templates/tmp/$filename cp ./$filename.nro ./code_templates/tmp/$filename/$filename.nro - #cp ./$filename.elf ./code_templates/tmp/$filename/$filename.elf + cp ./$filename.elf ./code_templates/tmp/$filename/$filename.elf make BUILD_TYPE="$filename" clean done @@ -41,7 +41,8 @@ done make clean_all cd ./code_templates/tmp -7z a ../../$archive_filename * +7z a ../../"$archive_filename.7z" */*.nro +7z a ../../"$archive_filename-Debug_ELFs.7z" */*.elf cd ../.. rm -f ./source/main.c