Skip to content

Commit

Permalink
remove launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kinetic-flow committed Mar 7, 2020
1 parent a4f4b8d commit 561705c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@echo off
del /q dist\*
echo Build with pyinstaller...
pyinstaller ticker.py --onefile -n iidxseg --add-data "DSEG14Classic-Italic.ttf;."
copy iidxseg_launch.bat dist\iidxseg_launch.bat
pyinstaller ticker.py --onefile -n iidxseg --add-data "DSEG14Classic-Italic.ttf;." --noconsole
echo Create an archive...
powershell Compress-Archive -Path dist\* -DestinationPath dist\iidxseg_release.zip
2 changes: 0 additions & 2 deletions iidxseg_launch.bat

This file was deleted.

7 changes: 6 additions & 1 deletion ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@

DEFAULT_WIDTH = 520
DEFAULT_ASPECT_RATIO = (52 / 10)
DEFAULT_FONT = ".\\DSEG14Classic-Italic.ttf"

if getattr(sys, 'frozen', False):
CurrentPath = sys._MEIPASS
else:
CurrentPath = os.path.dirname(__file__)
DEFAULT_FONT = os.path.join(CurrentPath, 'DSEG14Classic-Italic.ttf')

CONNECTING_TEXT = "CONNECT.!.!."

Expand Down

0 comments on commit 561705c

Please sign in to comment.