From 104ae5faca9532aaa2d2d1b288a538f47bf2edfa Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 15 Apr 2024 10:46:45 +0200 Subject: [PATCH] build(cli): update compile task and ignore bins --- .gitignore | 1 + deno.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba077a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin diff --git a/deno.json b/deno.json index a02c8c5..b5fcabd 100644 --- a/deno.json +++ b/deno.json @@ -7,7 +7,7 @@ "types": "./types.ts" }, "tasks": { - "compile:send": "deno compile --allow-read --allow-env --allow-sys=osRelease --allow-run=mail,whoami ./cli/send.ts", + "compile": "deno compile --allow-read --allow-env --allow-net=0.0.0.0 --allow-sys=osRelease,networkInterfaces --allow-run=/usr/sbin/sendmail,whoami --output=bin/cohamail --target=x86_64-unknown-linux-gnu ./cli.ts", "cli": "deno run --allow-read --allow-env --allow-net=0.0.0.0 --allow-sys=osRelease,networkInterfaces --allow-run=/usr/sbin/sendmail,whoami ./cli.ts", "utils:scp": "scp -O -P 55555 -i C:/Users/Julien/.ssh/id_ed25519_cohabit -r $(pwd) julien@cohabit.fr:/home/julien/cohabit_mail" },