From c8528279dc8f0d8f8a940df9e097b29f0f821c15 Mon Sep 17 00:00:00 2001 From: scgm0 <2682963017@qq.com> Date: Wed, 17 Jul 2024 05:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0"tasks"=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=BALinux=E5=92=8CWindows=E5=88=86=E5=88=AB=E7=BC=96?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deno.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deno.json b/deno.json index 42783c9..48040d8 100644 --- a/deno.json +++ b/deno.json @@ -1,5 +1,7 @@ { "tasks": { - "compile": "deno compile --allow-read --allow-write --output ./output/ ./main.ts" + "compile": "deno task compile_linux && deno task compile_windows", + "compile_linux": "deno compile --allow-read --allow-write --target x86_64-unknown-linux-gnu --output ./output/ ./main.ts", + "compile_windows": "deno compile --allow-read --allow-write --target x86_64-pc-windows-msvc --output ./output/ ./main.ts" } }