From d97d96714695eb6407017917d889823e1ef24802 Mon Sep 17 00:00:00 2001 From: kennethloeffler Date: Sun, 10 Nov 2024 23:01:51 +0000 Subject: [PATCH] Modify build script to include a plugin subfolder --- build.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/build.rs b/build.rs index 7a95adf33..e423b61be 100644 --- a/build.rs +++ b/build.rs @@ -55,13 +55,15 @@ fn main() -> Result<(), anyhow::Error> { let snapshot = VfsSnapshot::dir(hashmap! { "default.project.json" => snapshot_from_fs_path(&root_dir.join("plugin.project.json"))?, - "fmt" => snapshot_from_fs_path(&plugin_dir.join("fmt"))?, - "http" => snapshot_from_fs_path(&plugin_dir.join("http"))?, - "log" => snapshot_from_fs_path(&plugin_dir.join("log"))?, - "rbx_dom_lua" => snapshot_from_fs_path(&plugin_dir.join("rbx_dom_lua"))?, - "src" => snapshot_from_fs_path(&plugin_dir.join("src"))?, - "Packages" => snapshot_from_fs_path(&plugin_dir.join("Packages"))?, - "Version.txt" => snapshot_from_fs_path(&plugin_dir.join("Version.txt"))?, + "plugin" => VfsSnapshot::dir(hashmap! { + "fmt" => snapshot_from_fs_path(&plugin_dir.join("fmt"))?, + "http" => snapshot_from_fs_path(&plugin_dir.join("http"))?, + "log" => snapshot_from_fs_path(&plugin_dir.join("log"))?, + "rbx_dom_lua" => snapshot_from_fs_path(&plugin_dir.join("rbx_dom_lua"))?, + "src" => snapshot_from_fs_path(&plugin_dir.join("src"))?, + "Packages" => snapshot_from_fs_path(&plugin_dir.join("Packages"))?, + "Version.txt" => snapshot_from_fs_path(&plugin_dir.join("Version.txt"))?, + }), }); let out_path = Path::new(&out_dir).join("plugin.bincode");