Browse Source

snapcraft files added (#120)

* Ignore snapcraft build files

* Ignroe flameshot tarball created by snapcraft

* Adding snapcraft files

* Clean snap build.
Carlos Hernandez 7 years ago
parent
commit
38d08504eb
5 changed files with 116 additions and 0 deletions
  1. 14 0
      .gitignore
  2. 18 0
      snap/gui/flameshot-init.desktop
  3. 20 0
      snap/gui/flameshot.desktop
  4. BIN
      snap/gui/flameshot.png
  5. 64 0
      snap/snapcraft.yaml

+ 14 - 0
.gitignore

@@ -37,3 +37,17 @@ Makefile*
 # QtCtreator CMake
 CMakeLists.txt.user
 
+
+# Created by https://www.gitignore.io/api/snapcraft
+
+### Snapcraft ###
+# Snapcraft
+parts/
+prime/
+stage/
+*.snap
+.snapcraft/
+flameshot*.tar.bz2
+
+
+# End of https://www.gitignore.io/api/snapcraft

+ 18 - 0
snap/gui/flameshot-init.desktop

@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=Launch Flameshot
+Name[es]=Iniciar Flameshot
+Name[tr]=Flameshot Başlat
+Name[zh_CN]=启动 Flameshot
+GenericName=Screenshot tool
+GenericName[es]=Herramienta de captura de pantalla
+GenericName[tr]=Ekran kayıt aracı
+GenericName[zh_CN]=截图工具
+Comment=Powerful yet simple to use screenshot software.
+Comment[es]=Potente pero simple de usar software de capturas.
+Comment[zh_CN]=强大又易用的截图软件
+Keywords=flameshot;screenshot;capture;
+Keywords[zh_CN]=flameshot;screenshot;capture;截图;
+Exec=flameshot
+Icon=${SNAP}/meta/gui/flameshot.png
+Type=Application
+Categories=Graphics;

+ 20 - 0
snap/gui/flameshot.desktop

@@ -0,0 +1,20 @@
+[Desktop Entry]
+Name=Flameshot
+Name[es]=Tomar captura gráfica
+Name[zh_CN]=进行图形截图
+GenericName=Screen capture tool
+GenericName[es]=Herramienta de captura de pantalla
+GenericName[tr]=Ekran kayıt aracı
+GenericName[zh_CN]=屏幕截图工具
+Comment=Powerful yet simple to use screenshot software.
+Comment[es]=Potente pero simple de usar software de capturas.
+Comment[tr]=Güçlü ve kullanımı kolay ekran kayıt yazılımı.
+Comment[zh_CN]=强大又易用的截图软件
+Keywords=flameshot;screenshot;capture;
+Keywords[zh_CN]=flameshot;screenshot;capture;截图;
+Exec=flameshot gui
+Icon=${SNAP}/meta/gui/flameshot.png
+Terminal=false
+Type=Application
+Categories=Graphics;
+StartupNotify=false

BIN
snap/gui/flameshot.png


+ 64 - 0
snap/snapcraft.yaml

@@ -0,0 +1,64 @@
+name: flameshot
+version: git
+icon: img/flameshot.png
+summary: Powerful yet simple to use screenshot software
+description: |
+  A powerful open source screenshot and annotation tool for Linux, Flameshot
+  has a varied set of markup tools available, which include Freehand drawing,
+  Lines, Arrows, Boxes, Circles, Highlighting, Blur. Additionally, you can
+  customise the color, size and/or thickness of many of these image annotation
+  tools.
+
+grade: devel # must be 'stable' to release into candidate/stable channels
+confinement: devmode # use 'strict' once you have the right plugs and slots
+
+
+apps:
+  flameshot:
+    command: desktop-launch ${SNAP}/usr/bin/flameshot
+    environment:
+      LC_ALL: C.UTF-8
+    slots: [ dbus-svc ]
+    plugs:
+      - desktop
+      - desktop-legacy
+      - home
+      - network
+      - network-bind
+      - opengl
+      - pulseaudio
+      - unity7
+      - wayland
+      - x11
+
+parts:
+  flameshot:
+    after:
+      - desktop-qt5
+      - indicator-qt5
+    plugin: qmake
+    qt-version: qt5
+    options:
+      - CONFIG+=packaging
+    source: .
+    source-type: git
+    build-packages:
+      - qt5-default
+      - qttools5-dev-tools
+    stage-packages:
+      - dbus-x11
+      - libgtk2.0-0
+      - openssl
+      - ca-certificates
+
+  desktop-qt5:
+    stage: [ -./**/lib/*/qt5/**/libappmenu-qt5.so ]
+
+slots:
+  # Depending on in which environment we're running we either need
+  # to use the system or session DBus so we also need to have one
+  # slot for each.
+  dbus-svc:
+    interface: dbus
+    bus: session
+    name: org.dharkael.Flameshot