From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- .../crashreporter/client/app/src/ui/macos/plist.rs | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 toolkit/crashreporter/client/app/src/ui/macos/plist.rs (limited to 'toolkit/crashreporter/client/app/src/ui/macos/plist.rs') diff --git a/toolkit/crashreporter/client/app/src/ui/macos/plist.rs b/toolkit/crashreporter/client/app/src/ui/macos/plist.rs new file mode 100644 index 0000000000..a5bbe0aa0a --- /dev/null +++ b/toolkit/crashreporter/client/app/src/ui/macos/plist.rs @@ -0,0 +1,44 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +//! The embedded Info.plist file. + +const DATA: &[u8] = br#" + + + + CFBundleDevelopmentRegion + English + CFBundleDisplayName + Crash Reporter + CFBundleExecutable + crashreporter + CFBundleIdentifier + org.mozilla.crashreporter + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Crash Reporter + CFBundlePackageType + APPL + CFBundleVersion + 1.0 + LSHasLocalizedDisplayName + + NSRequiresAquaSystemAppearance + + NSPrincipalClass + NSApplication + +"#; + +const N: usize = DATA.len(); + +const PTR: *const [u8; N] = DATA.as_ptr() as *const [u8; N]; + +#[used] +#[link_section = "__TEXT,__info_plist"] +// # Safety +// The array pointer is created from `DATA` (a slice pointer) with `DATA.len()` as the length. +static PLIST: [u8; N] = unsafe { *PTR }; -- cgit v1.2.3