summaryrefslogtreecommitdiff
path: root/snap
diff options
context:
space:
mode:
Diffstat (limited to 'snap')
-rw-r--r--snap/gui/icon.pngbin0 -> 12301 bytes
-rw-r--r--snap/gui/icon.svg81
-rw-r--r--snap/snapcraft.yaml121
3 files changed, 202 insertions, 0 deletions
diff --git a/snap/gui/icon.png b/snap/gui/icon.png
new file mode 100644
index 0000000..2e5155d
--- /dev/null
+++ b/snap/gui/icon.png
Binary files differ
diff --git a/snap/gui/icon.svg b/snap/gui/icon.svg
new file mode 100644
index 0000000..0b81505
--- /dev/null
+++ b/snap/gui/icon.svg
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ height="100%"
+ style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"
+ version="1.1"
+ viewBox="0 0 24 24"
+ width="100%"
+ xml:space="preserve"
+ id="svg2"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="whatsapp.svg"><metadata
+ id="metadata19"><rdf:RDF><cc:Work
+ rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
+ id="defs17"><filter
+ inkscape:label="Fill Background"
+ inkscape:menu="Fill and Transparency"
+ inkscape:menu-tooltip="Adds a colorizable opaque background"
+ style="color-interpolation-filters:sRGB;"
+ id="filter843"><feFlood
+ result="result1"
+ flood-color="rgb(255,0,0)"
+ flood-opacity="1"
+ id="feFlood845" /><feImage
+ xlink:href=""
+ result="result2"
+ id="feImage847" /><feBlend
+ result="result4"
+ in2="result1"
+ mode="multiply"
+ id="feBlend849" /><feMerge
+ result="result3"
+ id="feMerge851"><feMergeNode
+ in="result1"
+ id="feMergeNode853" /><feMergeNode
+ in="SourceGraphic"
+ id="feMergeNode855" /></feMerge></filter></defs><sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1311"
+ inkscape:window-height="744"
+ id="namedview15"
+ showgrid="false"
+ inkscape:zoom="8.4606523"
+ inkscape:cx="-10.8163"
+ inkscape:cy="19.836975"
+ inkscape:window-x="55"
+ inkscape:window-y="24"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2" /><rect
+ height="24"
+ id="Artboard1"
+ style="fill:none;"
+ width="24"
+ x="0"
+ y="0" /><g
+ id="g5"><g
+ id="g7"><path
+ d="M4.018,17.048c-0.96,-1.484 -1.518,-3.253 -1.518,-5.151c0,-5.243 4.257,-9.5 9.5,-9.5c5.243,0 9.5,4.257 9.5,9.5c0,5.243 -4.257,9.5 -9.5,9.5c-1.777,0 -3.44,-0.489 -4.863,-1.339l-4.637,1.545l1.518,-4.555Z"
+ style="fill:#f3f3f3;"
+ id="path9" /><path
+ d="M5.795,16.304c-0.886,-1.244 -1.407,-2.765 -1.407,-4.407c0,-4.201 3.411,-7.612 7.612,-7.612c4.201,0 7.612,3.411 7.612,7.612c0,4.201 -3.411,7.611 -7.612,7.611c-1.59,0 -3.066,-0.488 -4.288,-1.323l-2.862,0.954l0.945,-2.835Z"
+ style="fill:#00a82d;"
+ id="path11" /></g><path
+ d="M9.714,13.873c-1.124,-1.374 -1.874,-3.056 -2.109,-4.88c-0.063,-0.508 0.106,-1.018 0.461,-1.387c0.355,-0.369 0.858,-0.558 1.368,-0.515l0.049,0.005c0,0 0.561,0.15 0.868,0.233c0.122,0.033 0.219,0.124 0.26,0.243c0.138,0.41 0.464,1.373 0.618,1.826c0.05,0.147 0.004,0.31 -0.114,0.41c-0.233,0.196 -0.618,0.52 -0.858,0.723c-0.129,0.109 -0.17,0.29 -0.1,0.443c0.279,0.608 0.635,1.176 1.057,1.69c0.434,0.502 0.933,0.949 1.485,1.327c0.14,0.095 0.325,0.085 0.454,-0.024c0.241,-0.202 0.626,-0.526 0.858,-0.722c0.119,-0.1 0.287,-0.117 0.424,-0.043c0.42,0.228 1.314,0.712 1.694,0.918c0.111,0.06 0.185,0.172 0.196,0.297c0.029,0.317 0.083,0.895 0.083,0.895l-0.004,0.049c-0.044,0.51 -0.315,0.974 -0.739,1.261c-0.424,0.288 -0.955,0.368 -1.445,0.22c-1.772,-0.545 -3.313,-1.581 -4.479,-2.937l-0.027,-0.032Z"
+ style="fill:#f3f3f3;"
+ id="path13" /></g></svg> \ No newline at end of file
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644
index 0000000..0e0f1b5
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,121 @@
+name: whatsie
+adopt-info: whatsie-build-src
+summary: Qt Based WhatsApp Client
+description: |
+ Fast Light weight WhatsApp Client based on Qt's WebEngine, With lots of settings and packed goodies.
+
+grade: stable
+confinement: strict
+icon: snap/gui/icon.svg
+base: core20
+compression: lzo
+
+architectures:
+ - build-on: amd64
+ run-on: amd64
+
+environment:
+ SNAP_DESKTOP_RUNTIME: $SNAP/qt515-core20
+
+package-repositories:
+ - type: apt
+ formats: [deb]
+ components: [main]
+ suites: [focal]
+ key-id: C65D51784EDC19A871DBDBB710C56D0DE9977759
+ url: https://ppa.launchpadcontent.net/beineri/opt-qt-5.15.4-focal/ubuntu
+
+apps:
+ whatsie:
+ command: bin/desktop-launch $SNAP/usr/bin/whatsie
+ environment:
+ IS_SNAP: 1
+ XDG_CURRENT_DESKTOP: $XDG_CURRENT_DESKTOP:Unity:Unity7
+ LANG: en_US.UTF-8 # issue 7,21
+ QT_QPA_PLATFORMTHEME: gtk3
+ NO_AT_BRIDGE: 1 #delay ATK Bridge initialization
+ desktop: usr/share/applications/com.ktechpit.whatsie.desktop
+ plugs:
+ - browser-support
+ - camera
+ - desktop
+ - desktop-legacy
+ - gsettings
+ - home
+ - opengl
+ - audio-playback
+ - audio-record
+ - removable-media
+ - screen-inhibit-control
+ - unity7
+ - x11
+ - network
+ - wayland
+ - hardware-observe # to assist geoclue & qtpositioning
+ - network-observe # to assist geoclue & qtpositioning
+ - network-bind # to assist geoclue & qtpositioning
+ - mount-observe
+
+plugs:
+ gsettings:
+ gtk-3-themes:
+ interface: content
+ target: $SNAP/data-dir/themes
+ default-provider: gtk-common-themes
+ icon-themes:
+ interface: content
+ target: $SNAP/data-dir/icons
+ default-provider: gtk-common-themes
+ sound-themes:
+ interface: content
+ target: $SNAP/data-dir/sounds
+ default-provider: gtk-common-themes
+ qt515-core20:
+ interface: content
+ target: $SNAP/qt515-core20
+ default-provider: qt515-core20
+
+parts:
+ whatsie-build-src:
+ plugin: nil
+ source: https://github.com/keshavbhatt/whatsie.git
+ source-subdir: src/
+ override-build: |
+ snapcraftctl build
+
+ version="$(printf %s.%s $(git describe --tags --abbrev=0) $(git rev-parse --short HEAD))"
+
+ snapcraftctl set-version "$version"
+
+ apt install -y build-essential qt515base qt515tools qt515webengine qt515location qt515xmlpatterns libgl1-mesa-dev
+
+ QT_BASE_DIR=/opt/qt515
+ export QTDIR=$QT_BASE_DIR
+ export PATH=$QT_BASE_DIR/bin:$PATH
+ export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/$SNAPCRAFT_ARCH_TRIPLET:$QT_BASE_DIR/lib:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+ export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
+
+ PQMAKE=$(which qmake);
+
+ echo "Using" $PQMAKE;
+
+ echo $(${PQMAKE} --version)
+
+ qmake PREFIX=${SNAPCRAFT_PART_INSTALL}/usr src
+
+ make -j4
+
+ make install
+
+ sed -i 's|Icon=.*|Icon=${SNAP}/meta/gui/icon.svg|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/com.ktechpit.whatsie.desktop
+
+ desktop-launch:
+ plugin: nil
+ source: https://github.com/keshavbhatt/qt515-core20.git
+ after: [whatsie-build-src]
+ override-build: |
+ snapcraftctl build
+
+ mkdir -p ${SNAPCRAFT_PART_INSTALL}/bin/
+
+ cp -rf ${SNAPCRAFT_PART_SRC}/snap_launcher/bin/desktop-launch ${SNAPCRAFT_PART_INSTALL}/bin/