Skip to content

Commit e347c36

Browse files
committed
Install Swift Build resource bundles in /usr/share/pm
1 parent 1523ce0 commit e347c36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Utilities/bootstrap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,11 @@ def install_swiftpm(prefix, args):
518518
dest = os.path.join(prefix, "lib", "swift", "pm", "PluginAPI")
519519
install_dylib(args, "PackagePlugin", dest, ["PackagePlugin"])
520520

521+
# Install resource bundles produced during the build.
522+
for file in os.listdir(args.bin_dir):
523+
if file.endswith('.bundle') or file.endswith('.resources'):
524+
install_binary(args, file, os.path.join(os.path.join(prefix, "share"), "pm"))
525+
521526

522527
# Helper function that installs a dynamic library and a set of modules to a particular directory.
523528
def install_dylib(args, library_name, install_dir, module_names):

0 commit comments

Comments
 (0)