-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
snapcraft.yaml
71 lines (61 loc) · 2.21 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
name: librelinkupdesktop
base: core22
version: '0.1.11'
summary: LibreLinkUpDesktop
description: |
This is a desktop application that fetches your blood sugar from LibreLinkUp.
Features of LibreLinkUpDesktop:
- Show blood glucose level on your desktop in a little window
- No tracking
- Dark Mode
- Libre software
- That's it. 🩸
contact: 'mailto:marvin@poopjournal.rocks'
donation: https://poopjournal.rocks/blog/donate/
issues: https://github.com/Crazy-Marvin/LibreLinkUpDesktop/issues
source-code: https://github.com/Crazy-Marvin/LibreLinkUpDesktop
license: 'Apache-2.0'
title: LibreLinkUpDesktop
type: app
icon: assets/logo.svg
website: 'https://github.com/Crazy-Marvin/LibreLinkUpDesktop'
confinement: strict
grade: stable
architectures:
- build-on: amd64
apps:
librelinkupdesktop:
command: librelinkupdesktop/librelinkupdesktop --no-sandbox
extensions: [gnome]
desktop: snap/gui/librelinkupdesktop.desktop
plugs:
- browser-support
- network
- network-bind
environment:
TMPDIR: $XDG_RUNTIME_DIR
parts:
librelinkupdesktop:
plugin: nil
source: .
override-build: |
# Configure proxy for Electron download if a proxy is set
if [ -n "$http_proxy" ]; then
export ELECTRON_GET_USE_PROXY=1
export GLOBAL_AGENT_HTTP_PROXY="${http_proxy}"
export GLOBAL_AGENT_HTTPS_PROXY="${http_proxy}"
fi
npm install electron @electron/packager --legacy-peer-deps
npx ts-node ./.erb/scripts/clean.js dist
npx cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts
npx cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts
npx electron-packager ./release/app librelinkupdesktop --overwrite --platform=linux --arch=x64 --out=release-build --prune=true --electron-version=31.3.1 --app-version=0.1.11
cp -rv release-build/librelinkupdesktop-linux-x64 $SNAPCRAFT_PART_INSTALL/librelinkupdesktop
chmod -R 755 $SNAPCRAFT_PART_INSTALL/librelinkupdesktop
build-snaps:
- node/20/stable
build-packages:
- unzip
stage-packages:
- libnss3
- libnspr4