fix mainfest

This commit is contained in:
anlicheng 2025-05-20 00:05:57 +08:00
parent 136b8bc627
commit cefc473309

View File

@ -24,8 +24,9 @@
%% API %% API
-export([new/1, startup/1]). -export([new/1, startup/1]).
-spec new(WorkDir :: string()) -> {ok, #manifest{}} | {error, Reason :: binary()}. -spec new(ServiceRootDir :: string()) -> {ok, #manifest{}} | {error, Reason :: binary()}.
new(WorkDir) when is_list(WorkDir) -> new(ServiceRootDir) when is_list(ServiceRootDir) ->
WorkDir = ServiceRootDir + "/work_dir/",
case file:read_file(WorkDir ++ "manifest.json") of case file:read_file(WorkDir ++ "manifest.json") of
{ok, ManifestInfo} -> {ok, ManifestInfo} ->
Settings = catch jiffy:decode(ManifestInfo, [return_maps]), Settings = catch jiffy:decode(ManifestInfo, [return_maps]),