Skip to content

Commit

Permalink
0.05a release
Browse files Browse the repository at this point in the history
  • Loading branch information
Natlies committed Feb 3, 2020
1 parent 1628824 commit 080c99e
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 5 deletions.
45 changes: 42 additions & 3 deletions build-tools/empires_inno_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "RaiseTheEmpires"
#define MyAppVersion "0.04a"
#define MyAppVersion "0.05a"
#define MyAppPublisher "RaiseTheEmpires"
#define MyAppURL "https://github.com/AcidCaos/empires-and-allies"
#define MyAppExeName "empires-server.exe"
Expand Down Expand Up @@ -64,9 +64,11 @@ Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescrip

[Files]
;x64
Source: "C:\dist_mini004_x64\empires-server.exe"; DestDir: "{app}"; Check: Is64BitInstallMode; Flags: ignoreversion
Source: "C:\empires\redist\vc_redist.x64.exe"; DestDir: "{tmp}"; Check: Is64BitInstallMode; Flags: deleteafterinstall
Source: "C:\dist_mini005_x64\empires-server.exe"; DestDir: "{app}"; Check: Is64BitInstallMode; Flags: ignoreversion
;x86
Source: "C:\dist_mini004_x86\empires-server.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode; Flags: solidbreak ignoreversion
Source: "C:\empires\\redist\vc_redist.x86.exe"; DestDir: "{tmp}"; Check: not Is64BitInstallMode; Flags: deleteafterinstall
Source: "C:\dist_mini005_x86\empires-server.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode; Flags: solidbreak ignoreversion
;common
Source: "C:\empires\allies\*"; DestDir: "{userdocs}\My Games\{#MyAppName}\allies"; Flags: solidbreak ignoreversion recursesubdirs createallsubdirs
Source: "C:\empires\assets\*"; DestDir: "{app}\assets"; Flags: ignoreversion recursesubdirs createallsubdirs
Expand Down Expand Up @@ -100,5 +102,42 @@ Type: files; Name: "{app}\RaiseTheEmpires.ini"
Type: dirifempty; Name: "{app}"

[Run]
Filename: "{tmp}\vc_redist.x64.exe"; Check: Is64BitInstallMode and VCRedistNeedsInstall; StatusMsg: Installing Visual Studio Runtime x64 Libraries...
Filename: "{tmp}\vc_redist.x86.exe"; Check: (not Is64BitInstallMode) and VCRedist86NeedsInstall; StatusMsg: Installing Visual Studio Runtime x86 Libraries...
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

[Code]
type
INSTALLSTATE = Longint;
const
INSTALLSTATE_INVALIDARG = -2; { An invalid parameter was passed to the function. }
INSTALLSTATE_UNKNOWN = -1; { The product is neither advertised or installed. }
INSTALLSTATE_ADVERTISED = 1; { The product is advertised but not installed. }
INSTALLSTATE_ABSENT = 2; { The product is installed for a different user. }
INSTALLSTATE_DEFAULT = 5; { The product is installed for the current user. }
{ Visual C++ 2017 Redistributable 14.16.27024 }
VC_2017_REDIST_X84_ADD = '{7258184A-EC44-4B1A-A7D3-68D85A35BFD0}';
VC_2017_REDIST_X84_MIN = '{5EEFCEFB-E5F7-4C82-99A5-813F04AA4FBD}';
VC_2017_REDIST_X64_ADD = '{9D29FC96-9EEE-4253-943F-96B3BBFDD0B6}';
VC_2017_REDIST_X64_MIN = '{F1B0FB3A-E0EA-47A6-9383-3650655403B0}';
function MsiQueryProductState(szProduct: string): INSTALLSTATE;
external 'MsiQueryProductState{#AW}@msi.dll stdcall';
function VCVersionInstalled(const ProductID: string): Boolean;
begin
Result := MsiQueryProductState(ProductID) = INSTALLSTATE_DEFAULT;
end;
function VCRedistNeedsInstall: Boolean;
begin
Result := not VCVersionInstalled(VC_2017_REDIST_X64_MIN);
end;
function VCRedist86NeedsInstall: Boolean;
begin
Result := not VCVersionInstalled(VC_2017_REDIST_X84_MIN);
end;
4 changes: 2 additions & 2 deletions empires-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@

# import logging.config

version = "0.04a"
release_date = 'Thursday, 14 Nov 2019'
version = "0.05a"
release_date = 'Monday, 3 Feb 2020'

COMPRESS_MIMETYPES = ['text/html', 'text/css', 'text/xml', 'application/json', 'application/javascript',
'application/x-amf']
Expand Down
4 changes: 4 additions & 0 deletions save_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def migrate(meta, version, target_version):
create_backup("Update to 0.04a")
version = "0.04a"
session['save_version'] = version
if version == "0.04a" and version != target_version:
create_backup("Update to 0.05a")
version = "0.05a"
session['save_version'] = version


def zero_yield(extra):
Expand Down
1 change: 1 addition & 0 deletions templates/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
alpha v0.05a
0.05a release Nat 03/02/2020 02:11
multiplayer: tending recipient accept/decline, new session & change ore menu, neighbor ore quests Nat 02/02/2020 23:58
multiplayer: tending rewards Nat 02/02/2020 18:57
multiplayer: tending neighbors Nat 01/02/2020 23:26
Expand Down
Binary file added templates/layouts/Aluminum_60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/layouts/Copper_60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/layouts/Gold_60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/layouts/Iron_60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/layouts/Uranium_60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 080c99e

Please sign in to comment.