Skip to content

Commit d742c2f

Browse files
committed
Bump versions
1 parent d7c61bd commit d742c2f

File tree

10 files changed

+26
-2989
lines changed

10 files changed

+26
-2989
lines changed

.DS_Store

6 KB
Binary file not shown.

About.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# coding=utf-8
33

44
import sys
5+
import datetime
56
import os
67
import wx
78
import wx.html
@@ -36,7 +37,7 @@ class AboutDlg(wx.Dialog):
3637
</a>
3738
</p>
3839
39-
<p>&copy; 2020 Marcel St&ouml;r. Licensed under MIT.</p>
40+
<p>&copy; {2} Marcel St&ouml;r. Licensed under MIT.</p>
4041
4142
<p>
4243
<wxp module="wx" class="Button">
@@ -54,7 +55,7 @@ def __init__(self, parent):
5455
html = HtmlWindow(self, wx.ID_ANY, size=(420, -1))
5556
if "gtk2" in wx.PlatformInfo or "gtk3" in wx.PlatformInfo:
5657
html.SetStandardFonts()
57-
txt = self.text.format(self._get_bundle_dir(), __version__)
58+
txt = self.text.format(self._get_bundle_dir(), __version__, datetime.datetime.now().year)
5859
html.SetPage(txt)
5960
ir = html.GetInternalRepresentation()
6061
html.SetSize((ir.GetWidth() + 25, ir.GetHeight() + 25))

Main.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@
1313
import images as images
1414
from serial import SerialException
1515
from serial.tools import list_ports
16-
from esptool import ESPLoader
17-
from esptool import NotImplementedInROMError
18-
from esptool import FatalError
19-
from argparse import Namespace
2016

21-
__version__ = "4.0"
17+
__version__ = "5.0.0"
2218
__flash_help__ = '''
2319
<p>This setting is highly dependent on your device!<p>
2420
<p>
@@ -61,6 +57,11 @@ def flush(self):
6157
# noinspection PyStatementEffect
6258
None
6359

60+
# esptool >=3 handles output differently of the output stream is not a TTY
61+
# noinspection PyMethodMayBeStatic
62+
def isatty(self):
63+
return True
64+
6465
# ---------------------------------------------------------------------------
6566

6667

@@ -83,6 +84,8 @@ def run(self):
8384
command.extend(["--baud", str(self._config.baud),
8485
"--after", "no_reset",
8586
"write_flash",
87+
# https://github.com/espressif/esptool/issues/599
88+
"--flash_size", "detect",
8689
"--flash_mode", self._config.mode,
8790
"0x00000", self._config.firmware_path])
8891

@@ -209,7 +212,7 @@ def on_pick_file(event):
209212
self._select_configured_port()
210213
bmp = images.Reload.GetBitmap()
211214
reload_button = wx.BitmapButton(panel, id=wx.ID_ANY, bitmap=bmp,
212-
size=(bmp.GetWidth() + 7, bmp.GetHeight() + 7))
215+
size=(bmp.GetWidth() + 2, bmp.GetHeight() + 2))
213216
reload_button.Bind(wx.EVT_BUTTON, on_reload)
214217
reload_button.SetToolTip("Reload serial device list")
215218

@@ -219,7 +222,7 @@ def on_pick_file(event):
219222
serial_boxsizer = wx.BoxSizer(wx.HORIZONTAL)
220223
serial_boxsizer.Add(self.choice, 1, wx.EXPAND)
221224
serial_boxsizer.AddStretchSpacer(0)
222-
serial_boxsizer.Add(reload_button, 0, wx.ALIGN_RIGHT, 20)
225+
serial_boxsizer.Add(reload_button)
223226

224227
baud_boxsizer = wx.BoxSizer(wx.HORIZONTAL)
225228

@@ -298,7 +301,7 @@ def on_info_hover(event):
298301
flashmode_label_boxsizer = wx.BoxSizer(wx.HORIZONTAL)
299302
flashmode_label_boxsizer.Add(flashmode_label, 1, wx.EXPAND)
300303
flashmode_label_boxsizer.AddStretchSpacer(0)
301-
flashmode_label_boxsizer.Add(icon, 0, wx.ALIGN_RIGHT, 20)
304+
flashmode_label_boxsizer.Add(icon)
302305

303306
erase_label = wx.StaticText(panel, label="Erase flash")
304307
console_label = wx.StaticText(panel, label="Console")

build-on-mac.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ exe = EXE(pyz,
2525
upx=True,
2626
console=False , icon='images/icon-256.icns')
2727
app = BUNDLE(exe,
28-
name='NodeMCU-PyFlasher-4.0.app',
28+
name='NodeMCU-PyFlasher-5.0.0.app',
2929
icon='./images/icon-256.icns',
3030
bundle_identifier='com.frightanic.nodemcu-pyflasher')

build-on-win.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exe = EXE(pyz,
1919
a.binaries,
2020
a.zipfiles,
2121
a.datas,
22-
name='NodeMCU-PyFlasher-4.0',
22+
name='NodeMCU-PyFlasher-5.0.0',
2323
debug=False,
2424
strip=False,
2525
upx=True,

build.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pyinstaller --log-level=DEBUG ^
22
--noconfirm ^
3+
--windowed ^
34
build-on-win.spec

build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env bash
2-
#rm -fr build dist
3-
VERSION=4.0
2+
# rm -fr build dist
3+
VERSION=5.0.0
44
NAME=NodeMCU-PyFlasher
55

66
pyinstaller --log-level=DEBUG \
77
--noconfirm \
8+
--windowed \
89
build-on-mac.spec
910

10-
#https://github.com/sindresorhus/create-dmg
11+
# https://github.com/sindresorhus/create-dmg
1112
create-dmg dist/$NAME-$VERSION.app
1213
mv "$NAME-$VERSION 0.0.0.dmg" dist/$NAME-$VERSION.dmg

esptool-py-why-here.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)