diff options
Diffstat (limited to 'build.py')
-rw-r--r-- | build.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/build.py b/build.py new file mode 100644 index 0000000..91a66fb --- /dev/null +++ b/build.py @@ -0,0 +1,26 @@ +from fbs.cmdline import command +from os.path import dirname +import subprocess +import sys +import fbs.cmdline +import fbs + +sys.path.append('src/main/python/') + +@command +def compileResources(): + subprocess.call("pyrcc5 -o src/main/python/resources/resources.py src/main/ui/resources.rcc", shell=True) + +@command +def symbolGen(): + from utils import custom + custom.main() + +@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 |