diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-07-31 21:15:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-01 09:45:13 +0530 |
| commit | 5bd76609f7f3116b2804f1be24320d11bc45e151 (patch) | |
| tree | fba6d738e2f5c6cdd5c6962298ca6bb1b80d3d3b /Cargo.lock | |
| parent | f57745fe2106a4d26dd2209e1b2cacb2d6430245 (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 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock index f33233ab7..5906abe3f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1093,6 +1093,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41b319d1b62ffbd002e057f36bebd1f42b9f97927c9577461d855f3513c4289f" [[package]] +name = "debug-ignore" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffe7ed1d93f4553003e20b629abe9085e1e81b1429520f897f8f8860bc6dfc21" + +[[package]] name = "debugid" version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1160,6 +1166,7 @@ dependencies = [ "junction", "lazy-regex", "libc", + "libsui", "libz-sys", "log", "lsp-types", @@ -2525,6 +2532,19 @@ dependencies = [ ] [[package]] +name = "editpe" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48cede2bb1b07dd598d269f973792c43e0cd92686d3b452bd6e01d7a8eb01211" +dependencies = [ + "debug-ignore", + "indexmap", + "log", + "thiserror", + "zerocopy", +] + +[[package]] name = "either" version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -4026,6 +4046,19 @@ dependencies = [ ] [[package]] +name = "libsui" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c2fedcf6cb4dd935f94a90e1c4300c727fe7112b8455615e902828c7401f84d" +dependencies = [ + "editpe", + "libc", + "sha2", + "windows-sys 0.48.0", + "zerocopy", +] + +[[package]] name = "libz-sys" version = "1.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -8281,6 +8314,7 @@ version = "0.7.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" dependencies = [ + "byteorder", "zerocopy-derive", ] |
