Skip to content

Commit

Permalink
This is working snapcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Mar 1, 2024
1 parent bd67384 commit aff97ff
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,31 @@ description: |
base: core22

confinement: strict
confinement: devmode

parts:
wissance-zerial:
plugin: dotnet
dotnet-build-configuration: Release
dotnet-self-contained-runtime-identifier: linux-x64
source: ./app/Wissance.Zerial/Wissance.Zerial.Desktop
source: ./app/Wissance.Zerial
build-packages:
- dotnet-sdk-6.0
- 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:
command: Zerial
plugs:
- desktop
- desktop-legacy
command: ./Wissance.Zerial.Desktop

0 comments on commit aff97ff

Please sign in to comment.