diff --git a/.gitignore b/.gitignore index 3da95ba3..a886f32c 100644 --- a/.gitignore +++ b/.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 diff --git a/snap/gui/flameshot-init.desktop b/snap/gui/flameshot-init.desktop new file mode 100644 index 00000000..1f9af1f8 --- /dev/null +++ b/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; diff --git a/snap/gui/flameshot.desktop b/snap/gui/flameshot.desktop new file mode 100644 index 00000000..7ba4d8d3 --- /dev/null +++ b/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 diff --git a/snap/gui/flameshot.png b/snap/gui/flameshot.png new file mode 100644 index 00000000..fbb35a27 Binary files /dev/null and b/snap/gui/flameshot.png differ diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..8672c5e2 --- /dev/null +++ b/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