From 59303f77f1b4082fb8b907d4f827d818c749ee18 Mon Sep 17 00:00:00 2001 From: dcvz Date: Sun, 19 May 2024 14:48:53 +0200 Subject: [PATCH] Add post creation hooks --- .devcontainer/devcontainer.json | 2 +- .devcontainer/post-create.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/post-create.sh 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