Compare commits
10 Commits
16d7bb9216
...
Alpha-0.0.
| Author | SHA1 | Date | |
|---|---|---|---|
| d03ded6e30 | |||
|
|
c6bb65fae0 | ||
| dd77ab7d74 | |||
|
|
8ef6e3a9df | ||
| 0f48b3aedb | |||
|
|
620283c7b8 | ||
|
|
70fd4bf806 | ||
|
|
0d24b0fb02 | ||
|
|
c6eeb40680 | ||
|
|
de915a0d33 |
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -3,3 +3,4 @@
|
|||||||
*.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
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
{
|
{
|
||||||
"label": "read memory map",
|
"label": "read memory map",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "${env:JABY_ENGINE_PATH}/bin/psxreadmap ${input:output memory map} application/bin/PAL/PSX-${input:build profile}/PoolBox.elf",
|
"command": "${env:JABY_ENGINE_PATH}/bin/psxreadmap ${input:output memory map} application/bin/${input:tv format}/PSX-${input:build profile}/PoolBox.elf",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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 /usr
|
WORKDIR /tmp
|
||||||
RUN apt update && /usr/scripts/make_gcc.sh
|
RUN apt update && /usr/scripts/make_gcc.sh
|
||||||
|
|
||||||
WORKDIR /usr/scripts
|
WORKDIR /usr/scripts
|
||||||
@@ -12,6 +12,7 @@ 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
|
||||||
|
|||||||
@@ -2,12 +2,16 @@
|
|||||||
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)"
|
||||||
JABY_ENGINE_PATH="$(dirname "$SCRIPT_DIR")"
|
export JABY_ENGINE_PATH="$(dirname "$SCRIPT_DIR")"
|
||||||
cat << End >> ~/.profile
|
if cat /etc/passwd | grep $USER | grep bash > /dev/null; then
|
||||||
export JABY_ENGINE_PATH="$JABY_ENGINE_PATH"
|
# Bash found
|
||||||
End
|
echo "export JABY_ENGINE_PATH="$JABY_ENGINE_PATH"" >> ~/.bashrc
|
||||||
source ~/.profile
|
|
||||||
|
else
|
||||||
|
# No bash found
|
||||||
|
echo "Please add export JABY_ENGINE_PATH="$JABY_ENGINE_PATH" to your shell profile"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Made possible by Cody the white tiger
|
# Made possible by Cody the white tiger
|
||||||
|
|
||||||
echo "<<< Install pop-fe >>>"
|
echo "<<< Install pop-fe >>>"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
echo "<<< Install Rust prerequisites >>>"
|
echo "<<< Install Rust prerequisites >>>"
|
||||||
apt install -y curl
|
apt install -y curl
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
echo "<<< Install GCC prerequisites >>>"
|
echo "<<< Install GCC prerequisites >>>"
|
||||||
apt install -y make texinfo g++ gcc git libgmp3-dev libmpfr-dev libmpc-dev flex install-info info bison
|
apt install -y make texinfo g++ gcc git libgmp3-dev libmpfr-dev libmpc-dev flex install-info info bison
|
||||||
|
|
||||||
@@ -61,5 +61,5 @@ if [ $? -ne 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "<<< Delete GCC folder >>>"
|
echo "<<< Delete GCC folder >>>"
|
||||||
cd /usr
|
cd /tmp
|
||||||
rm -fr psx-gcc
|
rm -fr psx-gcc
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Made possible by Cody the white tiger
|
# Made possible by Cody the white tiger
|
||||||
|
|
||||||
cd /usr/jaby_engine/bin/extern/pop-fe
|
cd /usr/jaby_engine/bin/extern/pop-fe
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
- [JabyEngine](#jabyengine-1)
|
- [JabyEngine](#jabyengine-1)
|
||||||
- [PoolBox](#poolbox)
|
- [PoolBox](#poolbox)
|
||||||
- [Special thanks](#special-thanks)
|
- [Special thanks](#special-thanks)
|
||||||
- [TODO before commit](#todo-before-commit)
|
- [Support this project](#support-this-project)
|
||||||
|
|
||||||
# JabyEngine
|
# JabyEngine
|
||||||
## About
|
## About
|
||||||
@@ -90,6 +90,7 @@ These projects shall eventually turn into useful extensions for the engine. So f
|
|||||||
* Pyravia
|
* Pyravia
|
||||||
* Sickle
|
* Sickle
|
||||||
|
|
||||||
# TODO before commit
|
# Support this project
|
||||||
* Remove `wslpath`
|
* Try it out
|
||||||
* Verify template creation
|
* Open Issues or Pull Requests
|
||||||
|
* [Support it on KoFi](https://ko-fi.com/jabyspielkiste)
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": ["augustocdias.tasks-shell-input"]
|
"recommendations": ["augustocdias.tasks-shell-input", "cantonios.project-templates"]
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"cmake.configureOnOpen": false,
|
"cmake.configureOnOpen": false,
|
||||||
|
|||||||
@@ -11,32 +11,17 @@
|
|||||||
{
|
{
|
||||||
"label": "build",
|
"label": "build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"windows": { // v re-export for WSL v re-export for WSL
|
"command": "${env:JABY_ENGINE_PATH}/scripts/podman_jaby_engine.sh ${workspaceFolder}:. make ${input:project}_${input:target} BUILD_PROFILE=${input:build profile} REGION=${input:region} CUSTOM_CONFIG=${input:custom config}",
|
||||||
"command": "wsl make ${input:project}_${input:target} BUILD_PROFILE=${input:build profile} REGION=${input:region} CUSTOM_CONFIG=${input:custom config} PSX_LICENSE_PATH=$(wslpath ${env:PSX_LICENSE_PATH}) JABY_ENGINE_DIR=$(wslpath ${env:JABY_ENGINE_PATH})",
|
|
||||||
},
|
|
||||||
"linux": {
|
|
||||||
"command": "make ${input:project}_${input:target} BUILD_PROFILE=${input:build profile} REGION=${input:region} CUSTOM_CONFIG=${input:custom config}",
|
|
||||||
},
|
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
},
|
},
|
||||||
"options": {
|
|
||||||
"env": {
|
|
||||||
"PATH": "${env:JABY_ENGINE_PATH}/bin;${env:PATH}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "read memory map",
|
"label": "read memory map",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "psxreadmap.exe ${input:output memory map} application/bin/${input:tv format}/PSX-${input:build profile}/#{ProjectName}.elf",
|
"command": "${env:JABY_ENGINE_PATH}/bin/psxreadmap ${input:output memory map} application/bin/${input:tv format}/PSX-${input:build profile}/#{ProjectName}.elf",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"options": {
|
|
||||||
"env": {
|
|
||||||
"PATH": "${env:JABY_ENGINE_PATH}/bin;${env:PATH}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"inputs": [
|
"inputs": [
|
||||||
@@ -73,7 +58,7 @@
|
|||||||
"type": "command",
|
"type": "command",
|
||||||
"command": "shellCommand.execute",
|
"command": "shellCommand.execute",
|
||||||
"args": {
|
"args": {
|
||||||
"command": "echo ^|^<Default^> && dir /b /a:d",
|
"command": "echo \"|<Default>\" && ls -d */",
|
||||||
"cwd": "${env:JABY_ENGINE_PATH}/config",
|
"cwd": "${env:JABY_ENGINE_PATH}/config",
|
||||||
"fieldSeparator": "|"
|
"fieldSeparator": "|"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
echo off
|
|
||||||
set dst_name=JabyEngine-PSX_Game
|
|
||||||
set dst="%APPDATA%\Code\User\ProjectTemplates\%dst_name%"
|
|
||||||
|
|
||||||
mkdir %dst%
|
|
||||||
xcopy /s %dst_name% %dst%
|
|
||||||
5
template/install.sh
Executable file
5
template/install.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
dst="$HOME/.config/Code/User/ProjectTemplates"
|
||||||
|
|
||||||
|
mkdir -p $dst
|
||||||
|
cp -r "JabyEngine-PSX_Game" "$dst"
|
||||||
Reference in New Issue
Block a user