Merge pull request #2249 from keepassxreboot/fix/snapcraft-build

Snapcraft update and bump to 2.4.0-preview
This commit is contained in:
Jonathan White 2018-09-18 10:43:04 -04:00 committed by GitHub
commit 5aeb30e845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 11 deletions

View File

@ -1,3 +1,9 @@
2.4.0-preview (TBD)
=========================
This is a pre-release build, view merged PR's at
https://github.com/keepassxreboot/keepassxc/pulls?q=is%3Apr+milestone%3Av2.4.0+is%3Aclosed
2.3.4 (2018-08-21)
=========================

View File

@ -61,8 +61,8 @@ endif()
set(CMAKE_AUTOUIC ON)
set(KEEPASSXC_VERSION_MAJOR "2")
set(KEEPASSXC_VERSION_MINOR "3")
set(KEEPASSXC_VERSION_PATCH "4")
set(KEEPASSXC_VERSION_MINOR "4")
set(KEEPASSXC_VERSION_PATCH "0")
set(KEEPASSXC_VERSION "${KEEPASSXC_VERSION_MAJOR}.${KEEPASSXC_VERSION_MINOR}.${KEEPASSXC_VERSION_PATCH}")
set(KEEPASSXC_BUILD_TYPE "Snapshot" CACHE STRING "Set KeePassXC build type to distinguish between stable releases and snapshots")

View File

@ -50,6 +50,13 @@
</screenshots>
<releases>
<release version="2.4.0-preview" date="TBD">
<description>
<p>
This is a pre-release build, <a href="https://github.com/keepassxreboot/keepassxc/pulls?q=is%3Apr+milestone%3Av2.4.0+is%3Aclosed">click to view merged PR's</a>
</p>
</description>
</release>
<release version="2.3.4" date="2018-08-21">
<description>
<ul>

View File

@ -1,5 +1,5 @@
name: keepassxc
version: 2.3.4
version: 2.4.0
grade: stable
summary: Community-driven port of the Windows application “KeePass Password Safe”
description: |
@ -7,12 +7,15 @@ description: |
personal data management. It has a light interface, is cross-platform and
published under the terms of the GNU General Public License.
confinement: strict
base: core18
apps:
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
environment:
DISABLE_WAYLAND: 1
cli:
command: keepassxc-cli
plugs: [gsettings, home, removable-media, raw-usb]
@ -27,15 +30,13 @@ parts:
configflags:
- -DCMAKE_BUILD_TYPE=Release
- -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_BUILD_TYPE=Release
- -DKEEPASSXC_BUILD_TYPE=PreRelease
- -DWITH_TESTS=OFF
- -DWITH_XC_ALL=ON
build-packages:
- g++
- libgcrypt20-18-dev
- libgcrypt20-dev
- libqt5x11extras5-dev
- qtbase5-dev
- qttools5-dev
@ -50,20 +51,19 @@ parts:
stage-packages:
- dbus
- qttranslations5-l10n # common translations
- libgcrypt20-18
- libgcrypt20
- libykpers-1-1
- libargon2-0
- libsodium23
- libxtst6
- libqt5x11extras5
- libusb-1.0-0
- qtwayland5
override-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
organize:
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:
- -opt
after: [desktop-qt5]