-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
78 lines (71 loc) · 2.33 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
base: core18
name: squirrelsql
summary: A Java SQL client for any JDBC compliant database
description: |
SQuirreL SQL Client is a graphical SQL client written in Java that will allow
you to view the structure of a JDBC compliant database, browse the data in
tables, issue SQL commands etc.
This package includes JDBC drivers for sqlite, mysql and postgresql.
Homepage: http://www.squirrelsql.org/
confinement: strict
grade: stable
icon: data/gui/squirrelsql.png
adopt-info: squirrelsql
apps:
squirrelsql:
command: desktop-launch sh $SNAP/squirrelsql/squirrel-sql.sh -userdir $HOME/squirrelsql.settings
plugs:
- home
- network
- x11
environment:
_JAVA_OPTIONS: -Duser.home=$SNAP_USER_DATA
JAVA_HOME: $SNAP/usr/lib/jvm/default-java
PATH: $SNAP/usr/lib/jvm/default-java/bin:$SNAP/usr/lib/jvm/default-java/jre/bin:$PATH
parts:
desktop-glib-only:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: glib-only
plugin: make
build-packages:
- libglib2.0-dev
stage-packages:
- adwaita-icon-theme
- dmz-cursor-theme
- gnome-themes-standard
- libgdk-pixbuf2.0-0
- libglib2.0-bin
- libgtk2.0-0
- libxkbcommon0
- light-themes
- locales-all
- shared-mime-info
- ttf-ubuntu-font-family
- xdg-user-dirs
jdk:
plugin: nil
stage-packages:
- default-jre
filesets:
jdk-bits: [-usr/lib/jvm/default-java/bin,
-usr/lib/jvm/default-java/include,
-usr/lib/jvm/default-java/lib,
-usr/share/doc]
stage:
- $jdk-bits
squirrelsql:
after: [desktop-glib-only, jdk]
plugin: nil
source: .
override-build: |
set -x
JAR=$(ls squirrel*-standard.jar|tail -1)
java -jar $JAR ./data/squirrelsql/installer.script
mv tmp/squirrelsql $SNAPCRAFT_PART_INSTALL/
mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
cp ./data/drivers/*.jar $SNAPCRAFT_PART_INSTALL/squirrelsql/lib/
cp ./data/squirrelsql/squirrel-sql.sh $SNAPCRAFT_PART_INSTALL/squirrelsql/
cp ./data/gui/* $SNAPCRAFT_PART_INSTALL/meta/gui/
snapcraftctl set-version "$(ls squirrel*-standard.*|tail -1|sed 's/squirrel-\?sql-\(.*\)-standard.\(jar\|zip\)/\1/'|tr -s '_' '-')"
build-packages:
- default-jre