generated from caltechlibrary/py-cli-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
make.bat
42 lines (29 loc) · 1.24 KB
/
make.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@ECHO off
REM ===========================================================================
REM @file make.bat
REM @brief Build a .exe using PyInstaller
REM @author Michael Hucka <[email protected]>
REM @license Please see the file named LICENSE in the project directory
REM @website https://github.com/caltechlibrary/holdit
REM
REM Usage:
REM 1. start a terminal shell (e.g., cmd.exe)
REM 2. cd into this directory
REM 3. run "make"
REM ===========================================================================
ECHO Removing "dist/win" and "build/win" subdirectories.
IF EXIST dist\win RD /S /Q dist\win
IF EXIST build\win RD /S /Q build\win
ECHO Making sure all Python packages are the right version
python -m pip install -r requirements.txt
ECHO Generating version.py ...
python dev/installers/windows/create-version.py
ECHO Generating InnoSetup script.
python dev/installers/windows/create-innosetup-script.py
ECHO Generating splash screen file ...
python dev/splash-screen/create-splash-screen.py
ECHO Running PyInstaller ...
python -m PyInstaller --distpath dist/win --clean --noconfirm pyinstaller-win32.spec
ECHO "make.bat" finished.
ECHO The .exe will be in the "dist" subdirectory.
ECHO Now run Innosetup to create an installer.