Skip to content

Commit

Permalink
add: windows installer script
Browse files Browse the repository at this point in the history
  • Loading branch information
singjc committed Feb 22, 2024
1 parent 94add45 commit b2bfc63
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions dist-scripts/windows/create_windows_installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/sh

# This script is used to create the Linux installer for the application.

echo "[$(date)] INFO - Cleaning up the previous build and dist folders"
rm -rf dist
rm -rf build
cd ../../
rm -rf dist
rm -rf build

# Create a fresh conda environment
echo "[$(date)] INFO - Creating a fresh conda environment"
conda create -n massdash_pyinstaller python=3.9 -y
conda activate massdash_pyinstaller

# Install the required packages
echo "[$(date)] INFO - Installing required packages"
pip install -r requirements.txt
pip install onnxruntime
pip install torch
pip install torchmetrics
pip install setuptools
pip install build
pip install pyinstaller
echo "[$(date)] INFO - Building and installing massdash"
python -m build
pip install dist/massdash-0.0.8-py3-none-any.whl

cd dist-scripts/windows

# Create the installer
echo "[$(date)] INFO - Creating the installer"
pyinstaller ../pyinstaller/massdash.spec -y
conda deactivate

# Create an .exe package
echo "[$(date)] INFO - Creating an .exe package"

0 comments on commit b2bfc63

Please sign in to comment.