1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:27:35 +00:00

pdf+MacPDF: Use new Build/Root/lagom/res directory

This commit is contained in:
Nico Weber 2024-01-30 09:27:26 -05:00 committed by Andrew Kaster
parent d1036c915d
commit 70eac0fbe8
2 changed files with 6 additions and 6 deletions

View file

@ -18,12 +18,12 @@
{
// FIXME: Copy the fonts to the bundle or something
// Get from `Build/lagom/bin/MacPDF.app/Contents/MacOS/MacPDF` to `.`.
// Get from `Build/lagom/bin/MacPDF.app/Contents/MacOS/MacPDF` to `Build/lagom/Root/res`.
NSString* source_root = [[NSBundle mainBundle] executablePath];
for (int i = 0; i < 7; ++i)
for (int i = 0; i < 5; ++i)
source_root = [source_root stringByDeletingLastPathComponent];
auto source_root_string = ByteString([source_root UTF8String]);
Core::ResourceImplementation::install(make<Core::ResourceImplementationFile>(MUST(String::formatted("{}/Base/res", source_root_string))));
Core::ResourceImplementation::install(make<Core::ResourceImplementationFile>(MUST(String::formatted("{}/Root/res", source_root_string))));
}
- (void)applicationWillTerminate:(NSNotification*)aNotification