mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
This commit add a first version code to build a flatpak of kiwix-desktop. It is mainly based on the PR #254 of @birros (hence he is the author of this commit) However there is some differences : - I (@mgautier) create a new builder to run the flatpak build instead of using a new dependency. - Use the flatpak platform to install org.kde.Platform and org.kde.Sdk This code version doesn't correctly work but I wanted to commit the birros' code without too many modification (even if there is a lot).
18 lines
438 B
Python
18 lines
438 B
Python
from .base import PlatformInfo
|
|
from kiwixbuild._global import option, neutralEnv
|
|
from kiwixbuild.utils import run_command
|
|
|
|
class FlatpakPlatformInfo(PlatformInfo):
|
|
name = 'flatpak'
|
|
build = 'flatpak'
|
|
static = ''
|
|
toolchain_names = ['org.kde']
|
|
compatible_hosts = ['debian', 'fedora']
|
|
|
|
def __str__(self):
|
|
return "flatpak"
|
|
|
|
def set_env(self, env):
|
|
env['FLATPAK_USER_DIR'] = self.buildEnv.build_dir
|
|
|