From 28a5921564867f496069b76bc50467986bcaf637 Mon Sep 17 00:00:00 2001 From: Dillon DuPont Date: Wed, 11 Jun 2025 14:54:05 -0400 Subject: [PATCH] Add build step --- .devcontainer/post-install.sh | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/.devcontainer/post-install.sh b/.devcontainer/post-install.sh index 78968b4a..5c06f57b 100644 --- a/.devcontainer/post-install.sh +++ b/.devcontainer/post-install.sh @@ -1,32 +1,11 @@ #!/usr/bin/env bash -if [ "$1" == "--help" ]; then - - cat << EOF -Run from project folder, auto opens vscode in some mode depending on folder contents: -* Folder contains .devcontainer/devcontainer.json and .code-workspace file: vscode opens in devcontainer, workspace file is loaded -* Folder contains .devcontainer/devcontainer.json: vscode opens in devcontainer -* Folder contains .code-workspace file: Workspace is opened in vscode -* Folder contains no .code-workspace and no devcontainer: vscode is opened, loading contents of the current folder +# Run /scripts/build.sh +./scripts/build.sh -This script was created for WSL2, probably works the same way for native Linux, but untested - -Assumes the following filestructure: - - -| -| -- .code-workspace -| -- ./devcontainer/devcontainer.json -| -- ... - -Note: If you set workspaceFolder or workspaceMount in devcontainer.json this may cause issues - Also, if .devcontainer/devcontainer.json is not in the root of your repository, you may get in trouble - refer to https://code.visualstudio.com/remote/advancedcontainers/change-default-source-mount - -EOF - exit 0 -fi +# Open VSCode .code-workspace file +# https://gist.github.com/Kaptensanders/79da7c1547751fb43c75904e3110bbf9 # check for dependencies if ! command -v xxd &> /dev/null; then