mirror of
https://github.com/vrc-get/vrc-get.git
synced 2026-06-21 09:58:08 +00:00
chore: rename directory for project templates
This commit is contained in:
parent
b91bdb92c1
commit
24e701a040
163 changed files with 6 additions and 5 deletions
|
|
@ -31,7 +31,7 @@
|
|||
/*.md
|
||||
|
||||
# template
|
||||
/templates/**
|
||||
/project-templates/**
|
||||
|
||||
# icons
|
||||
/app-icon.afdesign
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
||||
"files": {
|
||||
"ignore": [
|
||||
"templates",
|
||||
"project-templates",
|
||||
"node_modules",
|
||||
".next",
|
||||
"out",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ fn main() {
|
|||
fn build_templates() {
|
||||
let out_dir = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap());
|
||||
|
||||
let templates = std::fs::read_to_string(std::path::Path::new("templates/list.txt")).unwrap();
|
||||
let templates =
|
||||
std::fs::read_to_string(std::path::Path::new("project-templates/list.txt")).unwrap();
|
||||
|
||||
struct GzLoader<'a>(&'a str);
|
||||
|
||||
|
|
@ -55,7 +56,7 @@ fn build_templates() {
|
|||
list.push((id, name, Variable(ident)));
|
||||
|
||||
let tar_file = out_dir.join(format!("{id}.tgz"));
|
||||
let dir = std::path::Path::new("templates").join(id);
|
||||
let dir = std::path::Path::new("project-templates").join(id);
|
||||
|
||||
threads.push(std::thread::spawn(move || build_tar(tar_file, dir)));
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue