Skip to content

Commit

Permalink
pack 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Jul 21, 2017
1 parent 6eb2290 commit 4cd0705
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ A cross platform serial debug tools written by python
- [x] auto save settings
- [x] <kbd>Ctrl+Enter</kbd> to send
- [ ] escape character support, like \x \r \n etc.
- [ ] multiple send (order and disorder)
- [ ] multiple character encode support
- [ ] multiple auto send (order and disorder)
- [ ] night theme and White theme

## Install
Expand Down
Binary file added assets/logo.ico
Binary file not shown.
3 changes: 1 addition & 2 deletions src/autoUpdate.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import webbrowser
import urllib.request
from bs4 import BeautifulSoup
from src import helpAbout,parameters
from PyQt5.QtWidgets import QMessageBox
import helpAbout,parameters

class AutoUpdate:
updateUrl = "https://github.com/Neutree/PyserialAssistant/releases"
Expand Down
3 changes: 3 additions & 0 deletions src/build_bin.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sh build_bin.sh windows

pause
20 changes: 20 additions & 0 deletions src/build_bin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
# `sh build_bin.sh`
# please install cx-freeze first and make sure command `cxfreeze` can execute`
# pip install cx-freeze

if [[ $1 == "windows" ]]; then
cxfreeze main.py --target-dir PySerialAssistant --icon ../assets/logo.ico --base-name=win32gui
elif [[ $1 == "linux" ]]; then
echo 'not test on linux yet'
exit 0
elif [[ $1 == "macos" ]]; then
echo 'not test linux yet'
exit 0
else
echo 'no parameter: linux windows or mac'
exit 0
fi

cp ../assets/logo.png PySerialAssistant/logo.png
echo "bin file in folder PySerialAssistant"
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import sys,os
from src import parameters,Combobox,helpAbout,autoUpdate
import parameters,Combobox,helpAbout,autoUpdate
from PyQt5.QtCore import pyqtSignal,Qt
from PyQt5.QtWidgets import (QApplication, QWidget,QToolTip,QPushButton,QMessageBox,QDesktopWidget,QMainWindow,
QVBoxLayout,QHBoxLayout,QGridLayout,QTextEdit,QComboBox,QLabel,QRadioButton,QCheckBox,
QLineEdit,QGroupBox,QStatusBar)
QLineEdit,QGroupBox)
from PyQt5.QtGui import QIcon,QFont,QTextCursor
import serial
import serial.tools.list_ports
Expand Down
2 changes: 1 addition & 1 deletion src/parameters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
appName = "PySerialAssistant"
appIcon = "../assets/logo.png"
appIcon = "logo.png"

strSend = "Send"
strReceive = "Receive"
Expand Down

0 comments on commit 4cd0705

Please sign in to comment.