-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
46 lines (41 loc) · 1.16 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
name: wissance-zerial
version: '1.0'
grade: stable
summary: Utility for interaction with multiple RS232 (COM) devices
description: |
Fast and convenient utility to communicate with any RS232 device, useful especially for hardware developers.
base: core22
architectures:
- build-on: [amd64]
build-for: [amd64]
confinement: strict
parts:
wissance-zerial:
plugin: dotnet
dotnet-build-configuration: Release
dotnet-self-contained-runtime-identifier: linux-x64
source: ./app/Wissance.Zerial
build-packages:
- dotnet-sdk-8.0
stage-packages:
- libfontconfig
- libicu70
- libx11-6
- libstdc++5
- libice6
- libsm6
override-build: |
dotnet build -c Release
dotnet publish -r linux-x64 -c Release -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained true -o $SNAPCRAFT_PART_INSTALL ./Wissance.Zerial.Desktop/Wissance.Zerial.Desktop.csproj
chmod 0755 $SNAPCRAFT_PART_INSTALL
apps:
wissance-zerial:
plugs:
- desktop
- desktop-legacy
- x11
- serial-port
command: ./Wissance.Zerial.Desktop --snap
plugs:
serial-foo:
interface: serial-port