Skip to content

Commit

Permalink
WIP: use staging
Browse files Browse the repository at this point in the history
  • Loading branch information
siwatanejo committed May 17, 2024
1 parent 51e9d4c commit 7f74723
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/PackWallet/launch.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

$SNAP/dotnet $SNAP/PackWallet.dll "$@"
dotnet $SNAP/PackWallet.dll "$@"

0 comments on commit 7f74723

Please sign in to comment.