diff --git a/src/Models/ConfigGeneratorModel.cs b/src/Models/ConfigGeneratorModel.cs index e66c630..0587431 100644 --- a/src/Models/ConfigGeneratorModel.cs +++ b/src/Models/ConfigGeneratorModel.cs @@ -15,9 +15,9 @@ public partial class ConfigGeneratorModel : ObservableObject // ── Editable fields (auto-filled + user input) ── [ObservableProperty] private string _mainAppName = ""; - [ObservableProperty] private string _clientVersion = "1.0.0"; + [ObservableProperty] private string _clientVersion = "0.0.1"; [ObservableProperty] private string _updateAppName = "Update.exe"; - [ObservableProperty] private string _upgradeClientVersion = "1.0.0"; + [ObservableProperty] private string _upgradeClientVersion = "0.0.1"; [ObservableProperty] private string _appType = "Client"; [ObservableProperty] private string _productId = ""; [ObservableProperty] private string _updatePath = "update/"; diff --git a/src/Models/ExtensionConfigModel.cs b/src/Models/ExtensionConfigModel.cs index 0c3ec47..16f8213 100644 --- a/src/Models/ExtensionConfigModel.cs +++ b/src/Models/ExtensionConfigModel.cs @@ -5,7 +5,7 @@ namespace GeneralUpdate.Tools.Models; public partial class ExtensionConfigModel : ObservableObject { [ObservableProperty] private string _name = ""; - [ObservableProperty] private string _version = "1.0.0"; + [ObservableProperty] private string _version = "0.0.1"; [ObservableProperty] private string _description = ""; [ObservableProperty] private string _extensionDirectory = ""; [ObservableProperty] private string _exportPath = ""; diff --git a/src/Models/ManifestModel.cs b/src/Models/ManifestModel.cs index 4f2fd73..6887f7a 100644 --- a/src/Models/ManifestModel.cs +++ b/src/Models/ManifestModel.cs @@ -3,10 +3,10 @@ namespace GeneralUpdate.Tools.Models; public class ManifestModel { public string MainAppName { get; set; } = ""; - public string ClientVersion { get; set; } = "1.0.0"; + public string ClientVersion { get; set; } = "0.0.1"; public string AppType { get; set; } = "Client"; public string UpdateAppName { get; set; } = "Update.exe"; - public string UpgradeClientVersion { get; set; } = "1.0.0"; + public string UpgradeClientVersion { get; set; } = "0.0.1"; public string ProductId { get; set; } = ""; public string UpdatePath { get; set; } = "update/"; } diff --git a/src/Models/OSSConfigModel.cs b/src/Models/OSSConfigModel.cs index d09ac7d..8c7b50c 100644 --- a/src/Models/OSSConfigModel.cs +++ b/src/Models/OSSConfigModel.cs @@ -6,7 +6,7 @@ public partial class OSSConfigModel : ObservableObject { [ObservableProperty] private string _packetName = "Packet"; [ObservableProperty] private string _hash = ""; - [ObservableProperty] private string _version = "1.0.0"; + [ObservableProperty] private string _version = "0.0.1"; [ObservableProperty] private string _url = "http://127.0.0.1"; [ObservableProperty] private string _releaseDate = ""; } diff --git a/src/Models/PatchConfigModel.cs b/src/Models/PatchConfigModel.cs index 83f7e35..81b6107 100644 --- a/src/Models/PatchConfigModel.cs +++ b/src/Models/PatchConfigModel.cs @@ -7,7 +7,7 @@ public partial class PatchConfigModel : ObservableObject [ObservableProperty] private string _oldDirectory = ""; [ObservableProperty] private string _newDirectory = ""; [ObservableProperty] private string _packageName = ""; - [ObservableProperty] private string _version = "1.0.0"; + [ObservableProperty] private string _version = "0.0.1"; [ObservableProperty] private string _format = ".zip"; [ObservableProperty] private string _outputPath = ""; [ObservableProperty] private bool _enableEncryptionCheck = true; diff --git a/src/Models/SimulateConfigModel.cs b/src/Models/SimulateConfigModel.cs index 2c2bd8e..8123118 100644 --- a/src/Models/SimulateConfigModel.cs +++ b/src/Models/SimulateConfigModel.cs @@ -9,7 +9,7 @@ public partial class SimulateConfigModel : ObservableObject { [ObservableProperty] private string _appDirectory = string.Empty; [ObservableProperty] private string _patchFilePath = string.Empty; - [ObservableProperty] private string _currentVersion = "1.0.0"; + [ObservableProperty] private string _currentVersion = "0.0.1"; [ObservableProperty] private string _targetVersion = "2.0.0"; [ObservableProperty] private int _platform = 1; [ObservableProperty] private int _appType = 1; diff --git a/src/Services/ManifestGeneratorService.cs b/src/Services/ManifestGeneratorService.cs index bbb883c..c93448d 100644 --- a/src/Services/ManifestGeneratorService.cs +++ b/src/Services/ManifestGeneratorService.cs @@ -34,14 +34,14 @@ public static ManifestModel FromCsprojInfo(CsprojInfo client, CsprojInfo? upgrad MainAppName = !string.IsNullOrWhiteSpace(userInput?.MainAppName) ? userInput.MainAppName : client.AssemblyName, - ClientVersion = userInput?.ClientVersion ?? "1.0.0", + ClientVersion = userInput?.ClientVersion ?? "0.0.1", AppType = !string.IsNullOrWhiteSpace(userInput?.AppType) ? userInput.AppType : "Client", UpdateAppName = !string.IsNullOrWhiteSpace(userInput?.UpdateAppName) ? userInput.UpdateAppName : upgrade?.AssemblyName ?? "Update.exe", - UpgradeClientVersion = userInput?.UpgradeClientVersion ?? "1.0.0", + UpgradeClientVersion = userInput?.UpgradeClientVersion ?? "0.0.1", ProductId = userInput?.ProductId ?? "", UpdatePath = !string.IsNullOrWhiteSpace(userInput?.UpdatePath) ? userInput.UpdatePath diff --git a/src/Services/SimulationService.cs b/src/Services/SimulationService.cs index fe6a244..d838097 100644 --- a/src/Services/SimulationService.cs +++ b/src/Services/SimulationService.cs @@ -73,7 +73,7 @@ public async Task RunAsync( ClientVersion = config.CurrentVersion, AppType = config.AppType switch { 1 => "Client", 2 => "Upgrade", _ => "Client" }, UpdateAppName = upgradeExeName, - UpgradeClientVersion = "1.0.0", + UpgradeClientVersion = "0.0.1", ProductId = config.ProductId, UpdatePath = config.UpdatePath ?? "update/" }; diff --git a/src/app.manifest b/src/app.manifest index cde83fd..89f06d3 100644 --- a/src/app.manifest +++ b/src/app.manifest @@ -3,7 +3,7 @@ - + diff --git a/test_app/Client/Program.cs b/test_app/Client/Program.cs index 342fd05..419e8f1 100644 --- a/test_app/Client/Program.cs +++ b/test_app/Client/Program.cs @@ -118,5 +118,5 @@ internal class ClientArgs { public string ServerUrl { get; set; } = "http://127.0.0.1:5000"; public string AppSecret { get; set; } = "dfeb5833-975e-4afb-88f1-6278ee9aeff6"; - public string ClientVersion { get; set; } = "1.0.0"; + public string ClientVersion { get; set; } = "0.0.1"; }