Skip to content

Commit

Permalink
Update make file, release dev version 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sowwic committed Mar 30, 2022
1 parent 4419aaa commit 9534c91
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
35 changes: 34 additions & 1 deletion make
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
pyinstaller.exe --onefile --windowed --name dsReferencePlayer --icon=./images/dsIcon.ico ./scripts/referencePlayer.py
#!/bin/bash
APP_NAME="dsReferencePlayer"
MAIN_FILE_PATH=./scripts/referencePlayer.py
ICON_PATH="./images/dsIcon.ico"
PYTHON_CMD="py -3"

# Linux
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
SITE_PACKAGES_PATH=.env/Lib/site-packages
# Mac OSX
elif [[ "$OSTYPE" == "darwin"* ]]; then
SITE_PACKAGES_PATH=.env/lib64/python3.9/site-packages
PYTHON_CMD="python3"
# Windows
elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "win32" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
SITE_PACKAGES_PATH=.venv/Lib/site-packages
else
echo "Unsupported OS: $OSTYPE"
exit 1
fi
echo "Building for $OSTYPE"

# Cleanup
echo "Cleaning up build files..."
rm -rf build dist dsReferencePlayer.spec

echo "Running pyinstaller..."
$PYTHON_CMD -m PyInstaller --onefile --windowed \
--icon $ICON_PATH \
--paths $SITE_PACKAGES_PATH \
--name $APP_NAME \
$MAIN_FILE_PATH

$SHELL
2 changes: 1 addition & 1 deletion scripts/referencePlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from scripts import resources # noqa: F401
from scripts.widget_actions import QLabeledSliderWidget

VERSION = "1.3.2"
VERSION = "1.3.3-dev"

# Logger
logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 9534c91

Please sign in to comment.