Skip to content

Commit

Permalink
Better build script
Browse files Browse the repository at this point in the history
  • Loading branch information
rndstr committed Jan 13, 2022
1 parent 0c42517 commit 86d1a21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion irdrsbeep.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def loop():
parser.add_argument('--tick', type=float, default=0.05, help=argparse.SUPPRESS)

args = parser.parse_args()
print("drs beep for iRacing v%s" % VERSION)
print('drs beep for iRacing v%s' % VERSION)
print(' github.com/rndstr/irdrsbeep')
print()
config = configparser.ConfigParser()
config.read('irdrsbeep.ini')

Expand Down
13 changes: 10 additions & 3 deletions pkg
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/bin/sh
set -e
rm -f irdrsbeep.exe irdrsbeep.zip
pyinstaller --onefile irdrsbeep.py --distpath .
zip irdrsbeep.zip irdrsbeep.ini irdrsbeep.exe
[[ $# -ne 1 ]] && { echo "missing version"; exit 1; }

NAME="irdrsbeep"
ZIP="$NAME-v$1.zip"

# clean
rm -rf $NAME $ZIP
mkdir $NAME
pyinstaller --onefile irdrsbeep.py --distpath .
cp irdrsbeep.exe irdrsbeep.ini README.md $NAME
zip $ZIP $NAME/*

0 comments on commit 86d1a21

Please sign in to comment.