mirror of https://github.com/procxx/kepka.git
Update snap to core20
This commit is contained in:
parent
ef08b52597
commit
e009ac026d
|
@ -43,8 +43,8 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
name: Ubuntu 18.04
|
name: Ubuntu 20.04
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
env:
|
env:
|
||||||
UPLOAD_ARTIFACT: "false"
|
UPLOAD_ARTIFACT: "false"
|
||||||
|
|
|
@ -346,7 +346,6 @@ bool UseXDGDesktopPortal() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
DesktopEnvironment::IsKDE()
|
DesktopEnvironment::IsKDE()
|
||||||
|| InSnap()
|
|
||||||
|| envVar
|
|| envVar
|
||||||
) && portalPresent;
|
) && portalPresent;
|
||||||
}();
|
}();
|
||||||
|
|
|
@ -46,8 +46,9 @@ if (NOT DESKTOP_APP_USE_PACKAGED)
|
||||||
set(TDESKTOP_USE_GTK_FILE_DIALOG ON)
|
set(TDESKTOP_USE_GTK_FILE_DIALOG ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT TDESKTOP_USE_GTK_FILE_DIALOG)
|
set(TDESKTOP_DISABLE_GTK_INTEGRATION ON)
|
||||||
set(TDESKTOP_DISABLE_GTK_INTEGRATION ON)
|
if (TDESKTOP_USE_GTK_FILE_DIALOG)
|
||||||
|
set(TDESKTOP_DISABLE_GTK_INTEGRATION OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (DESKTOP_APP_DISABLE_SPELLCHECK)
|
if (DESKTOP_APP_DISABLE_SPELLCHECK)
|
||||||
|
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
||||||
Subproject commit 63f0ef5c6352b3ff1f3c862a53e6266cb599725f
|
Subproject commit b558136e64edd851901ac2b48a4f186d186c1723
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ ! -d $SNAP/kf5/usr ]; then
|
|
||||||
runtime="kde-frameworks-5-core18"
|
|
||||||
slot="kde-frameworks-5-core18:kde-frameworks-5-core18-slot"
|
|
||||||
|
|
||||||
echo "You need to connect this snap to the $runtime snap."
|
|
||||||
echo ""
|
|
||||||
echo "You can do this with those commands:"
|
|
||||||
echo "snap install $runtime"
|
|
||||||
echo "snap refresh $runtime"
|
|
||||||
echo "snap connect $SNAP_NAME:kde-frameworks-5-plug $slot"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec telegram-desktop "$@"
|
|
|
@ -2,7 +2,7 @@ name: telegram-desktop
|
||||||
adopt-info: telegram
|
adopt-info: telegram
|
||||||
icon: Telegram/Resources/art/icon512@2x.png
|
icon: Telegram/Resources/art/icon512@2x.png
|
||||||
|
|
||||||
base: core18
|
base: core20
|
||||||
grade: stable
|
grade: stable
|
||||||
confinement: strict
|
confinement: strict
|
||||||
|
|
||||||
|
@ -15,14 +15,12 @@ architectures:
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
telegram-desktop:
|
telegram-desktop:
|
||||||
command: telegram-launch
|
command: bin/desktop-launch telegram-desktop
|
||||||
common-id: org.telegram.desktop
|
common-id: org.telegram.desktop
|
||||||
desktop: share/applications/telegramdesktop.desktop
|
desktop: usr/share/applications/telegramdesktop.desktop
|
||||||
environment:
|
environment:
|
||||||
# Use GTK3 cursor theme, icon theme and open/save file dialogs.
|
# Use GTK3 cursor theme, icon theme and open/save file dialogs.
|
||||||
QT_QPA_PLATFORMTHEME: gtk3
|
QT_QPA_PLATFORMTHEME: gtk3
|
||||||
extensions:
|
|
||||||
- kde-neon
|
|
||||||
plugs:
|
plugs:
|
||||||
- alsa
|
- alsa
|
||||||
- audio-playback
|
- audio-playback
|
||||||
|
@ -67,39 +65,44 @@ parts:
|
||||||
plugin: cmake
|
plugin: cmake
|
||||||
source: .
|
source: .
|
||||||
source-type: git
|
source-type: git
|
||||||
parse-info: [share/metainfo/telegramdesktop.appdata.xml]
|
parse-info: [usr/share/metainfo/telegramdesktop.appdata.xml]
|
||||||
build-environment:
|
build-environment:
|
||||||
- CFLAGS: "$CFLAGS -I$SNAPCRAFT_STAGE/usr/include/$SNAPCRAFT_ARCH_TRIPLET/qt5/QtWaylandClient/5.12.3"
|
- LD_LIBRARY_PATH: $SNAPCRAFT_STAGE/usr/lib
|
||||||
- CXXFLAGS: "$CXXFLAGS -I$SNAPCRAFT_STAGE/usr/include/$SNAPCRAFT_ARCH_TRIPLET/qt5/QtWaylandClient/5.12.3"
|
|
||||||
build-snaps:
|
|
||||||
- kde-frameworks-5-core18-sdk
|
|
||||||
- kde-frameworks-5-core18
|
|
||||||
build-packages:
|
build-packages:
|
||||||
- gcc-8
|
- qtbase5-private-dev
|
||||||
- g++-8
|
|
||||||
- libasound2-dev
|
- libasound2-dev
|
||||||
- libglib2.0-dev
|
- libglib2.0-dev
|
||||||
- libglvnd-dev
|
|
||||||
- libgtk-3-dev
|
- libgtk-3-dev
|
||||||
- liblzma-dev
|
- liblzma-dev
|
||||||
- libopus-dev
|
- libopus-dev
|
||||||
- libpulse-dev
|
- libpulse-dev
|
||||||
|
- libqt5svg5-dev
|
||||||
|
- libqt5waylandclient5-dev
|
||||||
|
- libqt5x11extras5-dev
|
||||||
- libssl-dev
|
- libssl-dev
|
||||||
- zlib1g-dev
|
- zlib1g-dev
|
||||||
stage-packages:
|
stage-packages:
|
||||||
|
- qt5-image-formats-plugins
|
||||||
|
- qtwayland5
|
||||||
|
- libasound2
|
||||||
- libgtk-3-0
|
- libgtk-3-0
|
||||||
- liblzma5
|
- liblzma5
|
||||||
configflags:
|
- libopus0
|
||||||
- -DCMAKE_C_COMPILER=gcc-8
|
- libpulse0
|
||||||
- -DCMAKE_CXX_COMPILER=g++-8
|
- libqt5svg5
|
||||||
- -DCMAKE_AUTOMOC_MOC_OPTIONS=-I$SNAPCRAFT_STAGE/usr/include/$SNAPCRAFT_ARCH_TRIPLET/qt5/QtWaylandClient/5.12.3
|
- libqt5waylandclient5
|
||||||
|
- libqt5x11extras5
|
||||||
|
- libssl1.1
|
||||||
|
- zlib1g
|
||||||
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
|
- -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
- -DTDESKTOP_API_ID=611335
|
- -DTDESKTOP_API_ID=611335
|
||||||
- -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c
|
- -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c
|
||||||
- -DDESKTOP_APP_USE_PACKAGED_LAZY=ON
|
- -DDESKTOP_APP_USE_PACKAGED_LAZY=ON
|
||||||
- -DDESKTOP_APP_USE_PACKAGED_FONTS=OFF
|
- -DDESKTOP_APP_USE_PACKAGED_FONTS=OFF
|
||||||
- -DTDESKTOP_USE_FONTCONFIG_FALLBACK=ON
|
|
||||||
- -DTDESKTOP_USE_GTK_FILE_DIALOG=ON
|
- -DTDESKTOP_USE_GTK_FILE_DIALOG=ON
|
||||||
|
- -DDESKTOP_APP_QTWAYLANDCLIENT_PRIVATE_HEADERS=$SNAPCRAFT_STAGE/usr/include/$SNAPCRAFT_ARCH_TRIPLET/qt5/QtWaylandClient/5.12.8
|
||||||
override-pull: |
|
override-pull: |
|
||||||
snapcraftctl pull
|
snapcraftctl pull
|
||||||
|
|
||||||
|
@ -115,113 +118,69 @@ parts:
|
||||||
|
|
||||||
snapcraftctl set-version "$version"
|
snapcraftctl set-version "$version"
|
||||||
|
|
||||||
sed -i 's|^Icon=.*|Icon=/share/icons/hicolor/512x512/apps/telegram.png|g' lib/xdg/telegramdesktop.desktop
|
sed -i 's|^Icon=.*|Icon=/usr/share/icons/hicolor/512x512/apps/telegram.png|g' lib/xdg/telegramdesktop.desktop
|
||||||
after:
|
after:
|
||||||
- cmake
|
- desktop-qt5
|
||||||
- ffmpeg
|
- ffmpeg
|
||||||
- openal
|
- openal
|
||||||
- qtwayland
|
- qtwayland
|
||||||
|
|
||||||
telegram-launcher:
|
|
||||||
plugin: dump
|
|
||||||
source: snap/scripts
|
|
||||||
organize:
|
|
||||||
telegram-launch: bin/telegram-launch
|
|
||||||
|
|
||||||
patches:
|
patches:
|
||||||
plugin: dump
|
plugin: dump
|
||||||
source: Telegram/Patches
|
source: Telegram/Patches
|
||||||
prime: [-./*]
|
prime: [-./*]
|
||||||
|
|
||||||
qtconf:
|
desktop-qt5:
|
||||||
plugin: nil
|
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
||||||
override-build: |
|
source-subdir: qt
|
||||||
KF5_DIR=/snap/kde-frameworks-5-core18-sdk/current
|
|
||||||
|
|
||||||
install -d "$SNAPCRAFT_PART_INSTALL/usr/include/$SNAPCRAFT_ARCH_TRIPLET"
|
|
||||||
cp -a $KF5_DIR/usr/include/$SNAPCRAFT_ARCH_TRIPLET/qt5 "$SNAPCRAFT_PART_INSTALL/usr/include/$SNAPCRAFT_ARCH_TRIPLET"
|
|
||||||
|
|
||||||
install -d "$SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET"
|
|
||||||
cp -a $KF5_DIR/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/qt5 "$SNAPCRAFT_PART_INSTALL/usr/lib/$SNAPCRAFT_ARCH_TRIPLET"
|
|
||||||
|
|
||||||
cat << EOF > "$SNAPCRAFT_PART_INSTALL/qt.conf"
|
|
||||||
[Paths]
|
|
||||||
Prefix=$KF5_DIR/usr
|
|
||||||
ArchData=lib/$SNAPCRAFT_ARCH_TRIPLET/qt5
|
|
||||||
Binaries=lib/qt5/bin
|
|
||||||
Data=share/qt5
|
|
||||||
Documentation=share/qt5/doc
|
|
||||||
Examples=lib/$SNAPCRAFT_ARCH_TRIPLET/qt5/examples
|
|
||||||
Headers=$SNAPCRAFT_STAGE/usr/include/$SNAPCRAFT_ARCH_TRIPLET/qt5
|
|
||||||
HostBinaries=lib/qt5/bin
|
|
||||||
HostData=$SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/qt5
|
|
||||||
HostLibraries=lib/$SNAPCRAFT_ARCH_TRIPLET
|
|
||||||
Imports=lib/$SNAPCRAFT_ARCH_TRIPLET/qt5/imports
|
|
||||||
Libraries=lib/$SNAPCRAFT_ARCH_TRIPLET
|
|
||||||
LibraryExecutables=lib/$SNAPCRAFT_ARCH_TRIPLET/qt5/libexec
|
|
||||||
Plugins=lib/$SNAPCRAFT_ARCH_TRIPLET/qt5/plugins
|
|
||||||
Qml2Imports=lib/$SNAPCRAFT_ARCH_TRIPLET/qt5/qml
|
|
||||||
Settings=/etc/xdg
|
|
||||||
Translations=share/qt5/translations
|
|
||||||
EOF
|
|
||||||
stage:
|
|
||||||
- -usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqwayland*
|
|
||||||
- -usr/lib/x86_64-linux-gnu/qt5/plugins/wayland*
|
|
||||||
- -usr/lib/x86_64-linux-gnu/qt5/qml/QtWayland
|
|
||||||
prime: [-./*]
|
|
||||||
|
|
||||||
cmake:
|
|
||||||
source: "https://gitlab.kitware.com/cmake/cmake.git"
|
|
||||||
source-depth: 1
|
|
||||||
source-tag: v3.16.4
|
|
||||||
source-type: git
|
|
||||||
plugin: make
|
plugin: make
|
||||||
override-build: |
|
make-parameters: ["FLAVOR=qt5"]
|
||||||
${SNAPCRAFT_PART_SRC}/bootstrap \
|
|
||||||
--parallel=${SNAPCRAFT_PARALLEL_BUILD_COUNT} \
|
|
||||||
-- \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/ \
|
|
||||||
-DBUILD_TESTING=OFF
|
|
||||||
snapcraftctl build
|
|
||||||
build-packages:
|
build-packages:
|
||||||
- build-essential
|
- build-essential
|
||||||
- libssl-dev
|
- qtbase5-dev
|
||||||
- libncurses5-dev
|
- dpkg-dev
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libssl1.1
|
- libxkbcommon0
|
||||||
- libncurses5
|
- ttf-ubuntu-font-family
|
||||||
- libtinfo5
|
- dmz-cursor-theme
|
||||||
prime: [-./*]
|
- light-themes
|
||||||
|
- adwaita-icon-theme
|
||||||
|
- gnome-themes-standard
|
||||||
|
- shared-mime-info
|
||||||
|
- libqt5gui5
|
||||||
|
- libgdk-pixbuf2.0-0
|
||||||
|
- libqt5svg5 # for loading icon themes which are svg
|
||||||
|
- try: [appmenu-qt5] # not available on core18
|
||||||
|
- locales-all
|
||||||
|
- xdg-user-dirs
|
||||||
|
- fcitx-frontend-qt5
|
||||||
|
|
||||||
nasm:
|
qt5-xdgdesktopportal-platform:
|
||||||
source: https://repo.or.cz/nasm.git
|
plugin: nil
|
||||||
source-depth: 1
|
stage-packages:
|
||||||
source-tag: nasm-2.14.02
|
- qt5-xdgdesktopportal-platformtheme
|
||||||
plugin: autotools
|
|
||||||
override-build: |
|
# Qt checks that ibus-daemon binary is present, otherwise doesn't work
|
||||||
./autogen.sh
|
ibus:
|
||||||
./configure --prefix=
|
plugin: nil
|
||||||
make -j$(nproc)
|
stage-packages:
|
||||||
install -d "$SNAPCRAFT_PART_INSTALL/bin"
|
- ibus
|
||||||
install nasm "$SNAPCRAFT_PART_INSTALL/bin/nasm"
|
|
||||||
install ndisasm "$SNAPCRAFT_PART_INSTALL/bin/ndisasm"
|
|
||||||
prime: [-./*]
|
|
||||||
|
|
||||||
dav1d:
|
dav1d:
|
||||||
source: https://github.com/videolan/dav1d.git
|
source: https://github.com/videolan/dav1d.git
|
||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-tag: 0.6.0
|
source-tag: 0.6.0
|
||||||
plugin: meson
|
plugin: meson
|
||||||
|
build-packages:
|
||||||
|
- nasm
|
||||||
meson-parameters:
|
meson-parameters:
|
||||||
- --prefix=/usr
|
- --prefix=/usr
|
||||||
|
- --libdir=lib
|
||||||
- -Denable_tools=false
|
- -Denable_tools=false
|
||||||
- -Denable_tests=false
|
- -Denable_tests=false
|
||||||
prime:
|
prime:
|
||||||
- -./usr/include
|
- -./usr/include
|
||||||
- -./usr/lib/*/pkgconfig
|
- -./usr/lib/pkgconfig
|
||||||
after:
|
|
||||||
- nasm
|
|
||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
source: https://github.com/FFmpeg/FFmpeg.git
|
source: https://github.com/FFmpeg/FFmpeg.git
|
||||||
|
@ -229,10 +188,16 @@ parts:
|
||||||
source-branch: release/4.2
|
source-branch: release/4.2
|
||||||
plugin: autotools
|
plugin: autotools
|
||||||
build-packages:
|
build-packages:
|
||||||
|
- nasm
|
||||||
- libopus-dev
|
- libopus-dev
|
||||||
- libva-dev
|
- libva-dev
|
||||||
- libvdpau-dev
|
- libvdpau-dev
|
||||||
configflags:
|
stage-packages:
|
||||||
|
- libopus0
|
||||||
|
- libva2
|
||||||
|
- libva-drm2
|
||||||
|
- libvdpau1
|
||||||
|
autotools-configure-parameters:
|
||||||
- --prefix=/usr
|
- --prefix=/usr
|
||||||
- --disable-static
|
- --disable-static
|
||||||
- --disable-debug
|
- --disable-debug
|
||||||
|
@ -345,7 +310,6 @@ parts:
|
||||||
- -./usr/lib/pkgconfig
|
- -./usr/lib/pkgconfig
|
||||||
after:
|
after:
|
||||||
- patches
|
- patches
|
||||||
- nasm
|
|
||||||
- dav1d
|
- dav1d
|
||||||
|
|
||||||
openal:
|
openal:
|
||||||
|
@ -358,59 +322,33 @@ parts:
|
||||||
- libpulse-dev
|
- libpulse-dev
|
||||||
- libsndio-dev
|
- libsndio-dev
|
||||||
- portaudio19-dev
|
- portaudio19-dev
|
||||||
configflags:
|
stage-packages:
|
||||||
|
- libasound2
|
||||||
|
- libpulse0
|
||||||
|
- libportaudio2
|
||||||
|
- libsndio7.0
|
||||||
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
|
- -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
- -DALSOFT_EXAMPLES=OFF
|
- -DALSOFT_EXAMPLES=OFF
|
||||||
- -DALSOFT_TESTS=OFF
|
- -DALSOFT_TESTS=OFF
|
||||||
- -DALSOFT_UTILS=OFF
|
- -DALSOFT_UTILS=OFF
|
||||||
- -DALSOFT_CONFIG=OFF
|
- -DALSOFT_CONFIG=OFF
|
||||||
prime:
|
prime:
|
||||||
- -./include
|
- -./usr/include
|
||||||
- -./lib/cmake
|
- -./usr/lib/cmake
|
||||||
- -./lib/pkgconfig
|
- -./usr/lib/pkgconfig
|
||||||
|
|
||||||
qtimageformats:
|
|
||||||
source: https://github.com/qt/qtimageformats.git
|
|
||||||
source-depth: 1
|
|
||||||
source-tag: v5.12.3
|
|
||||||
plugin: dump
|
|
||||||
build-snaps:
|
|
||||||
- kde-frameworks-5-core18-sdk
|
|
||||||
- kde-frameworks-5-core18
|
|
||||||
build-packages:
|
|
||||||
- libglvnd-dev
|
|
||||||
override-build: |
|
|
||||||
KF5_DIR=/snap/kde-frameworks-5-core18-sdk/current
|
|
||||||
|
|
||||||
$KF5_DIR/usr/lib/qt5/bin/qmake -qtconf "$SNAPCRAFT_STAGE/qt.conf"
|
|
||||||
make -j$(nproc)
|
|
||||||
make INSTALL_ROOT="$SNAPCRAFT_PART_INSTALL/tmp" install
|
|
||||||
|
|
||||||
cp -a "$SNAPCRAFT_PART_INSTALL/tmp/$KF5_DIR/." "$SNAPCRAFT_PART_INSTALL"
|
|
||||||
rm -r "$SNAPCRAFT_PART_INSTALL/tmp"
|
|
||||||
after:
|
|
||||||
- qtconf
|
|
||||||
|
|
||||||
qtwayland:
|
qtwayland:
|
||||||
source: https://github.com/qt/qtwayland.git
|
source: https://github.com/qt/qtwayland.git
|
||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-tag: v5.12.3
|
source-tag: v5.12.8
|
||||||
plugin: dump
|
plugin: dump
|
||||||
build-snaps:
|
|
||||||
- kde-frameworks-5-core18-sdk
|
|
||||||
- kde-frameworks-5-core18
|
|
||||||
build-packages:
|
|
||||||
- libglvnd-dev
|
|
||||||
override-build: |
|
override-build: |
|
||||||
KF5_DIR=/snap/kde-frameworks-5-core18-sdk/current
|
qmake
|
||||||
|
|
||||||
$KF5_DIR/usr/lib/qt5/bin/qmake -qtconf "$SNAPCRAFT_STAGE/qt.conf"
|
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make INSTALL_ROOT="$SNAPCRAFT_PART_INSTALL/tmp" install
|
make INSTALL_ROOT="$SNAPCRAFT_PART_INSTALL" install
|
||||||
|
|
||||||
cp -a "$SNAPCRAFT_PART_INSTALL/tmp/$KF5_DIR/." "$SNAPCRAFT_PART_INSTALL"
|
|
||||||
cp -a "$SNAPCRAFT_PART_INSTALL/tmp/$SNAPCRAFT_STAGE/." "$SNAPCRAFT_PART_INSTALL"
|
|
||||||
rm -r "$SNAPCRAFT_PART_INSTALL/tmp"
|
|
||||||
after:
|
after:
|
||||||
- qtconf
|
- desktop-qt5
|
||||||
|
stage: [-./usr/lib]
|
||||||
prime: [-./*]
|
prime: [-./*]
|
||||||
|
|
Loading…
Reference in New Issue