Merge pull request #492 from kiwix/fix_qt515
This commit is contained in:
commit
f16fb8f228
|
@ -38,4 +38,8 @@ USER runner
|
|||
WORKDIR /home/runner
|
||||
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
|
||||
|
|
|
@ -22,7 +22,7 @@ then
|
|||
mkdir -p KIWIX_ARCHIVES_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/bin/*.dll $KIWIX_DIR
|
||||
|
|
|
@ -35,3 +35,34 @@ class org_kde(Dependency):
|
|||
self.command('setup_remote', self._setup_remote)
|
||||
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)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ class FlatpakPlatformInfo(PlatformInfo):
|
|||
name = 'flatpak'
|
||||
build = 'flatpak'
|
||||
static = ''
|
||||
toolchain_names = ['org.kde']
|
||||
toolchain_names = ['org.kde', 'io.qt.qtwebengine']
|
||||
compatible_hosts = ['debian', 'fedora']
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
@ -60,5 +60,6 @@ base_deps_versions = {
|
|||
'qt' : '5.10.1',
|
||||
'qtwebengine' : '5.10.1',
|
||||
'org.kde' : '5.15',
|
||||
'io.qt.qtwebengine' : '5.15',
|
||||
'zim-testing-suite': '0.3',
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue