Skip to content
Snippets Groups Projects
Commit 153c9863 authored by Martin Schrön's avatar Martin Schrön
Browse files

Added build script

parent aee6fa87
No related branches found
No related tags found
No related merge requests found
......@@ -4,4 +4,8 @@ __pycache__
_garbage
output
NM
/input
\ No newline at end of file
/input
builds/build
builds/*
!builds/make.py
!builds/README.md
\ No newline at end of file
Executable files are large and should not be stored in a git repository.
The files will be stored here:
https://nc.ufz.de/s/NaeF8aMogEFnScq
Password: neutronmagic
Currently the making of the executable fails tue to some version bug with the packages used.
\ No newline at end of file
import os
import subprocess
from glob import glob
from datetime import date
subprocess.call(["pyinstaller", "-wF", "../instantPASDy-GUI.py"])
# -w creates a windowed GUI
# -F is onefile
today = date.today().strftime("%Y%m%d")
for f in glob("dist/*"):
b = os.path.basename(f)
os.rename(f, b.replace('.', '-%s.' % today))
os.rmdir("dist")
print("Done.")
input()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment