aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-02-23 16:10:38 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-02-23 16:13:41 +0000
commit3bc9fdbc0c55f29a851073e348d6dcaa19234ab8 (patch)
treea40413830562c49ac20b3b67be565a3a58425048 /src
parentbuild(add a toolchain.toml file) (diff)
downloadsl0ppij-3bc9fdbc0c55f29a851073e348d6dcaa19234ab8.tar.gz
sl0ppij-3bc9fdbc0c55f29a851073e348d6dcaa19234ab8.tar.xz
sl0ppij-3bc9fdbc0c55f29a851073e348d6dcaa19234ab8.zip
build(simplify and fix build system, removing the binary assets)
Diffstat (limited to 'src')
-rw-r--r--src/common/install.rs2
-rw-r--r--src/main.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/common/install.rs b/src/common/install.rs
index 4e3f5c5d..bd11e8f9 100644
--- a/src/common/install.rs
+++ b/src/common/install.rs
@@ -4,7 +4,7 @@ macro_rules! asset_map {
{
let mut assets = std::collections::HashMap::new();
$(
- assets.insert($path, include_bytes!(concat!("../assets/", $path)).to_vec());
+ assets.insert($path, include_bytes!(concat!("../", $path)).to_vec());
)+
assets
}
diff --git a/src/main.rs b/src/main.rs
index 27036e3d..82881219 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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! {
- "plugins/status-bar.wasm",
- "plugins/strider.wasm",
- "layouts/default.yaml",
- "layouts/strider.yaml"
+ "target/status-bar.wasm",
+ "target/strider.wasm",
+ "assets/layouts/default.yaml",
+ "assets/layouts/strider.yaml"
};
for (path, bytes) in assets {