From a4b6ca020a9ecf9406a84e6ed85d626f4bf752b6 Mon Sep 17 00:00:00 2001 From: Rim Date: Thu, 20 Feb 2025 06:39:52 -0500 Subject: [PATCH] chore: add vscode build tasks --- .gitignore | 1 - .vscode/tasks.json | 67 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 64c35ae..130a33a 100644 --- a/.gitignore +++ b/.gitignore @@ -58,7 +58,6 @@ build # Visual Studio 2015 cache/options directory .vs/ -.vscode # MSTest test Results [Tt]est[Rr]esult*/ diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..6ebe1c1 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,67 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "🔄 Generate Solution", + "type": "shell", + "command": "git submodule update --init --recursive && tools\\premake5 vs2022", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "🔨 Build Executable", + "type": "shell", + "command": "${input:msbuildPath}", + "args": [ + "build\\s1-mod.sln", + "/p:Configuration=Release", + "/p:Platform=x64" + ], + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + }, + "dependsOn": "🔄 Generate Solution" + }, + { + "label": "🔧 Compile Installer", + "type": "shell", + "command": "installer\\compile.bat", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "🚀 Full Build", + "type": "shell", + "dependsOn": [ + "🔄 Generate Solution", + "🔨 Build Executable", + "🔧 Compile Installer" + ], + "dependsOrder": "sequence", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + // "runOptions": { + // "runOn": "folderOpen" + // } + } + ], + "inputs": [ + { + "id": "msbuildPath", + "type": "promptString", + "description": "Enter the full path to msbuild.exe", + "default": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\msbuild.exe" + } + ] +}