From f8aaac938c14f253a996fd48833936e892c8ac50 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 22:10:13 +0000 Subject: [PATCH 1/6] Initial plan From 0d5432b37cadfe4588f65a4a528c98e97d6cf1e2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 22:13:14 +0000 Subject: [PATCH 2/6] Add Dev Container configuration with C++ and XMake support Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com> --- .devcontainer/Dockerfile | 4 ++++ .devcontainer/devcontainer.json | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..f5d317e --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,4 @@ +FROM mcr.microsoft.com/devcontainers/cpp:debian + +RUN curl -fsSL https://xmake.io/shget.text | bash +ENV PATH="/root/.local/bin:${PATH}" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..fe7fd8d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "name": "C++", + "build": { "dockerfile": "Dockerfile" }, + "customizations": { + "vscode": { + "extensions": [ + "tboox.xmake-vscode", + "ms-vscode.cpptools-extension-pack", + "redhat.vscode-yaml", + "GitHub.copilot" + ] + } + } +} From f66ca0254a4bd5a26eb47158d99a518ce1993d67 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 22:14:04 +0000 Subject: [PATCH 3/6] Use HOME variable for PATH in Dockerfile for flexibility Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com> --- .devcontainer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index f5d317e..35c1c56 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ FROM mcr.microsoft.com/devcontainers/cpp:debian RUN curl -fsSL https://xmake.io/shget.text | bash -ENV PATH="/root/.local/bin:${PATH}" +ENV PATH="${HOME}/.local/bin:${PATH}" From 44282ddf7de056e86f30bae2604ad093a1fb64b9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 22:15:45 +0000 Subject: [PATCH 4/6] Revert to /root/.local/bin for correct XMake PATH in Dockerfile Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com> --- .devcontainer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 35c1c56..f5d317e 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ FROM mcr.microsoft.com/devcontainers/cpp:debian RUN curl -fsSL https://xmake.io/shget.text | bash -ENV PATH="${HOME}/.local/bin:${PATH}" +ENV PATH="/root/.local/bin:${PATH}" From 1f2f6b34c13f3f791cb5913fab23dd127d346205 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 22:38:32 +0000 Subject: [PATCH 5/6] Add all VS Code extensions and simplify cloud dev environment docs Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com> --- .devcontainer/devcontainer.json | 7 ++++++- ReadMe.md | 5 ----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fe7fd8d..f0b9a0e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,8 +6,13 @@ "extensions": [ "tboox.xmake-vscode", "ms-vscode.cpptools-extension-pack", + "yzhang.markdown-all-in-one", "redhat.vscode-yaml", - "GitHub.copilot" + "esbenp.prettier-vscode", + "eamodio.gitlens", + "github.vscode-pull-request-github", + "github.vscode-github-actions", + "github.copilot" ] } } diff --git a/ReadMe.md b/ReadMe.md index cce0ba6..1d56539 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -13,11 +13,6 @@ The simplest C/C++ project template for beginners. 2. Click the **[Open in GitHub codespaces][2] button** on the top of ReadMe file, then an **online VS Code development environment** will be started immediately -3. Run following command in VS Code terminal to install XMake: - ```bash - curl -fsSL https://xmake.io/shget.text | bash - ``` - ## Install minimal All-in-One Development Environment in your computer ### Windows From e0e5ee33e8bd7914b1d748265382884bdaa67675 Mon Sep 17 00:00:00 2001 From: South Drifter Date: Fri, 5 Dec 2025 10:53:20 +0000 Subject: [PATCH 6/6] [fix] Installing User of XMake CLI --- .devcontainer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index f5d317e..7ad4927 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ FROM mcr.microsoft.com/devcontainers/cpp:debian +USER vscode RUN curl -fsSL https://xmake.io/shget.text | bash -ENV PATH="/root/.local/bin:${PATH}"