From 8c4410dc61ddd6222e062b3db83d78851f3649f4 Mon Sep 17 00:00:00 2001 From: Vitali Semianiaka Date: Thu, 1 Jan 2026 23:39:59 +0300 Subject: [PATCH] updated compiler --- Program.cs | 3 ++- build.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 build.sh 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