mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 14:59:42 +02:00
Run vendor as separate script
This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -83,13 +83,17 @@ jobs:
|
|||||||
- name: Install yaak CLI
|
- name: Install yaak CLI
|
||||||
run: go install github.com/yaakapp/yaakcli@latest
|
run: go install github.com/yaakapp/yaakcli@latest
|
||||||
|
|
||||||
|
- name: Run lint
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
- name: Vendor things for the app
|
||||||
|
run: npm run vendor
|
||||||
|
|
||||||
|
# NOTE: vendored things need to exist for tests to build
|
||||||
- name: Rust test
|
- name: Rust test
|
||||||
working-directory: src-tauri
|
working-directory: src-tauri
|
||||||
run: cargo test --all
|
run: cargo test --all
|
||||||
|
|
||||||
- name: Run lint
|
|
||||||
run: npm run lint
|
|
||||||
|
|
||||||
- name: Checkout yaakapp/plugins
|
- name: Checkout yaakapp/plugins
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -15,10 +15,11 @@
|
|||||||
"build:icon:dev": "tauri icon design/icon-dev.png --output ./src-tauri/icons/dev",
|
"build:icon:dev": "tauri icon design/icon-dev.png --output ./src-tauri/icons/dev",
|
||||||
"build": "run-p build:*",
|
"build": "run-p build:*",
|
||||||
"build:js": "vite build",
|
"build:js": "vite build",
|
||||||
"build:vendor-protoc": "node scripts/vendor-protoc.cjs",
|
|
||||||
"build:vendor-plugins": "node scripts/vendor-plugins.cjs",
|
|
||||||
"build:vendor-node": "node scripts/vendor-node.cjs",
|
|
||||||
"build:plugin-runtime": "npm run --prefix plugin-runtime build",
|
"build:plugin-runtime": "npm run --prefix plugin-runtime build",
|
||||||
|
"vendor": "run-p vendor:*",
|
||||||
|
"vendor:vendor-protoc": "node scripts/vendor-protoc.cjs",
|
||||||
|
"vendor:vendor-plugins": "node scripts/vendor-plugins.cjs",
|
||||||
|
"vendor:vendor-node": "node scripts/vendor-node.cjs",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"replace-version": "node scripts/replace-version.cjs"
|
"replace-version": "node scripts/replace-version.cjs"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
#[tokio::main]
|
|
||||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
||||||
// let dir = env::var("YAAK_PLUGINS_DIR").expect("YAAK_PLUGINS_DIR not set");
|
|
||||||
//
|
|
||||||
// let plugin_dirs: Vec<String> = match read_dir(dir) {
|
|
||||||
// Ok(result) => {
|
|
||||||
// let mut dirs: Vec<String> = vec![];
|
|
||||||
// for entry_result in result {
|
|
||||||
// match entry_result {
|
|
||||||
// Ok(entry) => {
|
|
||||||
// if entry.path().is_dir() {
|
|
||||||
// dirs.push(entry.path().to_string_lossy().to_string())
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// Err(_) => {
|
|
||||||
// continue;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// };
|
|
||||||
// dirs
|
|
||||||
// }
|
|
||||||
// Err(_) => vec![],
|
|
||||||
// };
|
|
||||||
// start_server(plugin_dirs).await.unwrap();
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user