Skip to content

Commit

Permalink
Look for setup files in setup app bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed Mar 14, 2024
1 parent fa63bee commit 70c8ffe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/setup/helpers/manifests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ namespace {
// Same as exe dir
return File::getSpecialLocation(File::SpecialLocationType::currentExecutableFile).getParentDirectory();
#elif __APPLE__
// Same as dir containing bundle
return File::getSpecialLocation(File::SpecialLocationType::currentApplicationFile).getParentDirectory();
// For mac, these are in "Resources" directory of Setup bundle
return File::getSpecialLocation(File::SpecialLocationType::currentApplicationFile)
.getChildFile("Contents").getChildFile("Resources");
#else
throw std::runtime_error("Unsupported OS");
#endif
Expand Down

0 comments on commit 70c8ffe

Please sign in to comment.