summaryrefslogtreecommitdiff
path: root/cli/tools/compile.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-08-14 21:42:23 -0700
committerGitHub <noreply@github.com>2024-08-15 10:12:23 +0530
commit7ca95fc999f22cb0eb312e02f8c40d7589b35b7e (patch)
tree9d4b27eb8f180aafba40c869db6acf20ea5f5423 /cli/tools/compile.rs
parente92a05b5518e5fd30559c96c5990b08657bbc3e4 (diff)
feat: `deno compile --icon <ico>` (#25039)
Add `--icon` flag to set deno compile'd executable icon on Windows. ``` deno compile --icon icon.ico game.tsx ``` Depends on https://github.com/denoland/sui/pull/24 <img width="447" alt="image" src="https://github.com/user-attachments/assets/7f6f3aa0-6872-4975-ae9d-06701b7684b8"> Closes https://github.com/denoland/deno/issues/8912
Diffstat (limited to 'cli/tools/compile.rs')
-rw-r--r--cli/tools/compile.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tools/compile.rs b/cli/tools/compile.rs
index 6cf2ccf77..90ee0e270 100644
--- a/cli/tools/compile.rs
+++ b/cli/tools/compile.rs
@@ -361,6 +361,7 @@ mod test {
args: Vec::new(),
target: Some("x86_64-unknown-linux-gnu".to_string()),
no_terminal: false,
+ icon: None,
include: vec![],
},
&std::env::current_dir().unwrap(),
@@ -385,6 +386,7 @@ mod test {
args: Vec::new(),
target: Some("x86_64-pc-windows-msvc".to_string()),
include: vec![],
+ icon: None,
no_terminal: false,
},
&std::env::current_dir().unwrap(),