Skip to content

Commit

Permalink
BUILD(macos): Fix plugins not getting bundled
Browse files Browse the repository at this point in the history
If the osxdist script was not executed within the build directory, it
would not bundle the built plugins (most notably the Link plugin) as it
was using a relative path and was ignoring the binary dir command-line
option.

This is remedied by this commit.

Fixes mumble-voip#5571
  • Loading branch information
Krzmbrzl committed May 8, 2022
1 parent c4abb61 commit 4e2e53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macx/scripts/osxdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def copy_plugins(self):
dst = os.path.join(self.bundle, 'Contents', 'Plugins')
if not os.path.exists(dst):
os.makedirs(dst)
for plugin in glob.glob('plugins/*.dylib'):
for plugin in glob.glob(os.path.join(options.binary_dir, 'plugins') + '/*.dylib'):
shutil.copy(plugin, dst)

def update_plist(self):
Expand Down

0 comments on commit 4e2e53d

Please sign in to comment.