summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaine2020-06-20 14:55:08 +0530
committerBlaine2020-06-20 14:55:08 +0530
commit54c3ce344d8d4b263e6c6f98dd072293a1a74b55 (patch)
treecac3e0949b354f9473c652d4c4ea5abe244609c6
parentf8519766d7f7fc70180411f912ed8ca15abb6a95 (diff)
downloadChemical-PFD-54c3ce344d8d4b263e6c6f98dd072293a1a74b55.tar.gz
Chemical-PFD-54c3ce344d8d4b263e6c6f98dd072293a1a74b55.tar.bz2
Chemical-PFD-54c3ce344d8d4b263e6c6f98dd072293a1a74b55.zip
add build scripts
-rw-r--r--build.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.py b/build.py
index 9b5a543..d096792 100644
--- a/build.py
+++ b/build.py
@@ -3,11 +3,21 @@ from os.path import dirname
import subprocess
import fbs.cmdline
+import fbs
@command
def compileResources():
subprocess.call("pyrcc5 -o src/main/python/resources/resources.py src/main/ui/resources.rcc", shell=True)
+@command
+def symbolGen():
+ exec(open('src/main/python/utils/custom.py').read())
+
+@command
+def build():
+ compileResources()
+ subprocess.call("fbs freeze", shell=True)
+
if __name__ == '__main__':
project_dir = dirname(__file__)
fbs.cmdline.main(project_dir) \ No newline at end of file