Skip to content

Commit 35f93dd

Browse files
committed
fix(Runtime): fixed GitHub release URL in native runtime and install command
Notes: closes #314
1 parent ce98446 commit 35f93dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/apps/Synapse.Cli/Commands/Systems/Installs/NativeInstallCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ await Task.Run(async () =>
107107
{
108108
AutoStart = false
109109
});
110-
await this.HttpClient.DownloadAsync($"https://github.com/serverlessworkflow/synapse/releases/download/{typeof(NativeInstallCommand).Assembly.GetName()!.Version!.ToString(3)}/synapse-{target}", packageStream, task);
110+
await this.HttpClient.DownloadAsync($"https://github.com/serverlessworkflow/synapse/releases/download/v{typeof(NativeInstallCommand).Assembly.GetName()!.Version!.ToString(3)}/synapse-{target}", packageStream, task);
111111
});
112112
});
113113
AnsiConsole.Status()

src/runtime/Synapse.Runtime.Native/Services/NativeRuntime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected virtual async Task InstallWorkerAsync(CancellationToken cancellationTo
115115
target = "osx-x64.tar.gz";
116116
else
117117
throw new PlatformNotSupportedException();
118-
using var packageStream = await this.HttpClient.GetStreamAsync($"https://github.com/serverlessworkflow/synapse/releases/download/{typeof(NativeRuntime).Assembly.GetName().Version!.ToString(3)!}/synapse-worker-{target}", cancellationToken); //todo: config based
118+
using var packageStream = await this.HttpClient.GetStreamAsync($"https://github.com/serverlessworkflow/synapse/releases/download/v{typeof(NativeRuntime).Assembly.GetName().Version!.ToString(3)!}/synapse-worker-{target}", cancellationToken); //todo: config based
119119
using ZipArchive archive = new(packageStream, ZipArchiveMode.Read);
120120
this.Logger.LogInformation("Worker app successfully downloaded. Extracting...");
121121
archive.ExtractToDirectory(workerDirectory.FullName, true);

0 commit comments

Comments
 (0)