8000 BUILD(macOS): Only include ".dylib" files in bundle's "Plugins" directory by davidebeatrici · Pull Request #4649 · mumble-voip/mumble · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BUILD(macOS): Only include ".dylib" files in bundle's "Plugins" directory #4649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

davidebeatrici
Copy link
Member

In addition to the plugins, the plugins folder in the build directory also contains temporary build files.

As the script was copying the entire tree, those files made their way into the bundle.

This commit fixes the issue by explicitly copying only files that end with .dylib.

@davidebeatrici davidebeatrici added build Everything related to compiling/building the code macOS labels Dec 23, 2020
@davidebeatrici davidebeatrici force-pushed the osxdist-only-include-dylib-plugins branch from 4f3d7cc to fe2bbfb Compare December 24, 2020 00:20
…tory

In addition to the plugins, the "plugins" folder in the build directory also contains temporary build files.

As the script was copying the entire tree, those files made their way into the bundle.

This commit fixes the issue by explicitly copying only files that end with ".dylib".
@davidebeatrici davidebeatrici force-pushed the osxdist-only-include-dylib-plugins branch from fe2bbfb to f19a645 Compare December 24, 2020 01:27
@davidebeatrici davidebeatrici merged commit db4b6be into mumble-voip:master Dec 24, 2020
shutil.copytree(os.path.join(options.binary_dir, 'plugins'), dst, symlinks=True)
if not os.path.exists(dst):
os.makedirs(dst)
for plugin in glob.glob('plugins/*.dylib'):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should've been:

for plugin in glob.glob(os.path.join(options.binary_dir, 'plugins/*.dylib')):

CI doesn't show any issues because we use the build folder as working directory.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script could definitely benefit from a revamp/rewrite.

@Krzmbrzl What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably true. But personally I don't think I have the time nor the motivation to do it myself 🤷

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, as long as it works we can keep it like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Everything related to compiling/building the code macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0