-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
46 lines (39 loc) · 1.12 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
name: appimage2deb
base: core22
version: '1.0.0'
summary: S
description: |
D
grade: stable
confinement: strict
parts:
node-with-addons:
plugin: npm
npm-include-node: true
npm-node-version: 18.13.0
source: https://github.com/dhilt/hello-world-js.git
appimage2deb:
plugin: dump
source: ./local
source-type: local
organize:
local/appimage2deb: appimage2deb
stage-packages:
- fakeroot
- coreutils # cp
- dpkg
- binutils # readelf
- squashfs-tools # unsquashfs
override-prime: |
snapcraftctl prime
cp usr/bin/fakeroot-sysv usr/bin/fakeroot || echo
sed -i 's|PATHS=/usr/lib/|PATHS=$SNAP/usr/lib/|g' usr/bin/fakeroot
sed -i 's|FAKEROOT_PREFIX=/usr|FAKEROOT_PREFIX=$SNAP/usr|g' usr/bin/fakeroot
sed -i 's|FAKEROOT_BINDIR=/usr/bin|FAKEROOT_BINDIR=$SNAP/usr/bin|g' usr/bin/fakeroot
apps:
appimage2deb:
command: bin/node --enable-source-maps $SNAP/appimage2deb/main.js
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAP_ARCH_TRIPLET:$SNAP/usr/lib/$SNAP_ARCH_TRIPLET/libfakeroot
plugs:
- home