-
Notifications
You must be signed in to change notification settings - Fork 1
/
snapcraft.yaml
52 lines (47 loc) · 1.32 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
name: linpad
version: "1.0.4-classic"
summary: "Linpad text editor for Ubuntu with enhanced features"
description: |
Linpad is a lightweight text editor designed for Ubuntu. It includes file handling, syntax highlighting, dark mode, zoom, word count, and replace functionality.
grade: stable
confinement: classic # Changed from strict to classic for broader system access
architectures:
- build-on: amd64
# Uncomment other architectures if needed
# - build-on: arm64
# - build-on: armhf
# - build-on: ppc64el
# - build-on: s390x
# - build-on: i386
base: core20
parts:
linpad:
plugin: python
source: .
stage-packages:
- python3-tk
- python3
- libsqlite3-dev
- libssl-dev
- libtk8.6 # Additional tkinter dependency
- libtcl8.6 # Additional tkinter dependency
override-build: |
snapcraftctl build
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/bin
cp linpad.py $SNAPCRAFT_PART_INSTALL/usr/bin/linpad
chmod +x $SNAPCRAFT_PART_INSTALL/usr/bin/linpad
apps:
linpad:
command: usr/bin/linpad
plugs:
- home
- desktop
- desktop-legacy
- x11
- wayland
- opengl # Additional plug for display compatibility
- network
- network-bind
environment:
LC_ALL: C.UTF-8
LANG: C.UTF-8