diff --git a/Program.cs b/Program.cs index 59eb0c6..cca6fd6 100644 --- a/Program.cs +++ b/Program.cs @@ -12,7 +12,8 @@ if (string.IsNullOrEmpty(workflowViewFile) || !Directory.Exists(projectDirectory return; } -var workflow = JsonSerializer.Deserialize(File.OpenRead(workflowViewFile), JsonSerializerOptions.Web)!; +using var stream = File.OpenRead(workflowViewFile); +var workflow = JsonSerializer.Deserialize(stream, JsonSerializerOptions.Web)!; var edgesFile = Path.Combine(projectDirectory, $"{workflow.Name}.Edges.cs"); var nodesFile = Path.Combine(projectDirectory, $"{workflow.Name}.Nodes.cs"); diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a8fba1c --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ + docker build -t jetframes482/sharp8n-compiler . + \ No newline at end of file