This repository has been archived by the owner on Jan 4, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the correct JavaScript environment search path dir
The directory was not being set correctly for packaged builds. In particular base::DIR_SOURCE_ROOT was returning a directory that wasn't correct. In dev builds it would return /Users/bbondy/projects/brave/browser-laptop-bootstrap/src/browser-laptop and in packaged builds that were run from /Users/bbondy/projects/brave/browser-laptop-bootstrap/src/browser-laptop/Brave-darwin-x64/Brave.app it would return /Users/bbondy/projects/brave/browser-laptop-bootstrap/src/. To fix this I just use the resource path's app.asar file if it exists first and only fallback to the search path if that doesn't exist since it only exists in packaged builds. Fix brave/browser-laptop#8195 Auditors: @bridiver
- Loading branch information