fix(plugin install location)

This commit is contained in:
Brooks J Rady 2021-02-23 19:01:23 +00:00
parent 57dc07409d
commit ee65f402c8
2 changed files with 6 additions and 6 deletions

View file

@ -1,10 +1,10 @@
#[macro_export]
macro_rules! asset_map {
($($path:literal),+) => {
($($src:literal => $dst:literal),+) => {
{
let mut assets = std::collections::HashMap::new();
$(
assets.insert($path, include_bytes!(concat!("../", $path)).to_vec());
assets.insert($dst, include_bytes!(concat!("../", $src)).to_vec());
)+
assets
}

View file

@ -32,10 +32,10 @@ pub fn main() {
let project_dirs = ProjectDirs::from("org", "Zellij Contributors", "Zellij").unwrap();
let data_dir = project_dirs.data_dir();
let assets = asset_map! {
"target/status-bar.wasm",
"target/strider.wasm",
"assets/layouts/default.yaml",
"assets/layouts/strider.yaml"
"target/status-bar.wasm" => "plugins/status-bar.wasm",
"target/strider.wasm" => "plugins/strider.wasm",
"assets/layouts/default.yaml" => "layouts/default.yaml",
"assets/layouts/strider.yaml" => "layouts/strider.yaml"
};
for (path, bytes) in assets {