build multi-arch s9pks (#2601)

* build multi-arch s9pks

* remove images incrementally

* wip

* prevent rebuild

* fix sdk makefile

* fix hanging on uninstall

* fix build

* fix build

* fix build

* fix build (for real this time)

* fix git hash computation
This commit is contained in:
Aiden McClelland
2024-04-22 11:40:10 -06:00
committed by GitHub
parent 9eff920989
commit 003d110948
176 changed files with 1176 additions and 1799 deletions

View File

@@ -148,6 +148,7 @@ pub async fn install(
.parse()?,
)
.await?,
true,
)
.await?;
@@ -257,7 +258,7 @@ pub async fn sideload(ctx: RpcContext) -> Result<SideloadResponse, Error> {
.await;
tokio::spawn(async move {
if let Err(e) = async {
let s9pk = S9pk::deserialize(&file).await?;
let s9pk = S9pk::deserialize(&file, true).await?;
let _ = id_send.send(s9pk.as_manifest().id.clone());
ctx.services
.install(ctx.clone(), s9pk, None::<Never>)
@@ -423,7 +424,12 @@ pub async fn uninstall(
let return_id = id.clone();
tokio::spawn(async move { ctx.services.uninstall(&ctx, &id).await });
tokio::spawn(async move {
if let Err(e) = ctx.services.uninstall(&ctx, &id).await {
tracing::error!("Error uninstalling service {id}: {e}");
tracing::debug!("{e:?}");
}
});
Ok(return_id)
}