mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Merge branch 'develop' into enhancement/510/open-log-dir
This commit is contained in:
commit
07e1211545
21
ChangeLog.md
21
ChangeLog.md
@ -33,6 +33,27 @@ produce the Windows executables and installer.
|
|||||||
currently used version in a given branch.
|
currently used version in a given branch.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
Release 5.9.4
|
||||||
|
===
|
||||||
|
This release fixes a widely-reported bug that resulted in the cAPI Authentication
|
||||||
|
flow being disrupted for a subset of users. Thank you to all the CMDRs who reported this to
|
||||||
|
us and provided logs to us so that we could get the issue isolated.
|
||||||
|
|
||||||
|
- Fixes a missing registry issue that could cause the EDMC:// protocol to fail.
|
||||||
|
(#2061, #2059, #2058, #2057)
|
||||||
|
- Renames the default start menu shortcut to be more clear. (#2062)
|
||||||
|
|
||||||
|
Known Issues
|
||||||
|
--
|
||||||
|
- The popup on the EDMC Authentication Box is not translated yet. Ich spreche kein Deutsch.
|
||||||
|
- The cAPI is giving an Error: 500 on the /shipyard endpoint on carriers. We think this is an FDEV issue.
|
||||||
|
|
||||||
|
Release 5.9.3
|
||||||
|
===
|
||||||
|
This release is identical to 5.9.3, except reverts a bad change.
|
||||||
|
|
||||||
|
- REVERTS Deprecated load_module() is now retired (#1462)
|
||||||
|
|
||||||
Release 5.9.2
|
Release 5.9.2
|
||||||
===
|
===
|
||||||
This release fixes a critical issue on clean installs which would not update the
|
This release fixes a critical issue on clean installs which would not update the
|
||||||
|
@ -15,6 +15,7 @@ import json
|
|||||||
import numbers
|
import numbers
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
|
import sys
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
@ -743,6 +744,10 @@ class Session(object):
|
|||||||
self.state = Session.STATE_INIT # Will try to authorize again on next login or query
|
self.state = Session.STATE_INIT # Will try to authorize again on next login or query
|
||||||
self.auth = None
|
self.auth = None
|
||||||
raise # Bad thing happened
|
raise # Bad thing happened
|
||||||
|
if getattr(sys, 'frozen', False):
|
||||||
|
tk.messagebox.showinfo(title="Authentication Successful",
|
||||||
|
message="Authentication with cAPI Successful.\n"
|
||||||
|
"You may now close the Frontier login tab if it is still open.")
|
||||||
|
|
||||||
def close(self) -> None:
|
def close(self) -> None:
|
||||||
"""Close the `request.Session()."""
|
"""Close the `request.Session()."""
|
||||||
|
@ -52,7 +52,8 @@ appcmdname = 'EDMC'
|
|||||||
# <https://semver.org/#semantic-versioning-specification-semver>
|
# <https://semver.org/#semantic-versioning-specification-semver>
|
||||||
# Major.Minor.Patch(-prerelease)(+buildmetadata)
|
# Major.Minor.Patch(-prerelease)(+buildmetadata)
|
||||||
# NB: Do *not* import this, use the functions appversion() and appversion_nobuild()
|
# NB: Do *not* import this, use the functions appversion() and appversion_nobuild()
|
||||||
_static_appversion = '5.9.2'
|
_static_appversion = '5.9.4'
|
||||||
|
|
||||||
_cached_version: Optional[semantic_version.Version] = None
|
_cached_version: Optional[semantic_version.Version] = None
|
||||||
copyright = '© 2015-2019 Jonathan Harris, 2020-2023 EDCD'
|
copyright = '© 2015-2019 Jonathan Harris, 2020-2023 EDCD'
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#define MyAppName "EDMarketConnector"
|
#define MyAppName "EDMarketConnector"
|
||||||
|
#define MyAppLongName "Elite Dangerous Market Connector"
|
||||||
#define MyAppVersion "$appver"
|
#define MyAppVersion "$appver"
|
||||||
#define MyAppPublisher "EDCD"
|
#define MyAppPublisher "EDCD"
|
||||||
#define MyAppURL "https://edcd.github.io/"
|
#define MyAppURL "https://edcd.github.io/"
|
||||||
@ -32,7 +33,7 @@ LicenseFile=LICENSE
|
|||||||
AlwaysShowDirOnReadyPage=yes
|
AlwaysShowDirOnReadyPage=yes
|
||||||
UninstallDisplayIcon={app}\{#MyAppExeName}
|
UninstallDisplayIcon={app}\{#MyAppExeName}
|
||||||
MinVersion=6.2
|
MinVersion=6.2
|
||||||
|
ChangesAssociations = yes
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
@ -45,36 +46,49 @@ Source: "dist.win32\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
|||||||
Source: "dist.win32\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
Source: "dist.win32\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
Name: "{autoprograms}\{#MyAppLongName}"; Filename: "{app}\{#MyAppExeName}"; Comment: "EDMC";
|
||||||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon;
|
||||||
|
|
||||||
[Run]
|
[Run]
|
||||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
|
|
||||||
;Check if a WiX-based installation exists. If so, kill it with fire.
|
;Check if a WiX-based installation exists. If so, kill it with fire.
|
||||||
[Code]
|
[Code]
|
||||||
|
function IsWixInstalled: Boolean;
|
||||||
|
var
|
||||||
|
Uninstall: String;
|
||||||
|
begin
|
||||||
|
Result := RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5E9AD4D3-0365-41D5-9586-9368745DD109}', 'UninstallString', Uninstall);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure CurStepChanged(CurStep: TSetupStep);
|
procedure CurStepChanged(CurStep: TSetupStep);
|
||||||
var
|
var
|
||||||
ResultCode: Integer;
|
ResultCode: Integer;
|
||||||
Uninstall: String;
|
Uninstall: String;
|
||||||
begin
|
begin
|
||||||
if (CurStep = ssInstall) then begin
|
if (CurStep = ssInstall) and IsWixInstalled then
|
||||||
if RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5E9AD4D3-0365-41D5-9586-9368745DD109}', 'UninstallString', Uninstall) then begin
|
begin
|
||||||
MsgBox('Warning: an old version of EDMC is installed! Please close EDMC while we remove the old version!', mbInformation, MB_OK);
|
MsgBox('Warning: an old version of EDMC is installed! Please close EDMC while we remove the old version!', mbInformation, MB_OK);
|
||||||
Uninstall := '/x {5E9AD4D3-0365-41D5-9586-9368745DD109}';
|
Uninstall := '/x {5E9AD4D3-0365-41D5-9586-9368745DD109}';
|
||||||
Exec('MsiExec.exe', Uninstall, '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
|
Exec('MsiExec.exe', Uninstall, '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
[Registry]
|
[Registry]
|
||||||
; Create the registry key for the custom file type
|
; Create the main registry key under HKCR
|
||||||
Root: HKCR; Subkey: "edmc"; Flags: uninsdeletekey
|
Root: HKCR; Subkey: "edmc"; Flags: uninsdeletekey
|
||||||
; Create the registry values for the custom file type
|
; Create a default value under the "edmc" key
|
||||||
Root: HKCR; Subkey: "edmc"; ValueType: string; ValueName: ""; ValueData: "{#MyAppName}"; Flags: uninsdeletevalue
|
Root: HKCR; Subkey: "edmc"; ValueType: string; ValueName: ""; ValueData: "{#MyAppName}"; Flags: uninsdeletekey
|
||||||
Root: HKCR; Subkey: "edmc\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"; Flags: uninsdeletevalue
|
; Create the "URL Protocol" value under the "edmc" key
|
||||||
Root: HKCR; Subkey: "edmc\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""; Flags: uninsdeletevalue
|
Root: HKCR; Subkey: "edmc"; ValueType: string; ValueName: "URL Protocol"; ValueData: ""; Flags: uninsdeletekey
|
||||||
|
; Create the "DefaultIcon" subkey under the "edmc" key
|
||||||
; Register the URL protocol handler
|
Root: HKCR; Subkey: "edmc\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\EDMarketConnector.exe,0"; Flags: uninsdeletekey
|
||||||
Root: HKCR; Subkey: "edmc"; ValueType: string; ValueName: "URL Protocol"; ValueData: ""; Flags: uninsdeletevalue
|
; Create the "shell" subkey under the "edmc" key
|
||||||
|
Root: HKCR; Subkey: "edmc\shell"; Flags: uninsdeletekey
|
||||||
|
; Create the "open" subkey under the "shell" subkey
|
||||||
|
Root: HKCR; Subkey: "edmc\shell\open"; Flags: uninsdeletekey
|
||||||
|
; Create the "command" subkey under the "open" subkey
|
||||||
|
Root: HKCR; Subkey: "edmc\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\EDMarketConnector.exe"" ""%1"""; Flags: uninsdeletekey
|
||||||
|
; Create the "ddeexec" subkey under the "open" subkey
|
||||||
|
Root: HKCR; Subkey: "edmc\shell\open\ddeexec"; ValueType: string; ValueName: ""; ValueData: "Open(""%1"")"; Flags: uninsdeletekey
|
||||||
|
Loading…
x
Reference in New Issue
Block a user