Actualiza la estructura de los recursos estáticos
Se prepara PageTop para permitir en el futuro compilar los fuentes incluyendo los recursos estáticos dentro del ejecutable (tal y como está ahora), o usando una carpeta externa "static".
This commit is contained in:
parent
7f8b94eafe
commit
eddb397bc7
35 changed files with 48 additions and 125 deletions
10
build.rs
10
build.rs
|
|
@ -4,28 +4,30 @@ use std::env;
|
|||
use std::path::Path;
|
||||
|
||||
fn main() {
|
||||
resource_dir("./resources/assets")
|
||||
resource_dir("./static/theme")
|
||||
.with_generated_filename(
|
||||
Path::new(env::var("OUT_DIR").unwrap().as_str())
|
||||
.join("assets.rs")
|
||||
.join("theme.rs")
|
||||
)
|
||||
.with_generated_fn("assets")
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
resource_dir("./src/base/theme/aliner/assets")
|
||||
resource_dir("./static/aliner")
|
||||
.with_generated_filename(
|
||||
Path::new(env::var("OUT_DIR").unwrap().as_str())
|
||||
.join("aliner.rs")
|
||||
)
|
||||
.with_generated_fn("assets")
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
resource_dir("./src/base/theme/bootsier/assets")
|
||||
resource_dir("./static/bootsier")
|
||||
.with_generated_filename(
|
||||
Path::new(env::var("OUT_DIR").unwrap().as_str())
|
||||
.join("bootsier.rs")
|
||||
)
|
||||
.with_generated_fn("assets")
|
||||
.build()
|
||||
.unwrap();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue