Skip to content

Commit ab9583a

Browse files
JusterZhuclaude
andauthored
feat: change default version from 1.0.0 to 0.0.1 (#94)
Update all model defaults, service fallbacks, app.manifest assembly version, and the test app ClientVersion default to 0.0.1. Co-authored-by: Claude <noreply@anthropic.com>
1 parent cf3ab2e commit ab9583a

10 files changed

Lines changed: 13 additions & 13 deletions

src/Models/ConfigGeneratorModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public partial class ConfigGeneratorModel : ObservableObject
1515

1616
// ── Editable fields (auto-filled + user input) ──
1717
[ObservableProperty] private string _mainAppName = "";
18-
[ObservableProperty] private string _clientVersion = "1.0.0";
18+
[ObservableProperty] private string _clientVersion = "0.0.1";
1919
[ObservableProperty] private string _updateAppName = "Update.exe";
20-
[ObservableProperty] private string _upgradeClientVersion = "1.0.0";
20+
[ObservableProperty] private string _upgradeClientVersion = "0.0.1";
2121
[ObservableProperty] private string _appType = "Client";
2222
[ObservableProperty] private string _productId = "";
2323
[ObservableProperty] private string _updatePath = "update/";

src/Models/ExtensionConfigModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace GeneralUpdate.Tools.Models;
55
public partial class ExtensionConfigModel : ObservableObject
66
{
77
[ObservableProperty] private string _name = "";
8-
[ObservableProperty] private string _version = "1.0.0";
8+
[ObservableProperty] private string _version = "0.0.1";
99
[ObservableProperty] private string _description = "";
1010
[ObservableProperty] private string _extensionDirectory = "";
1111
[ObservableProperty] private string _exportPath = "";

src/Models/ManifestModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ namespace GeneralUpdate.Tools.Models;
33
public class ManifestModel
44
{
55
public string MainAppName { get; set; } = "";
6-
public string ClientVersion { get; set; } = "1.0.0";
6+
public string ClientVersion { get; set; } = "0.0.1";
77
public string AppType { get; set; } = "Client";
88
public string UpdateAppName { get; set; } = "Update.exe";
9-
public string UpgradeClientVersion { get; set; } = "1.0.0";
9+
public string UpgradeClientVersion { get; set; } = "0.0.1";
1010
public string ProductId { get; set; } = "";
1111
public string UpdatePath { get; set; } = "update/";
1212
}

src/Models/OSSConfigModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public partial class OSSConfigModel : ObservableObject
66
{
77
[ObservableProperty] private string _packetName = "Packet";
88
[ObservableProperty] private string _hash = "";
9-
[ObservableProperty] private string _version = "1.0.0";
9+
[ObservableProperty] private string _version = "0.0.1";
1010
[ObservableProperty] private string _url = "http://127.0.0.1";
1111
[ObservableProperty] private string _releaseDate = "";
1212
}

src/Models/PatchConfigModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public partial class PatchConfigModel : ObservableObject
77
[ObservableProperty] private string _oldDirectory = "";
88
[ObservableProperty] private string _newDirectory = "";
99
[ObservableProperty] private string _packageName = "";
10-
[ObservableProperty] private string _version = "1.0.0";
10+
[ObservableProperty] private string _version = "0.0.1";
1111
[ObservableProperty] private string _format = ".zip";
1212
[ObservableProperty] private string _outputPath = "";
1313
[ObservableProperty] private bool _enableEncryptionCheck = true;

src/Models/SimulateConfigModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public partial class SimulateConfigModel : ObservableObject
99
{
1010
[ObservableProperty] private string _appDirectory = string.Empty;
1111
[ObservableProperty] private string _patchFilePath = string.Empty;
12-
[ObservableProperty] private string _currentVersion = "1.0.0";
12+
[ObservableProperty] private string _currentVersion = "0.0.1";
1313
[ObservableProperty] private string _targetVersion = "2.0.0";
1414
[ObservableProperty] private int _platform = 1;
1515
[ObservableProperty] private int _appType = 1;

src/Services/ManifestGeneratorService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ public static ManifestModel FromCsprojInfo(CsprojInfo client, CsprojInfo? upgrad
3434
MainAppName = !string.IsNullOrWhiteSpace(userInput?.MainAppName)
3535
? userInput.MainAppName
3636
: client.AssemblyName,
37-
ClientVersion = userInput?.ClientVersion ?? "1.0.0",
37+
ClientVersion = userInput?.ClientVersion ?? "0.0.1",
3838
AppType = !string.IsNullOrWhiteSpace(userInput?.AppType)
3939
? userInput.AppType
4040
: "Client",
4141
UpdateAppName = !string.IsNullOrWhiteSpace(userInput?.UpdateAppName)
4242
? userInput.UpdateAppName
4343
: upgrade?.AssemblyName ?? "Update.exe",
44-
UpgradeClientVersion = userInput?.UpgradeClientVersion ?? "1.0.0",
44+
UpgradeClientVersion = userInput?.UpgradeClientVersion ?? "0.0.1",
4545
ProductId = userInput?.ProductId ?? "",
4646
UpdatePath = !string.IsNullOrWhiteSpace(userInput?.UpdatePath)
4747
? userInput.UpdatePath

src/Services/SimulationService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public async Task<SimulationResult> RunAsync(
7373
ClientVersion = config.CurrentVersion,
7474
AppType = config.AppType switch { 1 => "Client", 2 => "Upgrade", _ => "Client" },
7575
UpdateAppName = upgradeExeName,
76-
UpgradeClientVersion = "1.0.0",
76+
UpgradeClientVersion = "0.0.1",
7777
ProductId = config.ProductId,
7878
UpdatePath = config.UpdatePath ?? "update/"
7979
};

src/app.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- This manifest is used on Windows only.
44
Don't remove it as it might cause problems with window transparency and embedded controls.
55
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
6-
<assemblyIdentity version="1.0.0.0" name="GeneralUpdate.Tools.V12.Desktop"/>
6+
<assemblyIdentity version="0.0.1.0" name="GeneralUpdate.Tools.V12.Desktop"/>
77

88
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
99
<application>

test_app/Client/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,5 @@ internal class ClientArgs
118118
{
119119
public string ServerUrl { get; set; } = "http://127.0.0.1:5000";
120120
public string AppSecret { get; set; } = "dfeb5833-975e-4afb-88f1-6278ee9aeff6";
121-
public string ClientVersion { get; set; } = "1.0.0";
121+
public string ClientVersion { get; set; } = "0.0.1";
122122
}

0 commit comments

Comments
 (0)