Skip to content

Commit

Permalink
fix: version bump script
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankachlock committed Apr 19, 2024
1 parent 90c1022 commit 403cdc9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/Zwoo.Backend.LocalServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});

Expand Down
9 changes: 7 additions & 2 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "###";',
},
Expand Down
Empty file modified scripts/release.sh
100644 → 100755
Empty file.

0 comments on commit 403cdc9

Please sign in to comment.