tianzhendong
4 months ago
21 changed files with 106 additions and 41 deletions
@ -0,0 +1,45 @@ |
|||
/*release*/ |
|||
/*debug/ |
|||
/.idea/ |
|||
/windeploy/ |
|||
users* |
|||
*Debug |
|||
*Release |
|||
Makefile* |
|||
# *.rc |
|||
# ui_*.h |
|||
moc_*.cpp |
|||
*.o |
|||
moc* |
|||
qrc* |
|||
test_data/ |
|||
build/ |
|||
Build/ |
|||
|
|||
logs/ |
|||
|
|||
|
|||
.qtc_clangd |
|||
|
|||
*.autosave |
|||
/.qmake.cache |
|||
/.qmake.stash |
|||
|
|||
# *.html |
|||
*.cmake |
|||
*.cbp |
|||
*.user |
|||
CMakeCache.txt |
|||
CMakeFiles/ |
|||
*autogen/ |
|||
|
|||
deploy/ |
|||
Deploy/ |
|||
|
|||
# qtcreator generated files |
|||
*.pro.user* |
|||
|
|||
|
|||
# MinGW generated files |
|||
*.Debug |
|||
*.Release |
@ -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 "FlightDataAnalysis" |
|||
#define MyAppVersion "2.3.5" |
|||
#define MyAppPublisher "My Company, Inc." |
|||
#define MyAppURL "https://www.example.com/" |
|||
#define MyAppExeName "FlightDataAnalysis.exe" |
|||
#define MyAppAssocName MyAppName + " File" |
|||
#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={{613FF507-BFA0-47DC-9681-F0DD80E3EEA3} |
|||
AppName={#MyAppName} |
|||
AppVersion={#MyAppVersion} |
|||
;AppVerName={#MyAppName} {#MyAppVersion} |
|||
AppPublisher={#MyAppPublisher} |
|||
AppPublisherURL={#MyAppURL} |
|||
AppSupportURL={#MyAppURL} |
|||
AppUpdatesURL={#MyAppURL} |
|||
DefaultDirName=C:\{#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\FlightDataAnalysis\ |
|||
OutputBaseFilename=FlightDataAnalysis-full-v{#MyAppVersion} |
|||
SetupIconFile=D:\4_Code\3_Deploy\FlightDataAnalysis\Deploy\FlightDataAnalysis-CN\DataAnalysis.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\FlightDataAnalysis\Deploy\FlightDataAnalysis-CN\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion |
|||
Source: "D:\4_Code\3_Deploy\FlightDataAnalysis\Deploy\FlightDataAnalysis-CN\*"; 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 |
|||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,12 +0,0 @@ |
|||
# What is this? |
|||
|
|||
The [updates.json](updates.json) file is the update definitions file. In other words, it lists the latest versions, changelogs and download URLs for each platform. |
|||
|
|||
The example project downloads the [updates.json](updates.json) file and analyzes in order to: |
|||
|
|||
- Compare the local (user set) version and the remote version (specified in [updates.json](updates.json)) |
|||
- Download the change log for the current platform |
|||
- Obtain the download URLs |
|||
- Obtain the URL to open (if specified) |
|||
|
|||
Check the article on this article on the [wiki](#) for more information. |
@ -1,28 +0,0 @@ |
|||
{ |
|||
"updates": { |
|||
"windows": { |
|||
"full-url": "http://www.tianzd.cn:1995/TianZD/deploy/raw/branch/master/FlightDataAnalysis/download/FlightDataAnalysis-full.exe", |
|||
"latest-version": "2.3.5", |
|||
"download-url": "http://www.tianzd.cn:1995/TianZD/deploy/raw/branch/master/FlightDataAnalysis/download/FlightDataAnalysis-patch.zip", |
|||
"changelog": "modify updater module", |
|||
"modify-time": "20240613", |
|||
"mandatory": true |
|||
}, |
|||
"linux": { |
|||
"full-url": "http://www.tianzd.cn:1995/TianZD/FlightDataAnalysis-deploy/raw/branch/master/download/FlightDataAnalysis-full.exe", |
|||
"latest-version": "1.0", |
|||
"download-url": "http://www.tianzd.cn:1995/TianZD/FlightDataAnalysis-deploy/raw/branch/master/download/FlightDataAnalysis-test.exe", |
|||
"changelog": "This is an example changelog for Linux. Go on...", |
|||
"modify-time": "20230726", |
|||
"mandatory": true |
|||
}, |
|||
"ios": { |
|||
"full-url": "http://www.tianzd.cn:1995/TianZD/FlightDataAnalysis-deploy/raw/branch/master/download/FlightDataAnalysis-full.exe", |
|||
"latest-version": "1.0", |
|||
"download-url": "http://www.tianzd.cn:1995/TianZD/FlightDataAnalysis-deploy/raw/branch/master/download/FlightDataAnalysis-test.exe", |
|||
"changelog": "This is an example changelog for iOS. Go on...", |
|||
"modify-time": "20230726", |
|||
"mandatory": true |
|||
} |
|||
} |
|||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue