X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=cscript;h=293d69b7ccb1b41f5b8c702fb05ded03cb28e3b0;hb=7e783c3ac62e1000775843234da5f8a78f50b6af;hp=85d464eaeaff874bf8d5d47ae5575c3f45e2cb62;hpb=5fc2718c509231ead7304bc9bb18a2c7c83f7c5d;p=dcpomatic.git diff --git a/cscript b/cscript index 85d464eae..293d69b7c 100644 --- a/cscript +++ b/cscript @@ -375,8 +375,8 @@ def dependencies(target, options): (target.platform == 'osx' and target.bits == 64) or (target.platform == 'windows')) else {} - deps.append(('libdcp', '627dfd9', cpp_lib_options)) - deps.append(('libsub', 'efea829', cpp_lib_options)) + deps.append(('libdcp', '9d1c856', cpp_lib_options)) + deps.append(('libsub', '1b52b38', cpp_lib_options)) deps.append(('leqm-nrt', 'carl')) deps.append(('rtaudio', 'carl')) # We get our OpenSSL libraries from the environment, but we @@ -394,8 +394,9 @@ option_defaults = { "gui": True, "variant": None } def configure_options(target, options): opt = ' --warnings-are-errors' - if not (target.platform == 'linux' and target.distro == 'ubuntu' and target.version == '18.04'): - # Currently we only build tests on Ubuntu 18.04 + if not ((target.platform == 'linux' and target.distro == 'ubuntu' and target.version == '18.04') or + (target.platform == 'osx')): + # Currently we only build tests on Ubuntu 18.04 and macOS opt += ' --disable-tests' if target.debug: @@ -687,7 +688,24 @@ def package(target, version, options): return [os.path.abspath(x) for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg')] elif target.platform == 'osx' and target.bits == 64: target.command('bash platform/osx/make_dmg.sh %s %s thin %s %s' % (target.environment_prefix, target.directory, target.apple_id, target.apple_password)) - return [os.path.abspath(x) for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg')] + packages = [] + for x in glob.glob('build/platform/osx/DCP-o-matic*.dmg'): + a = os.path.abspath(x) + if x.find("Player") != -1: + packages.append((a, "com.dcpomatic.player")) + elif x.find("Playlist Editor") != -1: + packages.append((a, "com.dcpomatic.playlist")) + elif x.find("KDM Creator") != -1: + packages.append((a, "com.dcpomatic.kdm")) + elif x.find("Batch Converter") != -1: + packages.append((a, "com.dcpomatic.batch")) + elif x.find("Encode Server") != -1: + packages.append((a, "com.dcpomatic.server")) + elif x.find("Disk Writer") != -1: + packages.append((a, "com.dcpomatic.disk")) + else: + packages.append((a, "com.dcpomatic")) + return packages elif target.platform == 'docker': shutil.copyfile(target.deb, 'build/platform/docker') f = open('build/platform/docker/Dockerfile', 'w')