fix(plugin install location)
This commit is contained in:
parent
57dc07409d
commit
ee65f402c8
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue