This is both a Powershell and Bash script that runs a Deno script with the required deno binary and javascript dependencies downloaded to the same directory the executable is placed in. This way, everything is portable.
- Download the repository and unzip it so you have a directory with just
main.ps1
andmain
. - Update the scripts to run your deno script, either by manually replacing the URL after
deno run
with your parameters in bothmain
andmain.ps1
or by running the executable with your parameters as command line arguments. The parameters are a url or path to your deno script and any required permissions. - You might need to make
main
executable on macOS or Linux withchmod +x main
. - Run
main.ps1
if you are on windows ormain
if you are on macOS or Linux.
- For more info about Deno, visit https://deno.land
- For details about Denos permissions, visit https://deno.land/manual/getting_started/permissions