summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-02-19 13:48:27 +0100
committerCarl Hetherington <cth@carlh.net>2022-02-20 00:58:41 +0100
commit7f6f5b60813efcf2610ead424ea216d59a256482 (patch)
tree9e48d4a3dba53450efe6ac5dd6f68ed245b06c83 /cscript
parent7c3bcda75362e22c69ddd5ee1d609024fa0f1b36 (diff)
Fix build/package for modification to cdist.
Diffstat (limited to 'cscript')
-rw-r--r--cscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/cscript b/cscript
index 6790a7583..665e151b1 100644
--- a/cscript
+++ b/cscript
@@ -571,8 +571,7 @@ def build(target, options):
with open('build/com.dcpomatic.DCP-o-matic.json', 'w') as outfile:
json.dump(desc, outfile)
target.command('%s --repo=build/platform/repo build/platform/flatpak build/com.dcpomatic.DCP-o-matic.json' % target.flatpak_builder())
- elif target.platform != "linux" or target.detail == 'appimage':
- # Build here if the packaging step won't do it
+ else:
target.command('./waf configure --prefix=%s %s' % (target.directory, configure_options(target, options)))
target.command('./waf')
target.command('./waf install')
@@ -714,6 +713,10 @@ def make_appimage(target, nice_name, internal_name, version):
def package(target, version, options):
"""version: DCP-o-matic version string"""
+ if target.platform != 'linux' or target.detail == 'appimage':
+ # In most cases we need to build ourselves before packaging, but on some Linux targets the packaging
+ # tool wants to build DCP-o-matic so we don't bother here.
+ build(target, options)
if target.platform == 'windows':
return package_windows(target)
elif target.platform == 'linux':