Update makefile

This commit is contained in:
Stefan Stefanov 2024-02-10 18:16:46 +02:00
parent ec8ced3958
commit 8bc4572ae3

View file

@ -16,12 +16,12 @@ build_release: clean
odin build . -out:${BIN_FOLDER}/${EXE}_rel.exe -o:speed -subsystem:windows
clean:
rm -rf ${BIN_FOLDER}/${EXE}.*
rm -rf ${BIN_FOLDER}/${EXE}_rel.*
rm -rf ${BIN_FOLDER}/*
package: build_release
rm -rf ${BIN_FOLDER}/${REL_FOLDER}
mkdir ${BIN_FOLDER}/${REL_FOLDER}
cp -r ./assets/ ${BIN_FOLDER}/${REL_FOLDER}/
cp ${BIN_FOLDER}/${EXE}_rel.exe ${BIN_FOLDER}/${REL_FOLDER}/${EXE}.exe
tar.exe -a -c -f ${BIN_FOLDER}/release_x64_win.zip ${BIN_FOLDER}/release_x64_win
cd ${BIN_FOLDER} \
&& tar.exe -a -c -f ${REL_FOLDER}.zip ${REL_FOLDER}