summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-25 22:11:20 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-25 22:11:20 +0100
commit1424e414e163299e576ed816abb0962351d4b6c1 (patch)
tree9996ffb3541dae94cee10212b172c2efdd6ada93 /cscript
parenta8d16fe03293100f1ee66cf48cd62433fcbaf7aa (diff)
Try to put version number into flatpak bundle name.
Diffstat (limited to 'cscript')
-rw-r--r--cscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/cscript b/cscript
index 5b0db9ced..213c3ecd6 100644
--- a/cscript
+++ b/cscript
@@ -583,6 +583,7 @@ def package_rpm(target, cpu, version, options):
return rpms
def package(target, version, options):
+ """version: DCP-o-matic version string"""
if target.platform == 'windows':
return package_windows(target)
elif target.platform == 'linux':
@@ -614,8 +615,8 @@ def package(target, version, options):
target.command('docker build build/platform/docker -t dcpomatic-server:%s' % version)
target.command('docker save dcpomatic-server:%s -o dcpomatic-server-%s-docker.tar' % (version, version))
elif target.platform == 'flatpak':
- target.command('flatpak build-bundle build/platform/repo build/dcpomatic.flatpak com.dcpomatic.DCP-o-matic')
- return os.path.abspath('build/dcpomatic.flatpak')
+ target.command('flatpak build-bundle build/platform/repo build/dcpomatic_%s.flatpak com.dcpomatic.DCP-o-matic' % version)
+ return os.path.abspath('build/dcpomatic_%s.flatpak' % version)
def make_pot(target):
target.command('./waf pot')