-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
47 lines (42 loc) · 1.21 KB
/
snapcraft.yaml
File metadata and controls
47 lines (42 loc) · 1.21 KB
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
name: ssplot
version: '2.3.3'
adopt-info: ssplot
base: core22
grade: stable
confinement: strict
apps:
ssplot:
command: runtime/bin/java -jar $SNAP/jar/ssplot.jar
desktop: meta/gui/ssplot.desktop
extensions: [gnome]
parts:
ssplot:
plugin: maven
source: .
build-packages:
- openjdk-21-jre
- maven
parse-info:
- io.github.babaissarkar.ssplot.metainfo.xml
runtime:
plugin: nil
source: .
build-packages:
- openjdk-21-jdk
override-build: |
# Run your existing script to build the runtime
./packaging/appimage/link.sh
ls -lh
# Copy the generated runtime into the install dir
cp -r ./SSPlot.AppDir/* $SNAPCRAFT_PART_INSTALL/runtime/
# Copy desktop file
mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui
cp $PWD/packaging/appimage/ssplot.desktop $SNAPCRAFT_PART_INSTALL/meta/gui
cp $PWD/packaging/appimage/ssplot.png $SNAPCRAFT_PART_INSTALL/meta/gui
sed -i 's|Icon=".*"|Icon="/snap/snapcraft/15775/meta/gui/ssplot.png"|g' $SNAPCRAFT_PART_INSTALL/meta/gui/ssplot.desktop
cleanup:
plugin: nil
source: .
after: [runtime, ssplot]
override-prime: |
rm -v $SNAPCRAFT_PRIME/jar/SSPlot.jar