diff --git a/SimulationControl/SimulationControl-full-v1.0.0.exe b/SimulationControl/SimulationControl-full-v1.0.0.exe new file mode 100644 index 0000000..e0f8fe7 Binary files /dev/null and b/SimulationControl/SimulationControl-full-v1.0.0.exe differ diff --git a/SimulationControl/pack.iss b/SimulationControl/pack.iss new file mode 100644 index 0000000..b9a9869 --- /dev/null +++ b/SimulationControl/pack.iss @@ -0,0 +1,60 @@ +; Script generated by the Inno Setup Script Wizard. +; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! + +#define MyAppName "SimulationControl" +#define MyAppVersion "1.0.0" +#define MyAppPublisher "My Company, Inc." +#define MyAppURL "https://www.example.com/" +#define MyAppExeName "SimulationControl.exe" +#define MyAppAssocName MyAppName + "" +#define MyAppAssocExt ".myp" +#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt + +[Setup] +; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. +; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) +AppId={{23F31E9A-F013-443C-858C-7886D304A403} +AppName={#MyAppName} +AppVersion={#MyAppVersion} +;AppVerName={#MyAppName} {#MyAppVersion} +AppPublisher={#MyAppPublisher} +AppPublisherURL={#MyAppURL} +AppSupportURL={#MyAppURL} +AppUpdatesURL={#MyAppURL} +DefaultDirName={autopf}\{#MyAppName} +ChangesAssociations=yes +DisableProgramGroupPage=yes +; Uncomment the following line to run in non administrative install mode (install for current user only.) +;PrivilegesRequired=lowest +OutputDir=D:\4_Code\3_Deploy\SimulationControl\ +OutputBaseFilename={#MyAppName}-full-v{#MyAppVersion} +SetupIconFile=D:\4_Code\3_Deploy\SimulationControl\Deploy\4.ico +Compression=lzma +SolidCompression=yes +WizardStyle=modern + +[Languages] +Name: "english"; MessagesFile: "compiler:Default.isl" + +[Tasks] +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked + +[Files] +Source: "D:\4_Code\3_Deploy\SimulationControl\Deploy\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion +Source: "D:\4_Code\3_Deploy\SimulationControl\Deploy\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs +; NOTE: Don't use "Flags: ignoreversion" on any shared system files + +[Registry] +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0" +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" +Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: "" + +[Icons] +Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" +Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon + +[Run] +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent + diff --git a/SimulationControl/updates.json b/SimulationControl/updates.json index 325d836..365b9ed 100644 --- a/SimulationControl/updates.json +++ b/SimulationControl/updates.json @@ -1,12 +1,17 @@ { - "updates": { - "windows": { - "full-url": "http://www.tianzd.cn:1995/TianZD/deploy/raw/branch/master/SimulationControl/SimulationControl-full.exe", - "latest-version": "2.2.3", - "download-url": "http://www.tianzd.cn:1995/TianZD/deploy/raw/branch/master/SimulationControl/SimulationControl-patch.zip", - "changelog": "add updater", - "modify-time": "20230826", - "mandatory": true + "updates": + { + "windows": + { + "full-url": "http://www.tianzd.cn:1995/TianZD/deploy/raw/branch/master/", + "full-version": "1.0.0", + "download-full":true, + + "patch-url": "http://www.tianzd.cn:1995/TianZD/deploy/raw/branch/master/", + "patch-version": "2.3.5", + "changelog": "modify updater module", + "modify-time": "20240613", + "modifyCnt": "1" } } } \ No newline at end of file