Skip to content

Instantly share code, notes, and snippets.

@adamdriscoll
Created May 15, 2017 11:32
Show Gist options
  • Save adamdriscoll/6a3197790661b5b3e841f7b22b13f469 to your computer and use it in GitHub Desktop.
Save adamdriscoll/6a3197790661b5b3e841f7b22b13f469 to your computer and use it in GitHub Desktop.
VSCode task.json to add a build command to package a PowerShell script as an exe
{
"version": "0.1.0",
"tasks": [
{
"taskName": "build",
"command": "powershell",
"args": ["Merge-Script -Script '${file}' -Bundle -OutputPath '${fileDirname}\\out' -OutputType Executable"],
"isBuildCommand": true,
"showOutput": "silent"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment