From e1d5bf6275ba6787edfd41be46c3e44b15750a85 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Mon, 19 Feb 2024 17:12:30 +0100 Subject: [PATCH] create tarball --- builders/linux-builder.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/builders/linux-builder.py b/builders/linux-builder.py index 3f53f73..3f6988b 100644 --- a/builders/linux-builder.py +++ b/builders/linux-builder.py @@ -45,6 +45,7 @@ config.ini.default import glob import os +import platform from pathlib import Path from shutil import copy, copytree, move, rmtree @@ -97,9 +98,13 @@ class LinuxBuilder(Builder): def build_package(self): """ - Build the actual DMG + Build the tar.gz """ - pass + self._print('Creating tar.gz bundle...') + # TODO: rename OpenLP folder to include version number? + cmd = 'tar -zcf OpenLP-bin-linux-{machine}.tar.gz OpenLP'.format(machine=platform.machine()) + os.system(cmd) + self._print('Created tar.gz bundle.') if __name__ == '__main__':