diff --git a/backend/Zwoo.Backend.LocalServer/Program.cs b/backend/Zwoo.Backend.LocalServer/Program.cs index a21201458..1c4752537 100644 --- a/backend/Zwoo.Backend.LocalServer/Program.cs +++ b/backend/Zwoo.Backend.LocalServer/Program.cs @@ -45,10 +45,11 @@ options.SerializerOptions.TypeInfoResolverChain.Insert(0, ApiJsonSerializerContext.Default); }); +const string VERSION = "1.0.0-beta.17"; builder.AddZwooLogging(false); var conf = builder.AddZwooConfiguration(args, new ZwooAppConfiguration() { - AppVersion = "1.0.0-beta.17", + AppVersion = VERSION, ServerMode = "local" }); diff --git a/scripts/release.js b/scripts/release.js index c1dcdcf8e..4708114fc 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -30,12 +30,17 @@ const versionFiles = [ replace: '"zwoo"\nversion = "###"', }, { - path: "/backend/Zwoo.Backend/Globals.cs", + path: "/backend/Zwoo.Backend/Program.cs", regex: /const string VERSION = "(.*)";/, replace: 'const string VERSION = "###";', }, { - path: "/backend/Zwoo.Dashboard/Data/Globals.cs", + path: "/backend/Zwoo.Backend.LocalServer/Program.cs", + regex: /const string VERSION = "(.*)";/, + replace: 'const string VERSION = "###";', + }, + { + path: "/backend/Zwoo.Dashboard/Program.cs", regex: /const string VERSION = "(.*)";/, replace: 'const string VERSION = "###";', }, diff --git a/scripts/release.sh b/scripts/release.sh old mode 100644 new mode 100755