3 Commits

Author SHA1 Message Date
Jaby
16d7bb9216 Recommend Project Temapltes 2025-01-07 23:20:18 +01:00
Jaby
58765c2e98 Update scripts and template for VS Code 2025-01-07 23:17:07 +01:00
Jaby
3bc66763bd Normalize line endings - whatever 2025-01-07 23:01:08 +01:00
6 changed files with 14 additions and 23 deletions

3
.gitattributes vendored
View File

@@ -3,4 +3,5 @@
*.png filter=lfs diff=lfs merge=lfs -text *.png filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text *.mp3 filter=lfs diff=lfs merge=lfs -text
*.TMD filter=lfs diff=lfs merge=lfs -text *.TMD filter=lfs diff=lfs merge=lfs -text
* text=auto eol=lf
* text=auto eol=ls

View File

@@ -1,7 +1,7 @@
FROM "ubuntu:22.04" FROM "ubuntu:22.04"
WORKDIR /usr/scripts WORKDIR /usr/scripts
ADD ["scripts/make_gcc.sh", "/usr/scripts"] ADD ["scripts/make_gcc.sh", "/usr/scripts"]
WORKDIR /tmp WORKDIR /usr
RUN apt update && /usr/scripts/make_gcc.sh RUN apt update && /usr/scripts/make_gcc.sh
WORKDIR /usr/scripts WORKDIR /usr/scripts
@@ -12,7 +12,6 @@ ADD ["scripts/install_pop-fe.sh", "scripts/run_pop_fe.sh", "/usr/scripts"]
WORKDIR /usr/jaby_engine/bin/extern WORKDIR /usr/jaby_engine/bin/extern
RUN apt update && /usr/scripts/install_pop-fe.sh RUN apt update && /usr/scripts/install_pop-fe.sh
WORKDIR /project
ENV PATH="/jaby_engine/bin:/root/.cargo/bin:${PATH}" ENV PATH="/jaby_engine/bin:/root/.cargo/bin:${PATH}"
ENV JABY_ENGINE_PATH=/jaby_engine ENV JABY_ENGINE_PATH=/jaby_engine
ENV JABY_ENGINE_DIR=/jaby_engine ENV JABY_ENGINE_DIR=/jaby_engine

View File

@@ -2,16 +2,12 @@
podman build -t jaby_engine . podman build -t jaby_engine .
if [[ -z "${JABY_ENGINE_PATH}" ]]; then if [[ -z "${JABY_ENGINE_PATH}" ]]; then
echo "Setting JABY_ENGINE_PATH to parent folder" echo "Setting JABY_ENGINE_PATH to parent folder"
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
export JABY_ENGINE_PATH="$(dirname "$SCRIPT_DIR")" JABY_ENGINE_PATH="$(dirname "$SCRIPT_DIR")"
if cat /etc/passwd | grep $USER | grep bash > /dev/null; then cat << End >> ~/.profile
# Bash found export JABY_ENGINE_PATH="$JABY_ENGINE_PATH"
echo "export JABY_ENGINE_PATH="$JABY_ENGINE_PATH"" >> ~/.bashrc End
source ~/.profile
else
# No bash found
echo "Please add export JABY_ENGINE_PATH="$JABY_ENGINE_PATH" to your shell profile"
fi
fi fi

View File

@@ -61,5 +61,5 @@ if [ $? -ne 0 ]; then
fi fi
echo "<<< Delete GCC folder >>>" echo "<<< Delete GCC folder >>>"
cd /tmp cd /usr
rm -fr psx-gcc rm -fr psx-gcc

View File

@@ -10,7 +10,6 @@
- [JabyEngine](#jabyengine-1) - [JabyEngine](#jabyengine-1)
- [PoolBox](#poolbox) - [PoolBox](#poolbox)
- [Special thanks](#special-thanks) - [Special thanks](#special-thanks)
- [Support this project](#support-this-project)
# JabyEngine # JabyEngine
## About ## About
@@ -89,8 +88,3 @@ These projects shall eventually turn into useful extensions for the engine. So f
* Nicolas Noble * Nicolas Noble
* Pyravia * Pyravia
* Sickle * Sickle
# Support this project
* Try it out
* Open Issues or Pull Requests
* [Support it on KoFi](https://ko-fi.com/jabyspielkiste)

View File

@@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
dst_name=JabyEngine-PSX_Game
dst="$HOME/.config/Code/User/ProjectTemplates" dst="$HOME/.config/Code/User/ProjectTemplates"
mkdir -p $dst mkdir -p $dst
cp -r "JabyEngine-PSX_Game" "$dst" cp -r "$dst_name" "$dst"