Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
.PHONY: quality style test unity-test

# Switch between the download scripts based on OS
ifeq ($(OS),Windows_NT)
SCRIPT = scripts\\get_all_examples_from_hub.bat
else
SCRIPT = bash scripts/get_all_examples_from_hub.sh
endif

# Format source code automatically
style:
black --line-length 120 --target-version py310 tests godot_rl examples
Expand All @@ -15,7 +22,8 @@ test:
python -m pytest tests/

download_examples:
bash scripts/get_all_examples_from_hub.sh
@echo "Running script: $(SCRIPT)"
$(SCRIPT)

wheel:
rm dist/*
Expand Down
14 changes: 14 additions & 0 deletions scripts/get_all_examples_from_hub.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
REM HF login (TODO)

set EXAMPLE_NAMES=BallChase FPS FlyBy JumperHard Racer Ships Racer ItemSortingCart AirHockey "3DCarParking" DownFall

for %%E in (%EXAMPLE_NAMES%) do (
echo Downloading example: %%E
REM Assuming 'gdrl.env_from_hub' is a command you have set up on your system
gdrl.env_from_hub -r edbeeching/godot_rl_%%E

REM Skipping the chmod equivalent, as it's not required in Windows
REM If execution permission needed for binaries, consider icacls or similar.
)

pause
Loading