mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-22 18:26:39 +00:00
Update build.sh
to archive debug ELFs after build (#102)
This commit is contained in:
parent
421f0f1482
commit
da8165e778
1 changed files with 4 additions and 3 deletions
7
build.sh
7
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
|
||||
|
|
Loading…
Reference in a new issue