electron/shell/common/asar
trop[bot] 433f9f5e8c
feat: Use DIR_ASSETS path to locate resource bundles (#47950)
* feat: Use DIR_ASSETS path to locate resource bundles

Co-authored-by: Will Anderson <andersonw@dropbox.com>

* Use DIR_ASSETS for calculating ASAR relative paths

Co-authored-by: Will Anderson <andersonw@dropbox.com>

* Add test to verify 'assets' matches parent dir of 'exe'

Co-authored-by: Will Anderson <andersonw@dropbox.com>

* Add Mac-specific test for assets path (but it is failing)

Co-authored-by: Will Anderson <andersonw@dropbox.com>

* test: Update app.getPath('assets') to expect an exception on Mac

Co-authored-by: Will Anderson <andersonw@dropbox.com>

* docs: Update docs for 'assets' path to indicate that it's only available on Windows + Linux

Co-authored-by: Will Anderson <andersonw@dropbox.com>

* fix: Don't define 'assets' mapping on macOS

Co-authored-by: Will Anderson <andersonw@dropbox.com>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Will Anderson <andersonw@dropbox.com>
2025-08-06 19:40:11 +02:00
..
archive.cc chore: bump chromium to 138.0.7156.0 (main) (#46902) 2025-05-02 21:06:50 -04:00
archive.h perf: use absl::flat_hash_map instead of std::unordered_map (#46202) 2025-03-24 10:09:14 +01:00
archive_mac.mm chore: remove unused #includes (#42971) 2024-07-22 11:31:32 +02:00
archive_win.cc feat: Use DIR_ASSETS path to locate resource bundles (#47950) 2025-08-06 19:40:11 +02:00
asar_util.cc refactor: migrate hashing code to new upstream crypto::hash API (#46237) 2025-03-25 15:01:17 -05:00
asar_util.h refactor: take a uint8_t span in ValidateIntegrityOrDie() (#43592) 2024-09-06 20:22:44 -05:00
scoped_temporary_file.cc fix: -Wunsafe-buffer-usage warnings in asar file IO (#43624) 2024-09-09 16:34:42 -04:00
scoped_temporary_file.h chore: replace absl::optional<T> with std::optional<T> (#40928) 2024-01-10 16:23:35 -06:00