Skip to content

Commit

Permalink
Add "git describe --tags" version number
Browse files Browse the repository at this point in the history
  • Loading branch information
rickgaiser committed Jan 28, 2025
1 parent 46621bd commit 1d59067
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
make copy
mkdir $TARGET
cp *.elf $TARGET/
cp version.txt $TARGET/
cp -r modules/ $TARGET/modules/
cp -r config/ $TARGET/config/
cp ../../README.md $TARGET/
Expand Down Expand Up @@ -72,6 +73,7 @@ jobs:
make copy
mkdir $TARGET
cp *.elf $TARGET/
cp version.txt $TARGET/
cp -r modules/ $TARGET/modules/
cp -r config/ $TARGET/config/
cp ../../README.md $TARGET/
Expand Down Expand Up @@ -107,6 +109,7 @@ jobs:
make copy
mkdir $TARGET
cp *.elf $TARGET/
cp version.txt $TARGET/
cp -r modules/ $TARGET/modules/
cp -r config/ $TARGET/config/
cp ../../README.md $TARGET/
Expand Down Expand Up @@ -142,6 +145,7 @@ jobs:
make copy
mkdir $TARGET
cp *.elf $TARGET/
cp version.txt $TARGET/
cp -r modules/ $TARGET/modules/
cp -r config/ $TARGET/config/
cp ../../README.md $TARGET/
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ obj/
obj.*/

ee/loader/irx/
ee/loader/version.txt
iop/patches/
iop/fileio/
releases/
Expand Down
8 changes: 7 additions & 1 deletion ee/loader/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
GIT_TAG = $(shell git describe --tags)

EE_OBJS = main.o compat.o xparam.o patch.o ee_core_config.o ioprp.o toml.o
EE_INCS = -I../ee_core/include
EE_LIBS = -lfileXio -lpatches
EE_CFLAGS = -DGIT_TAG=\"$(GIT_TAG)\"

EE_NEWLIB_NANO = 1
EE_COMPACT_EXECUTABLE = 1
Expand All @@ -12,7 +15,10 @@ EE_BIN_PACKED = $(EE_BIN_NAME).elf
$(EE_BIN_PACKED): $(EE_BIN)
ps2-packer $< $@ > /dev/null

all: $(EE_BIN_PACKED)
version.txt:
echo $(GIT_TAG) > $@

all: $(EE_BIN_PACKED) version.txt

# TODO:
# SCUS_971.01 Twisted Metal Black (same as opl, when quit to menu the games crash with black screen)
Expand Down
5 changes: 3 additions & 2 deletions ee/loader/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,9 @@ int main(int argc, char *argv[])
off_t iso_size = 0;

printf("--------------------------------\n");
printf("- Neutrino PS2 Device Emulator -\n");
printf("- By Maximus32 -\n");
printf("- Neutrino PS2 Device Emulator\n");
printf("- Version: %s\n", GIT_TAG);
printf("- By Maximus32\n");
printf("--------------------------------\n");

/*
Expand Down

0 comments on commit 1d59067

Please sign in to comment.