Skip to content

Commit

Permalink
更新"tasks"配置为Linux和Windows分别编译
Browse files Browse the repository at this point in the history
  • Loading branch information
scgm0 committed Jul 16, 2024
1 parent 2fbc5bd commit c852827
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit c852827

Please sign in to comment.