File: Build_routine_Win32.py

package info (click to toggle)
zyne 0.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, stretch
  • size: 1,384 kB
  • ctags: 706
  • sloc: python: 3,873; sh: 32; makefile: 15
file content (19 lines) | stat: -rw-r--r-- 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os

build = True

os.system("python ..\pyinstaller\Configure.py")
os.system('python ..\pyinstaller\Makespec.py -F -c --icon=Resources\zyneicon.ico "Zyne.py"')
if build:
    os.system('python ..\pyinstaller\Build.py "Zyne.spec"')
    os.system("svn export . Zyne_Win")
    os.system("copy dist\Zyne.exe Zyne_Win /Y")
    os.system("rmdir /Q /S Zyne_Win\scripts")
    os.system("rmdir /Q /S Zyne_Win\synths")
    os.remove("Zyne_Win/Zyne.py")
    os.remove("Zyne_Win/Resources/zyneicon.icns")
    os.remove("Zyne_Win/Resources/zyneiconDoc.icns")
    os.remove("Zyne.spec")
    os.system("rmdir /Q /S build")
    os.system("rmdir /Q /S dist")