remaning base
This commit is contained in:
parent
8bedb69ca4
commit
6eb78d9ca5
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1591,7 +1591,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "prometeu-runtime"
|
||||
name = "prometeu-runtime-desktop"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"cpal",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
[workspace]
|
||||
members = [
|
||||
"crates/prometeu-core",
|
||||
"crates/prometeu-runtime",
|
||||
"crates/prometeu-runtime-desktop",
|
||||
"crates/prometeu",
|
||||
]
|
||||
resolver = "2"
|
||||
|
||||
@ -32,7 +32,7 @@ This repository is organized as a Rust workspace and contains several components
|
||||
- **[crates/](./crates)**: Software implementation in Rust.
|
||||
- **[prometeu](./crates/prometeu)**: Unified command-line interface (CLI).
|
||||
- **[prometeu-core](./crates/prometeu-core)**: The logical core, VM, and internal OS.
|
||||
- **[prometeu-runtime](./crates/prometeu-runtime)**: Host for execution on Desktop systems.
|
||||
- **[prometeu-runtime-desktop](crates/prometeu-runtime-desktop)**: Host for execution on Desktop systems.
|
||||
- **[docs/](./docs)**: Technical documentation and system specifications.
|
||||
- **[devtools-protocol/](./devtools-protocol)**: Definition of the communication protocol for development tools.
|
||||
- **[test-cartridges/](./test-cartridges)**: Cartridge examples and test suites.
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
[package]
|
||||
name = "prometeu-runtime"
|
||||
name = "prometeu-runtime-desktop"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "prometeu-runtime"
|
||||
name = "prometeu-runtime-desktop"
|
||||
path = "src/main.rs"
|
||||
|
||||
[package.metadata.dist]
|
||||
@ -10,8 +10,8 @@ name = "prometeu"
|
||||
path = "src/main.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "prometeu-runtime"
|
||||
path = "../prometeu-runtime/src/main.rs"
|
||||
name = "prometeu-runtime-desktop"
|
||||
path = "../prometeu-runtime-desktop/src/main.rs"
|
||||
|
||||
# Future binaries (commented)
|
||||
# [[bin]]
|
||||
|
||||
@ -11,4 +11,4 @@ The `prometeu` binary acts as the unified front-end for the ecosystem. It does n
|
||||
|
||||
## How it works
|
||||
|
||||
The dispatcher locates sibling binaries (`prometeu-runtime`, `prometeuc`, etc.) in the same directory where it is installed. It inherits `stdin`, `stdout`, and `stderr`, and propagates the exit code of the called process.
|
||||
The dispatcher locates sibling binaries (`prometeu-runtime-desktop`, `prometeuc`, etc.) in the same directory where it is installed. It inherits `stdin`, `stdout`, and `stderr`, and propagates the exit code of the called process.
|
||||
|
||||
@ -8,7 +8,7 @@ use std::process::Command;
|
||||
/// The main entry point for the user. This binary does not implement
|
||||
/// compilation or execution logic itself; instead, it acts as a smart
|
||||
/// front-end that locates and dispatches commands to specialized
|
||||
/// components like `prometeu-runtime` or `prometeuc`.
|
||||
/// components like `prometeu-runtime-desktop` or `prometeuc`.
|
||||
#[derive(Parser)]
|
||||
#[command(name = "prometeu")]
|
||||
#[command(about = "Dispatcher for the Prometeu ecosystem", long_about = None)]
|
||||
@ -77,12 +77,12 @@ fn main() {
|
||||
|
||||
match cli.command {
|
||||
Some(Commands::Run { cart }) => {
|
||||
dispatch(&exe_dir, "prometeu-runtime", &["--run", &cart]);
|
||||
dispatch(&exe_dir, "prometeu-runtime-desktop", &["--run", &cart]);
|
||||
}
|
||||
Some(Commands::Debug { cart, port }) => {
|
||||
dispatch(
|
||||
&exe_dir,
|
||||
"prometeu-runtime",
|
||||
"prometeu-runtime-desktop",
|
||||
&["--debug", &cart, "--port", &port.to_string()],
|
||||
);
|
||||
}
|
||||
@ -119,7 +119,7 @@ fn dispatch(exe_dir: &Path, bin_name: &str, args: &[&str]) {
|
||||
eprintln!(
|
||||
"prometeu: command '{}' is not yet available in this distribution",
|
||||
match bin_name {
|
||||
"prometeu-runtime" => "run/debug",
|
||||
"prometeu-runtime-desktop" => "run/debug",
|
||||
"prometeuc" => "build/verify c",
|
||||
"prometeup" => "pack/verify p",
|
||||
_ => bin_name,
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Get version from git tag or fallback to Cargo.toml version
|
||||
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || grep -m 1 '^version =' crates/prometeu-runtime/Cargo.toml | cut -d '"' -f 2 || echo "0.1.0")
|
||||
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || grep -m 1 '^version =' crates/prometeu-runtime-desktop/Cargo.toml | cut -d '"' -f 2 || echo "0.1.0")
|
||||
echo "$VERSION" > VERSION.txt
|
||||
echo "Generated VERSION.txt with version $VERSION"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user