making sure that dist/snap exists
This commit is contained in:
parent
8248efb2ba
commit
b70dea7acf
|
@ -196,17 +196,17 @@ jobs:
|
||||||
|
|
||||||
- name: Build Snap Package
|
- name: Build Snap Package
|
||||||
run: |
|
run: |
|
||||||
mkdir ./dist
|
mkdir -p dist/snap
|
||||||
cp -r ./stores/snap -t ./dist/snap
|
cp -r stores/snap -t dist/snap
|
||||||
sed -i s/__version__/${{ env.PACKAGE_VERSION }}/g ./dist/snap/snapcraft.yaml
|
sed -i s/__version__/${{ env.PACKAGE_VERSION }}/g dist/snap/snapcraft.yaml
|
||||||
|
|
||||||
cd ./dist/snap
|
cd dist/snap
|
||||||
snapcraft
|
snapcraft
|
||||||
|
|
||||||
sha256sum bw_${{ env.PACKAGE_VERSION }}_amd64.snap | awk '{split($0, a); print a[1]}' > bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt
|
sha256sum bw_${{ env.PACKAGE_VERSION }}_amd64.snap | awk '{split($0, a); print a[1]}' > bw-snap-sha256-${{ env.PACKAGE_VERSION }}.txt
|
||||||
|
|
||||||
- name: Install Snap
|
- name: Install Snap
|
||||||
run: sudo snap install ./dist/snap/bw*.snap --dangerous
|
run: sudo snap install dist/snap/bw*.snap --dangerous
|
||||||
|
|
||||||
- name: Test Snap
|
- name: Test Snap
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
Loading…
Reference in New Issue