diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index df92e03..2cd9ba7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,7 +10,7 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - "postCreateCommand": "git submodule update --init --recursive" + "postCreateCommand": "./devcontainer/post-create.sh", // Configure tool-specific properties. // "customizations": {}, diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh new file mode 100644 index 0000000..4393443 --- /dev/null +++ b/.devcontainer/post-create.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e + +# Clone ZRE repo +git clone $ZRE_REPO_WITH_PATH +./zre/process.sh + +# Run N64Recomp +N64Recomp us.rev1.toml +RSPRecomp aspMain.us.rev1.toml +RSPRecomp njpgdspMain.us.rev1.toml + +# Cleanup +rm -rf zre + +# Initialize submodules +git submodule update --init --recursive