Fennec SDK: split from the Fennec OS repository
All checks were successful
ci / test (push) Successful in 17m21s
All checks were successful
ci / test (push) Successful in 17m21s
The app-facing parts of Fennec OS move here, so apps build without the OS sources: - sf-app: the app contract (manifest, permissions, store rules, sandbox, launch), from sf-ipc; the OS depends on it by tag. - sf-ui (+ gallery), sf-pack, templates/rust-app, docs. Store apps may now register for DIAL: a [dial] section implies the new `dial` permission, which the user approves like any other. The templates no longer mention signing: store releases are unsigned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
[package]
|
||||
name = "sf-pack"
|
||||
description = "Fennec OS store app packaging (docs/store.md)"
|
||||
description = "Fennec OS store app packaging (docs/store-app-guide.md)"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[dependencies]
|
||||
sf-ipc.workspace = true
|
||||
sf-app.workspace = true
|
||||
anyhow.workspace = true
|
||||
serde.workspace = true
|
||||
toml.workspace = true
|
||||
|
||||
@@ -12,7 +12,7 @@ use std::io::Read;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use anyhow::{Context, Result, bail};
|
||||
use sf_ipc::AppManifest;
|
||||
use sf_app::AppManifest;
|
||||
|
||||
fn main() {
|
||||
let args: Vec<String> = std::env::args().skip(1).collect();
|
||||
@@ -206,12 +206,12 @@ mod tests {
|
||||
fn run_app(dir: &Path) -> Result<()> {
|
||||
let mut app = read_manifest(dir)?;
|
||||
app.check_store_rules().context("app.toml")?;
|
||||
app.origin = sf_ipc::Origin::Store;
|
||||
let settings = sf_ipc::Settings::default();
|
||||
app.origin = sf_app::Origin::Store;
|
||||
let settings = sf_app::Settings::default();
|
||||
let data = std::env::temp_dir().join("sf-pack-run");
|
||||
let opts = sf_ipc::launch::LaunchOptions { data_dir: &data, fullscreen: false, bounds: None, query: None };
|
||||
let mut cmd = sf_ipc::launch::command(&app, &settings, &opts)?;
|
||||
eprintln!("data folder ($HOME inside): {}", sf_ipc::paths::app_data_dir(&app.id).display());
|
||||
let opts = sf_app::launch::LaunchOptions { data_dir: &data, fullscreen: false, bounds: None, query: None };
|
||||
let mut cmd = sf_app::launch::command(&app, &settings, &opts)?;
|
||||
eprintln!("data folder ($HOME inside): {}", sf_app::paths::app_data_dir(&app.id).display());
|
||||
if std::env::var_os("SF_PACK_SHOW").is_some() {
|
||||
eprintln!("{} {}", cmd.get_program().to_string_lossy(), cmd.get_args().map(|a| a.to_string_lossy()).collect::<Vec<_>>().join(" "));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user