Skip to content

Commit b5b4869

Browse files
committed
0.03a release, dependencies fix
1 parent f73f78d commit b5b4869

File tree

6 files changed

+20
-11
lines changed

6 files changed

+20
-11
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@ make sure your path includes only 64-bit python, adapt the following line as nee
1212
PATH=C:\Python\Python37\Scripts\;C:\Python\Python37\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd
1313
cd c:\empires
1414
pip install -r requirements.txt
15-
pyinstaller build-tools\empires-server.spec --distpath ..\dist_mini003_x64
16-
15+
copy build-tools\empires-server.spec .
16+
pyinstaller empires-server.spec --distpath ..\dist_mini003_x64 --clean
1717

1818
## 32 bit build:
1919
open another cmd
2020
make sure your path includes only 32-bit python, adapt the following line as needed and run:
2121
PATH=C:\Python\Python37-32\Scripts\;C:\Python\Python37-32\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd
2222
cd c:\empires
2323
pip install -r requirements.txt
24-
pyinstaller build-tools\empires-server.spec --distpath ..\dist_mini003_x86
24+
copy build-tools\empires-server.spec .
25+
pyinstaller empires-server.spec --distpath ..\dist_mini003_x86 --clean
2526

2627
## Inno Setup installer
2728
open the build-tools/empires_inno_setup.iss file and play it
29+
test it!
2830

2931

3032

build-tools/empires_inno_setup.iss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ Filename: "{app}\RaiseTheEmpires.ini"; Section: "InstallSettings"; Flags: uninsd
9595
Filename: "{app}\RaiseTheEmpires.ini"; Section: "InstallSettings"; Check: Is64BitInstallMode; Key: "Arch"; String: "x64"
9696
Filename: "{app}\RaiseTheEmpires.ini"; Section: "InstallSettings"; Check: not Is64BitInstallMode; Key: "Arch"; String: "x86"
9797

98+
[UninstallDelete]
99+
Type: files; Name: "{app}\RaiseTheEmpires.ini"
100+
Type: dirifempty; Name: "{app}"
101+
98102
[Run]
99103
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
100104

empires-server.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
import getopt
33
import sys
44

5-
import texteditor
6-
75
os.environ["PBR_VERSION"] = '5.4.3'
6+
if not os.environ.get('EDITOR'):
7+
os.environ["EDITOR"] = 'notepad' # system specific!
88

9+
import editor
910
from tendo import singleton
1011
opts, args = getopt.getopt(sys.argv[1:],"",["debug"])
1112
debug = ("--debug", '') in opts
@@ -40,7 +41,7 @@
4041
# import logging.config
4142

4243
version = "0.03a"
43-
release_date = 'Saturday, 05 Oct 2019'
44+
release_date = 'Monday, 14 Oct 2019'
4445

4546
COMPRESS_MIMETYPES = ['text/html', 'text/css', 'text/xml', 'application/json', 'application/javascript',
4647
'application/x-amf']
@@ -1689,7 +1690,7 @@ def delete_save(message):
16891690

16901691
@app.errorhandler(500)
16911692
def server_error_page(error):
1692-
text = texteditor.open(filename=os.path.join(log_path(), "log.txt"))
1693+
text = editor.edit(filename=os.path.join(log_path(), "log.txt"))
16931694
return 'It went wrong'
16941695

16951696

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ pyinstaller
22
tendo
33
py3amf
44
flask
5+
flask_session
56
flask_sqlalchemy
67
flask_compress
78
flask_socketio
89
libscrc
9-
daiquiri
10+
daiquiri
11+
python-editor

save_engine.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
import sys
66
from datetime import datetime
77
import daiquiri
8+
import editor
89
from flask import session
910
import logging
10-
import texteditor
11-
1211

1312
def lookup_object(id):
1413
[game_object] = [e for e in session['user_object']["userInfo"]["world"]["objects"] if e['id'] == id]
@@ -56,7 +55,7 @@ def exception_handler(exc_type, exc_value, exc_traceback):
5655
return
5756

5857
logger.error("Uncaught exception", exc_info=(exc_type, exc_value, exc_traceback))
59-
text = texteditor.open(filename=os.path.join(log_path(), "log.txt"))
58+
text = editor.edit(filename=os.path.join(log_path(), "log.txt"))
6059

6160
# logger = logging.getLogger(__name__)
6261
# handler = logging.StreamHandler(stream=sys.stdout)

templates/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
alpha v0.03a
2+
0.03a release, dependencies fix Nat 14/10/2019 01:36
23
battle damage quest fix, release build, readme Nat 13/10/2019 22:42
34
liberty bond battle reward thebatmanwa 13/10/2019 22:29
45
Revert "Flag_bug_solved" thebatmanwa 13/10/2019 15:59

0 commit comments

Comments
 (0)