From: Carl Hetherington Date: Wed, 9 Oct 2019 20:08:02 +0000 (+0200) Subject: Allow debug builds with no internet connection. Also add missing patron. X-Git-Tag: v2.15.22~3^2 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=c0a609b31bbf69d1fafcc734ac4f825933703d23 Allow debug builds with no internet connection. Also add missing patron. --- diff --git a/src/wx/about_dialog.cc b/src/wx/about_dialog.cc index 8f31cd557..0ac5d484f 100644 --- a/src/wx/about_dialog.cc +++ b/src/wx/about_dialog.cc @@ -143,6 +143,7 @@ AboutDialog::AboutDialog (wxWindow* parent) wxArrayString patrons; patrons.Add ("Luproduction"); + patrons.Add ("Lightbender Post"); add_section (_("Patrons"), patrons); wxArrayString subscribers; diff --git a/wscript b/wscript index dd0bb9daa..eb9c7e461 100644 --- a/wscript +++ b/wscript @@ -17,6 +17,8 @@ # along with DCP-o-matic. If not, see . # +from __future__ import print_function + import subprocess import os import shlex @@ -545,8 +547,16 @@ def download_supporters(can_fail): r = os.system('curl -m 2 -s -f https://dcpomatic.com/supporters.cc?%s > src/wx/supporters.cc' % urlencode({"until": last_date.strip()})) if (r >> 8) == 0: r = os.system('curl -s -f https://dcpomatic.com/subscribers.cc?%s > src/wx/subscribers.cc' % urlencode({"until": last_date.strip()})) - if (r >> 8) != 0 and can_fail: - raise Exception("Could not download supporters lists (%d)" % (r >> 8)) + if (r >> 8) != 0: + if can_fail: + raise Exception("Could not download supporters lists (%d)" % (r >> 8)) + else: + f = open('src/wx/supporters.cc', 'w') + print('supported_by.Add(wxT("Debug build - no supporters lists available"));', file=f) + f.close() + f = open('src/wx/subscribers.cc', 'w') + print('subscribers.Add(wxT("Debug build - no subscribers lists available"));', file=f) + f.close() def build(bld): create_version_cc(VERSION, bld.env.CXXFLAGS)