From 7f74723b1795bc8765ccef042125fb2eb52f597a Mon Sep 17 00:00:00 2001 From: siwatanejo <7511840+siwatanejo@users.noreply.github.com> Date: Fri, 17 May 2024 23:47:44 +0800 Subject: [PATCH] WIP: use staging --- .github/workflows/CI.yml | 6 +++++- snap/snapcraft.yaml | 2 +- src/PackWallet/launch.sh | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9ded499..2791809 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -60,7 +60,11 @@ jobs: sudo snap set snapcraft provider=multipass - name: Build - run: dotnet build --configuration Release + run: | + dotnet build --configuration Release + mkdir staging + cp -rfvp src/PackWallet/bin/Release/net7.0/* staging/ + cp src/PackWallet/launch.sh staging/ - name: Generate snap package run: sudo snapcraft --destructive-mode --verbosity=verbose || (sudo bash -c 'cat /root/.local/state/snapcraft/log/*.log' && exit 1) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 68f14be..b8db35e 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -11,7 +11,7 @@ confinement: devmode # use 'strict' once you have the right plugs and slots parts: dotnet-fsharp-helloworld: plugin: dump - source: . + source: ./staging stage-packages: - dotnet-sdk-7.0 diff --git a/src/PackWallet/launch.sh b/src/PackWallet/launch.sh index fe415b8..371ed30 100755 --- a/src/PackWallet/launch.sh +++ b/src/PackWallet/launch.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -$SNAP/dotnet $SNAP/PackWallet.dll "$@" +dotnet $SNAP/PackWallet.dll "$@"