Skip to content

Commit

Permalink
windows app builder: can skip freshen
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDunfield committed Nov 27, 2024
1 parent 55d5cce commit 686310c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions windows_exe/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os, sys, shutil, platform

this_python = sys.executable
this_pyinstaller = os.path.abspath(
this_pyinstaller = os.path.abspath(i
os.path.join(this_python, '..', 'Scripts', 'pyinstaller'))

# The Inno Installer config file (*.iss) assumes a 64 bit binary.
Expand All @@ -23,16 +23,14 @@
print("ERROR: Need to install snappy_15_knots!")
sys.exit(1)


os.chdir("../windows_exe/../")
os.system("git pull")
os.system("rm dist/*.whl")

os.system(this_python + " setup.py pip_install")
if '--no-freshen' not in sys.argv:
os.chdir("../windows_exe/../")
os.system("git pull")
os.system("rm dist/*.whl")
os.system(this_python + " setup.py pip_install")
os.chdir("windows_exe")

# Now build the .exe

os.chdir("windows_exe")
os.system("rm -rf build dist InstallSnapPy.exe InstallSnapPy-Dbg.exe")
os.system(this_pyinstaller + " SnapPy_py3.spec")
os.system("iscc InnoSnapPy_py3.iss")
Expand Down

0 comments on commit 686310c

Please sign in to comment.