Skip to content

Commit

Permalink
Did the "wording adjustment" :), reduced the snap size by removing fi…
Browse files Browse the repository at this point in the history
…les from prime stage.

* Fixed typo in snap summary, thanks @justinclift for pointing out
* Reduced the size of snap package by removing big files from the package
* Added revno to the version script
* Added long description of snap package from deb package
* Borrowed some code from vlc snap script to fix fall back UI (need further research to fix issue)

Signed-off-by: Navdeep Singh Sidhu <deepsidhu1313@users.noreply.github.com>
  • Loading branch information
deepsidhu1313 committed Aug 10, 2018
1 parent 1e8e1eb commit c209756
Show file tree
Hide file tree
Showing 2 changed files with 342 additions and 36 deletions.
72 changes: 38 additions & 34 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
name: sqlitebrowser # the name of the snap
# version: 3.10.1 # the version of the snap
version: master
version-script: printf "`cat currentrelease | head -n 1 `-` git -C . rev-parse --short HEAD`"
# version: 3.10.1 # the version of the snap
version: master
version-script: printf "`cat currentrelease | head -n 1 `-`git rev-list master --count`-` git -C . rev-parse --short HEAD`"

summary: DB browser for Sqlite # 79 char long summary
description: GUI editor for SQLite databases # a longer description for the snap
summary: DB browser for SQLite # 79 char long summary
description: |
SQLite Database Browser is a visual tool used to create, design and edit database files compatible with SQLite. Its interface is based on QT, and is meant to be used for users and developers that want to create databases, edit and search data using a familiar spreadsheet-like interface, without the need to learn complicated SQL commands. Controls and wizards are available for users to:
* Create and compact database files
* Create, define, modify and delete tables
* Create, define and delete indexes
* Browse, edit, add and delete records
* Search records
* Import and export records as text
* Import and export tables from/to CSV files
* Import and export databases from/to SQL dump files
* Issue SQL queries and inspect the results
* Examine a log of all SQL commands issued by the application
SQLite Database Browser is not a visual shell for the sqlite command line tool. It does not require familiarity with SQL commands. # a longer description for the snap
confinement: strict # use "strict" to enforce system access only via declared interfaces

grade: devel
Expand All @@ -19,14 +31,14 @@
TMPDIR: $XDG_RUNTIME_DIR
plugs:
# - browser-support
- desktop
# - gsettings
# - desktop
- gsettings
- home
# - network
# - opengl
- unity7
# - unity7
# - wayland
- x11
# - x11
- removable-media
# - ssh-keys

Expand All @@ -51,7 +63,7 @@
plugin: dump
source: snap/
sqlitebrowser:
# source-type: git
# source-type: git
plugin: cmake
configflags: ["-DUSE_QT5=True", "-Dsqlcipher=1", "-Wno-dev"]
source: .
Expand All @@ -66,9 +78,9 @@
source-subdir: qt
stage-packages:
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
# - ttf-ubuntu-font-family
# - dmz-cursor-theme
# - light-themes
# - adwaita-icon-theme
# - gnome-themes-standard
- shared-mime-info
Expand All @@ -79,6 +91,10 @@
- appmenu-qt5
# - locales-all
# - xdg-user-dirs
prime:
- -usr/lib/*-linux-gnu*/dri/*
- -usr/lib/*-linux-gnu*/libLLVM*
- -usr/lib/*-linux-gnu*/libcudata.so.*

dump:
plugin: dump
Expand All @@ -87,14 +103,14 @@
- sqlitebrowser
stage-packages:
# - qtbase5-dev
# - libqt5gui5
- libqt5gui5
# - libqt4gui4
# - libxkbcommon0
# - libxkbfile1
# - gtk2-engines
- gtk2-engines
- libc6
# - gtk2-engines-oxygen
# - gtk3-engines-breeze
- gtk3-engines-breeze
- libgcc1
# - libqcustomplot1.3
# - libqt5network5
Expand All @@ -106,25 +122,13 @@
- libgail-common
filesets:
wanted:
# - etc/*
# - lib/*
- bin/*
#- share/icons/hicolor/256x256/apps/*
- share/*
# - usr/lib/*-linux-gnu/libsqlcipher.so.0
# - usr/lib/*-linux-gnu/libdb*
# - usr/lib/*-linux-gnu/libz.so*
# - usr/share/*
# - usr/share/doc
# - usr/share/man
# - usr/share/lintian
# - usr/bin/sqlitebrowser
# - usr/share/applications/sqlitebrowser.desktop
# - usr/lib/*
# - usr/lib/*-linux-gnu/*
# - usr/lib/*
# - lib/*-linux-gnu/*
# - usr/lib/x86_64-linux-gnu/mesa/*
# - usr/lib/*-linux-gnu/qt5/plugins/*
- usr/lib/*-linux-gnu*/libsqlcipher.so.0*
- usr/lib/*-linux-gnu*/libdb*
- usr/lib/*-linux-gnu*/libz.so*
- usr/lib/*-linux-gnu*/libatk*
- usr/lib/*-linux-gnu*/libgail*

prime:
- $wanted
Loading

0 comments on commit c209756

Please sign in to comment.