snap control beta

This commit is contained in:
Andrei Yankovich 2018-08-22 20:14:44 +03:00
parent 7b0ca8d3dc
commit 33bcc485af
3 changed files with 53 additions and 7 deletions

@ -1 +1 @@
Subproject commit d456ce7f86f2d4c0cc53442e4b00273815a89d6f Subproject commit 941478e99bb8817f540d49a3426c7686253b8aac

View File

@ -4,6 +4,8 @@ CONFIG += ordered
include($$PWD/installer/deploy/deployFiles.pri) include($$PWD/installer/deploy/deployFiles.pri)
message( DEPLOY_FILES_MASTER = $$DEPLOY_FILES) message( DEPLOY_FILES_MASTER = $$DEPLOY_FILES)
ENABLE_SNAP = 1 #only linux
ENABLE_INSTALLER = 0 #only desctop
SUBDIRS += Sync \ SUBDIRS += Sync \
QuasarAppLib/QuasarApp.pro \ QuasarAppLib/QuasarApp.pro \
@ -13,14 +15,30 @@ SUBDIRS += Sync \
SoundBand.depends = Sync QuasarAppLib/QuasarApp.pro SoundBand.depends = Sync QuasarAppLib/QuasarApp.pro
!android:{ equals( ENABLE_INSTALLER, 1) {
message(desktopVersion: enabled) !android:{
CONFIG(release, debug|release): { message(desktopVersion: enabled)
CONFIG(release, debug|release): {
SUBDIRS += installer SUBDIRS += installer
} else { } else {
message( Selected Debug mode. The installer will not be created ) message( Selected Debug mode. The installer will not be created )
}
}
}
equals( ENABLE_SNAP, 1) {
!android:{
message(desktopVersion: enabled)
CONFIG(release, debug|release): {
SUBDIRS += installer/packages/SoundBand/snap.pro
} else {
message( Selected Debug mode. The snap will not be created )
}
} }
} }

View File

@ -0,0 +1,28 @@
TEMPLATE = aux
SNAPCRAFT = snapcraft
DESTDIR = $$PWD/packages/SoundBand
INPUT = $$PWD/snap/snapcraft.yaml
snapApp.input = INPUT
snapApp.output = $$SNAPCRAFT
unix {
message($$DESTDIR);
snapApp.commands += $$SNAPCRAFT
snapApp.CONFIG += target_predeps no_link combine
message( snapComands = "cd $$DESTDIR && $$snapApp.commands")
}
QMAKE_EXTRA_COMPILERS += snapApp
DISTFILES += \
unix:extraclean.commands = $$SNAPCRAFT clean soundband
distclean.depends = extraclean
QMAKE_EXTRA_TARGETS += distclean extraclean