1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-09 20:21:45 +00:00

Update build.sh to archive debug ELFs after build (#102)

This commit is contained in:
Whovian9369 2021-12-04 01:14:35 -05:00 committed by GitHub
parent 421f0f1482
commit da8165e778
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" 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 rm -f ./*.7z
@ -33,7 +33,7 @@ for f in ./code_templates/*.c; do
mkdir ./code_templates/tmp/$filename mkdir ./code_templates/tmp/$filename
cp ./$filename.nro ./code_templates/tmp/$filename/$filename.nro 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 make BUILD_TYPE="$filename" clean
done done
@ -41,7 +41,8 @@ done
make clean_all make clean_all
cd ./code_templates/tmp cd ./code_templates/tmp
7z a ../../$archive_filename * 7z a ../../"$archive_filename.7z" */*.nro
7z a ../../"$archive_filename-Debug_ELFs.7z" */*.elf
cd ../.. cd ../..
rm -f ./source/main.c rm -f ./source/main.c