This commit is contained in:
Andrei Yankovich 2018-06-03 16:17:40 +03:00
parent d88a2da95e
commit ed24215754
2 changed files with 48 additions and 19 deletions

35
snap/core18/snapcraft.yaml Executable file
View File

@ -0,0 +1,35 @@
name: qt-deployer
version: '1.0core18'
summary: Deploy Qt Project
description: |
Deploy Qt Projects. this application extract all depends library of executable and create launch script for your application.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: classic # use 'strict' once you have the right plugs and slots
base: core18
icon: snap/gui/icon.png
apps:
qt-deployer:
command: qt5-launch opt/qt-deployer/bin/qt-deployer
# desktop: usr/share/applications/desc.desktop
plugs: [desktop, home, opengl, x11, wayland]
parts:
qt-deployer:
plugin: qmake
source: source/
build-packages:
- qtbase5-dev
- qtdeclarative5-dev
stage-packages:
# Here for the plugins-- they're not linked in automatically.
- libqt5gui5
- libqt5qml5
- libqt5quick5
- qml-module-qtquick2
- qml-module-qtquick-dialogs
- qml-module-qtquick-controls
- qml-module-qtgraphicaleffects
after: [qt5conf] # A wiki part

View File

@ -1,34 +1,28 @@
name: qt-deployer
version: '1.0test3'
version: '1.0test4'
summary: Deploy Qt Project
description: |
Deploy Qt Projects. this application extract all depends library of executable and create launch script for your application.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
icon: snap/gui/icon.png
apps:
qt-deployer:
command: bin/qt-deployer
plugs: [desktop, home, opengl, x11, dbus]
environment:
LD_LIBRARY_PATH: $SNAP/lib
QML_IMPORT_PATH: $SNAP/qml
QML2_IMPORT_PATH: $SNAP/qml
QT_PLUGIN_PATH: $SNAP/plugins
QT_QPA_PLATFORM_PLUGIN_PATH: $SNAP/plugins/platforms
command: qt5-launch opt/qt-deployer/bin/qt-deployer
# desktop: usr/share/applications/desc.desktop
plugs: [desktop, home, opengl, x11, wayland, removable-media]
parts:
qt-deployer:
plugin: dump
source: Release-QtDeployer
source-type: local
plugin: qmake
source: source/
build-packages:
- qtbase5-dev
stage-packages:
# Here for the plugins-- they're not linked in automatically.
- libqt5gui5
after: [qt5conf] # A wiki part