summaryrefslogtreecommitdiff
path: root/cli/mainrt.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-07-31 21:15:13 -0700
committerGitHub <noreply@github.com>2024-08-01 09:45:13 +0530
commit5bd76609f7f3116b2804f1be24320d11bc45e151 (patch)
treefba6d738e2f5c6cdd5c6962298ca6bb1b80d3d3b /cli/mainrt.rs
parentf57745fe2106a4d26dd2209e1b2cacb2d6430245 (diff)
feat: codesign for deno compile binaries (#24604)
Uses [sui](https://github.com/littledivy/sui) to inject metadata as a custom section in the denort binary. Metadata is stored as a Mach-O segment on macOS and PE `RT_RCDATA` resource on Windows. Fixes #11154 Fixes https://github.com/denoland/deno/issues/17753 ```cpp deno compile app.tsx # on macOS codesign --sign - ./app # on Windows signtool sign /fd SHA256 .\app.exe ``` --------- Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'cli/mainrt.rs')
-rw-r--r--cli/mainrt.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/mainrt.rs b/cli/mainrt.rs
index aafbf7932..e890b5dc0 100644
--- a/cli/mainrt.rs
+++ b/cli/mainrt.rs
@@ -82,9 +82,7 @@ fn load_env_vars(env_vars: &HashMap<String, String>) {
fn main() {
let args: Vec<_> = env::args_os().collect();
- let current_exe_path = current_exe().unwrap();
- let standalone =
- standalone::extract_standalone(&current_exe_path, Cow::Owned(args));
+ let standalone = standalone::extract_standalone(Cow::Owned(args));
let future = async move {
match standalone {
Ok(Some(future)) => {