Merge pull request #492 from kiwix/fix_qt515

This commit is contained in:
Matthieu Gautier 2021-06-29 18:14:25 +02:00 committed by GitHub
commit f16fb8f228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 3 deletions

View File

@ -38,4 +38,8 @@ USER runner
WORKDIR /home/runner WORKDIR /home/runner
ENV PATH /home/runner/.local/bin:$PATH ENV PATH /home/runner/.local/bin:$PATH
RUN echo "source /opt/qt515/bin/qt515-env.sh" >> /home/runner/.bashrc # Set qt515 environment (the equivalent of "source /opt/qt515/bin/qt515-env.sh")
# RUN echo "source /opt/qt515/bin/qt515-env.sh" >> /home/runner/.bashrc
ENV PATH=/opt/qt515/bin:$PATH \
LD_LIBRARY_PATH=/opt/qt515/lib/x86_64-linux-gnu:/opt/qt515/lib:$LD_LIBRARY_PATH \
PKG_CONFIG_PATH=/opt/qt515/lib/pkgconfig:$PKG_CONFIG_PATH

View File

@ -22,7 +22,7 @@ then
mkdir -p KIWIX_ARCHIVES_DIR mkdir -p KIWIX_ARCHIVES_DIR
cp /c/projects/kiwix-build/kiwix-desktop/Release/kiwix-desktop.exe $KIWIX_DIR cp /c/projects/kiwix-build/kiwix-desktop/Release/kiwix-desktop.exe $KIWIX_DIR
/c/Qt/5.12/msvc2017_64/bin/windeployqt --compiler-runtime $KIWIX_DIR /c/Qt/5.15/msvc2019_64/bin/windeployqt --compiler-runtime $KIWIX_DIR
cp $MINGW64_EXTRA_DIR/aria2c.exe $KIWIX_DIR cp $MINGW64_EXTRA_DIR/aria2c.exe $KIWIX_DIR
cp $MINGW64_EXTRA_DIR/bin/*.dll $KIWIX_DIR cp $MINGW64_EXTRA_DIR/bin/*.dll $KIWIX_DIR

View File

@ -35,3 +35,34 @@ class org_kde(Dependency):
self.command('setup_remote', self._setup_remote) self.command('setup_remote', self._setup_remote)
self.command('install_sdk', self._install_sdk) self.command('install_sdk', self._install_sdk)
class org_kde(Dependency):
neutral = False
name = 'io.qt.qtwebengine'
Source = NoopSource
class Builder(Builder):
def _setup_remote(self, context):
command = "flatpak --user remote-add --if-not-exists {remote_name} {remote_url}"
command = command.format(
remote_name = 'flathub',
remote_url = 'https://flathub.org/repo/flathub.flatpakrepo'
)
env = self.buildEnv.get_env(cross_comp_flags=False, cross_compilers=False, cross_path=False)
run_command(command, self.buildEnv.build_dir, context, env=env)
def _install_sdk(self, context):
command = "flatpak --user install -y {remote_name} {name}.BaseApp//{version}"
command = command.format(
remote_name = 'flathub',
name = self.target.name,
version = self.target.version()
)
env = self.buildEnv.get_env(cross_comp_flags=False, cross_compilers=False, cross_path=False)
run_command(command, self.buildEnv.build_dir, context, env=env)
def build(self):
self.command('setup_remote', self._setup_remote)
self.command('install_sdk', self._install_sdk)

View File

@ -5,7 +5,7 @@ class FlatpakPlatformInfo(PlatformInfo):
name = 'flatpak' name = 'flatpak'
build = 'flatpak' build = 'flatpak'
static = '' static = ''
toolchain_names = ['org.kde'] toolchain_names = ['org.kde', 'io.qt.qtwebengine']
compatible_hosts = ['debian', 'fedora'] compatible_hosts = ['debian', 'fedora']
def __str__(self): def __str__(self):

View File

@ -60,5 +60,6 @@ base_deps_versions = {
'qt' : '5.10.1', 'qt' : '5.10.1',
'qtwebengine' : '5.10.1', 'qtwebengine' : '5.10.1',
'org.kde' : '5.15', 'org.kde' : '5.15',
'io.qt.qtwebengine' : '5.15',
'zim-testing-suite': '0.3', 'zim-testing-suite': '0.3',
} }