-
Notifications
You must be signed in to change notification settings - Fork 4
/
release.py
43 lines (36 loc) · 1.21 KB
/
release.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from __future__ import print_function, unicode_literals
from mugidelivery import Manager
import os
plugins = [p for p in [
'C:\\Qt5\\5.11.1\\mingw53_32\\plugins',
'D:\\qt\\Qt5.11.3\\5.11.3\\mingw53_32\\plugins'
] if os.path.exists(p)]
conf = {
'AppName' : 'mugi-ffmpeg',
'AppVersion' : '1.1',
'Binaries' : [{'Source': 'D:\\dev\\mugi-ffmpeg\\release\\mugi-ffmpeg.exe', 'Dest': ''}],
'Data' : [],
'BuildDir' : 'D:\\dev\\mugi-ffmpeg',
'BuildActions': [{
'cmds': [
['qmake'],
['mingw32-make.exe', 'clean'],
['mingw32-make.exe', 'release', '-j4']
],
'cwd': 'D:\\dev\\mugi-ffmpeg'
}],
'Arch': 'win32',
'VersionUpdater': 'QtVersionUpdater',
'Builder': 'QtBuilder',
'Packer': 'SimplePacker',
'VersionHeader': 'D:\\dev\\mugi-ffmpeg\\src\\version.h',
'QtPlugins': ['qwindows','qwindowsvistastyle'],
'QtPluginsSource': plugins[0]
}
if os.path.exists('D:\\Qt\\Qt5.11.3\\5.11.3\\mingw53_32\\bin'):
os.environ['PATH'] = 'D:\\Qt\\Qt5.11.3\\5.11.3\\mingw53_32\\bin;D:\\Qt\\Qt5.11.3\\Tools\\mingw530_32\\bin;C:\\qwt6\\lib;C:\\lib-x86;C:\\windows\\system32'
m = Manager(conf)
#m.updateVersion()
m.build()
m.pack()
m.release()