From aab1856c6cee1362782f572c49542737376be887 Mon Sep 17 00:00:00 2001 From: Lucy Cifferello <12953208+elvece@users.noreply.github.com> Date: Mon, 5 Jul 2021 16:03:12 -0400 Subject: [PATCH] remove hashing temp --- src/Handler/Marketplace.hs | 2 +- src/Lib/External/AppMgr.hs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Handler/Marketplace.hs b/src/Handler/Marketplace.hs index 3703154..75d3a67 100644 --- a/src/Handler/Marketplace.hs +++ b/src/Handler/Marketplace.hs @@ -203,7 +203,7 @@ getServiceR = do -- @TODO uncomment when sdk icon working -- icon <- decodeIcon appMgrDir depPath appExt let icon = [i|https://#{domain}/icons/#{appId}.png|] - addPackageHeader appMgrDir appDir appExt + -- addPackageHeader appMgrDir appDir appExt pure $ ServiceRes { serviceResIcon = icon , serviceResManifest = manifest -- TypedContent "application/json" (toContent manifest) diff --git a/src/Lib/External/AppMgr.hs b/src/Lib/External/AppMgr.hs index 612b98d..6416274 100644 --- a/src/Lib/External/AppMgr.hs +++ b/src/Lib/External/AppMgr.hs @@ -54,18 +54,18 @@ getManifest appmgrPath appPath e@(Extension appId) = do (ec, bs) <- readProcessInheritStderr (appmgrPath <> "embassy-sdk") ["inspect", "manifest", appPath <> show e] "" case ec of ExitSuccess -> pure bs - ExitFailure n -> throwE $ AppMgrE [i|info manifest #{appId} \--json|] n + ExitFailure n -> throwE $ AppMgrE [i|embassy-sdk inspect manifest #{appId}|] n getIcon :: (MonadIO m, KnownSymbol a) => FilePath -> FilePath -> Extension a -> S9ErrT m ByteString getIcon appmgrPath appPath e@(Extension icon) = do (ec, bs) <- readProcessInheritStderr (appmgrPath <> "embassy-sdk") ["inspect", "icon", appPath <> show e] "" case ec of ExitSuccess -> pure bs - ExitFailure n -> throwE $ AppMgrE [i|icon #{icon} \--json|] n + ExitFailure n -> throwE $ AppMgrE [i|embassy-sdk inspect icon #{icon}|] n getPackageHash :: (MonadIO m, KnownSymbol a) => FilePath -> FilePath -> Extension a -> S9ErrT m ByteString getPackageHash appmgrPath appPath e@(Extension appId) = do (ec, bs) <- readProcessInheritStderr (appmgrPath <> "embassy-sdk") ["inspect", "hash", appPath <> show e] "" case ec of ExitSuccess -> pure bs - ExitFailure n -> throwE $ AppMgrE [i|hash #{appId} \--json|] n \ No newline at end of file + ExitFailure n -> throwE $ AppMgrE [i|embassy-sdk inspect hash #{appId}|] n \ No newline at end of file