mirror of
https://github.com/QuasarApp/SoundBand.git
synced 2025-05-10 22:19:34 +00:00
snap integration
This commit is contained in:
parent
33bcc485af
commit
32abafaffb
installer/packages/SoundBand
15
installer/packages/SoundBand/runSnap.sh
Executable file
15
installer/packages/SoundBand/runSnap.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
OLD_DIR=$PWD
|
||||
BASE_DIR=$(dirname $0)
|
||||
TARGET_DIR="$BASE_DIR/../../"
|
||||
echo "selected target dir $TARGET_DIR"
|
||||
echo "cd to snapcraft dir $BASE_DIR"
|
||||
cd $BASE_DIR
|
||||
|
||||
snapcraft
|
||||
|
||||
echo "return to old dir $OLD_DIR"
|
||||
cd $OLD_DIR
|
||||
|
||||
rm -f $TARGET_DIR/*.snap
|
||||
mv $BASE_DIR/*.snap $TARGET_DIR
|
@ -1,20 +1,33 @@
|
||||
include($$PWD/../../deploy/targetList.pri)
|
||||
include($$PWD/../../deploy/deployFiles.pri)
|
||||
|
||||
|
||||
TEMPLATE = aux
|
||||
|
||||
SNAPCRAFT = snapcraft
|
||||
SNAPCRAFT = runSnap.sh
|
||||
|
||||
DESTDIR = $$PWD/packages/SoundBand
|
||||
DESTDIR = $$PWD
|
||||
|
||||
INPUT = $$PWD/snap/snapcraft.yaml
|
||||
snapApp.input = INPUT
|
||||
snapApp.output = $$SNAPCRAFT
|
||||
LINUXDEPLOY = $$PWD/../../../CQtDeployer/build/CQtDeployer
|
||||
|
||||
QT_DIR = $$dirname(QMAKE_QMAKE)
|
||||
QML_DIR = $$QT_DIR/../qml
|
||||
|
||||
unix {
|
||||
message($$DESTDIR);
|
||||
message($$TARGET_LIST);
|
||||
|
||||
snapApp.commands += $$SNAPCRAFT
|
||||
for(command, TARGET_LIST) {
|
||||
snapApp.commands += $$LINUXDEPLOY -bin $$TARGET_PATH/$$command -qmlDir $$QML_DIR -qmake $$QMAKE_QMAKE &&
|
||||
}
|
||||
|
||||
snapApp.commands += $$DESTDIR/$$SNAPCRAFT
|
||||
snapApp.CONFIG += target_predeps no_link combine
|
||||
|
||||
message( snapComands = "cd $$DESTDIR && $$snapApp.commands")
|
||||
message( snapComands = "$$snapApp.commands")
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user