mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 23:39:45 -05:00
Support building snaps on Ubuntu 18.04 and Launchpad
This commit is contained in:
parent
c0aa1ef145
commit
c88390e3be
@ -7,11 +7,12 @@ description: |
|
|||||||
personal data management. It has a light interface, is cross-platform and
|
personal data management. It has a light interface, is cross-platform and
|
||||||
published under the terms of the GNU General Public License.
|
published under the terms of the GNU General Public License.
|
||||||
confinement: strict
|
confinement: strict
|
||||||
|
base: core18
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
keepassxc:
|
keepassxc:
|
||||||
command: desktop-launch keepassxc
|
command: desktop-launch keepassxc
|
||||||
plugs: [unity7, x11, opengl, gsettings, home, network, network-bind, removable-media, raw-usb]
|
plugs: [unity7, x11, opengl, gsettings, home, network, network-bind, removable-media, raw-usb, wayland, desktop-legacy]
|
||||||
desktop: usr/share/applications/org.keepassxc.KeePassXC.desktop
|
desktop: usr/share/applications/org.keepassxc.KeePassXC.desktop
|
||||||
cli:
|
cli:
|
||||||
command: keepassxc-cli
|
command: keepassxc-cli
|
||||||
@ -27,8 +28,6 @@ parts:
|
|||||||
configflags:
|
configflags:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_INSTALL_PREFIX=/usr
|
- -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
- -DCMAKE_LIBRARY_PATH=/opt/keepassxc-libs/lib/x86_64-linux-gnu
|
|
||||||
- -DCMAKE_INCLUDE_PATH=/opt/keepassxc-libs/include
|
|
||||||
- -DKEEPASSXC_DIST_TYPE=Snap
|
- -DKEEPASSXC_DIST_TYPE=Snap
|
||||||
- -DKEEPASSXC_BUILD_TYPE=Release
|
- -DKEEPASSXC_BUILD_TYPE=Release
|
||||||
- -DWITH_TESTS=OFF
|
- -DWITH_TESTS=OFF
|
||||||
@ -50,20 +49,19 @@ parts:
|
|||||||
stage-packages:
|
stage-packages:
|
||||||
- dbus
|
- dbus
|
||||||
- qttranslations5-l10n # common translations
|
- qttranslations5-l10n # common translations
|
||||||
- libgcrypt20-18
|
- libgcrypt20
|
||||||
- libykpers-1-1
|
- libykpers-1-1
|
||||||
- libargon2-0
|
- libargon2-0
|
||||||
- libsodium23
|
- libsodium23
|
||||||
- libxtst6
|
- libxtst6
|
||||||
- libqt5x11extras5
|
- libqt5x11extras5
|
||||||
- libusb-1.0-0
|
- libusb-1.0-0
|
||||||
|
- qtwayland5
|
||||||
override-build: |
|
override-build: |
|
||||||
snapcraftctl build
|
snapcraftctl build
|
||||||
sed -i 's|Icon=keepassxc|Icon=${SNAP}/usr/share/icons/hicolor/256x256/apps/keepassxc.png|g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.keepassxc.KeePassXC.desktop
|
sed -i 's|Icon=keepassxc|Icon=${SNAP}/usr/share/icons/hicolor/256x256/apps/keepassxc.png|g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.keepassxc.KeePassXC.desktop
|
||||||
organize:
|
organize:
|
||||||
usr/share/qt5/translations/*.qm: usr/share/keepassxc/translations/
|
usr/share/qt5/translations/*.qm: usr/share/keepassxc/translations/
|
||||||
opt/keepassxc-libs/lib/x86_64-linux-gnu/*: usr/lib/x86_64-linux-gnu/
|
|
||||||
opt/keepassxc-libs/share/locale/*: usr/share/locale/
|
|
||||||
stage:
|
stage:
|
||||||
- -opt
|
- -opt
|
||||||
after: [desktop-qt5]
|
after: [desktop-qt5]
|
||||||
|
Loading…
Reference in New Issue
Block a user