scummvm/backends/platform/symbian/symbian_builder/create_installers.py
Fiodar Stryzhniou f992ae017b SYMBIAN: Fix exception in thread function for piper.py and build_apps.py
Allow build older version with current symbian_builder module in case regression.
Set verbose option in installer builder instead error-checking.
Fix ugly 'crcrlf' line endings.
2021-07-12 11:48:29 +02:00

41 lines
1.6 KiB
Python

# ScummVM - Graphic Adventure Engine
# Copyright (C) 2020-2021 Stryzhniou Fiodar
# ScummVM is the legal property of its developers, whose names
# are too numerous to list here. Please refer to the COPYRIGHT
# file distributed with this source distribution.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
from __future__ import with_statement
import os, subprocess
from common_names import *
def makesis(pkg, path):
print "pkg: %s" %pkg
cmd = subprocess.Popen("makesis -v %s" %pkg, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=path, shell=True)
out, err = cmd.communicate()
#After cmd.communicate() we have ugly 'crcrlf' line endings
AppendToFile(build_log, out.replace(u"\r", u""))
AppendToFile(build_err, err.replace(u"\r", u""))
def create_installers(path):
t = os.listdir(path)
[makesis(pkg, path) for pkg in t if ".pkg" in pkg]
if __name__ == "__main__":
create_installers(path = "S60v3")