Release scripts
This commit is contained in:
parent
5069b41630
commit
d3c8396bae
2 changed files with 12 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
*.tar.gz
|
||||
build
|
||||
release
|
13
Justfile
13
Justfile
|
@ -12,15 +12,22 @@ objects: mkdir
|
|||
asm: mkdir
|
||||
cd build && gcc -S -masm=intel -I ../lib -Wall -Werror -fpic ../src/*.c -O3
|
||||
|
||||
release: mkdir build
|
||||
release: mkdir build && check-releases
|
||||
mkdir release -p
|
||||
strip build/main
|
||||
tar -czvf build.tar.gz build
|
||||
cd release && tar -czvf build.tar.gz ../build &> /dev/null
|
||||
cd release && 7za a -tzip build.zip ../build -mx=9 &> /dev/null
|
||||
|
||||
check-releases:
|
||||
sha256sum release/* > release/sha256sums.txt
|
||||
tar -tf release/build.tar.gz &>/dev/null # Checking if tar is valid
|
||||
7za t release/build.zip &>/dev/null # Checking if zip is valid
|
||||
|
||||
mkdir:
|
||||
mkdir build -p
|
||||
|
||||
clean:
|
||||
rm *.tar.gz -f
|
||||
rm -rf release
|
||||
rm -rf build
|
||||
|
||||
hex: build
|
||||
|
|
Loading…
Reference in a new issue