Support running NSIS from deployment script.
[kugel-rb.git] / utils / common / deploy-themeeditor.py
blob566c04d68da51491ad1679a8388455d01d24c907
1 #!/usr/bin/python
2 # __________ __ ___.
3 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 # \/ \/ \/ \/ \/
8 # $Id$
10 # Copyright (c) 2010 Dominik Riebeling
12 # All files in this archive are subject to the GNU General Public License.
13 # See the file COPYING in the source tree root for full license agreement.
15 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 # KIND, either express or implied.
19 import deploy
20 import sys
22 deploy.program = "rbthemeeditor"
23 deploy.project = "utils/themeeditor/themeeditor.pro"
24 deploy.svnserver = "svn://svn.rockbox.org/rockbox/"
25 deploy.svnpaths = \
26 [ "utils/themeeditor/",
27 "lib/skin_parser/",
28 "docs/COPYING" ]
29 deploy.useupx = False
30 deploy.bundlecopy = {
31 "resources/windowicon.icns" : "Contents/Resources/",
32 "Info.plist" : "Contents/"
34 # Windows nees some special treatment. Differentiate between program name
35 # and executable filename.
36 if sys.platform == "win32":
37 deploy.progexe = "Release/" + deploy.program + ".exe"
38 deploy.make = "mingw32-make"
39 elif sys.platform == "darwin":
40 deploy.progexe = deploy.program + ".app"
41 # OS X 10.6 defaults to gcc 4.2. Building universal binaries that are
42 # compatible with 10.4 requires using gcc-4.0.
43 if not "QMAKESPEC" in deploy.environment:
44 deploy.environment["QMAKESPEC"] = "macx-g++40"
45 else:
46 deploy.progexe = deploy.program
47 # all files of the program. Will get put into an archive after building
48 # (zip on w32, tar.bz2 on Linux). Does not apply on Mac which uses dmg.
49 deploy.programfiles = [ deploy.progexe ]
50 deploy.nsisscript = "utils/themeeditor/themeeditor.nsi"
51 deploy.nsissetup = "utils/themeeditor/rbthemeeditor-setup.exe"
53 deploy.deploy()