From b4c12568fc70a644a517af9f2ee8810038116a41 Mon Sep 17 00:00:00 2001 From: Mochamad Noor Syamsu <9563873+syamsudotdev@users.noreply.github.com> Date: Tue, 7 May 2024 12:10:59 +0700 Subject: [PATCH] fix(snap) : #1255 fix notification not included in snap binary (#1281) * fix snap packaging * try fix source location * change source to dir * revert comments --------- Co-authored-by: Budhi <964106+sapiderman@users.noreply.github.com> --- .github/workflows/publish-snap.yml | 12 ++++++------ snapcraft.yaml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-snap.yml b/.github/workflows/publish-snap.yml index d2c5b1f52..6560f67e2 100644 --- a/.github/workflows/publish-snap.yml +++ b/.github/workflows/publish-snap.yml @@ -45,14 +45,14 @@ jobs: name: Build workspaces - run: npm ci name: Install dependencies - - run: sed -i 's#packages/notification/hyperjumptech-monika-notification#../../packages/notification/hyperjumptech-monika-notification#g' package.json - name: Change monika notification package path - run: npm run pack-tarballs name: Pack as tarball - - run: mv dist/monika*.tar.gz . - name: Move the tarball from dist folder to root - - run: mv monika*.tar.gz monika.tar.gz - name: Rename tarball + - run: mv dist/monika*.tar.gz dist/monika.tar.gz + name: Rename tarball in dist/ directory + - run: tar -zvxf dist/monika.tar.gz -C dist/ + name: Extract tarball into dist/ directory + - run: cp -vr packages/notification/lib/* dist/monika/packages/notification/ + name: Copy built notification into dist/ directory - uses: snapcore/action-build@v1 id: snapcraft name: Build Snap package diff --git a/snapcraft.yaml b/snapcraft.yaml index 14ae21358..479fb4a68 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -25,7 +25,7 @@ apps: parts: monika: plugin: dump - source: ./monika.tar.gz + source: ./dist/monika override-pull: | sudo apt-get install -y jq curl CLI_VERSION=$(curl https://api.github.com/repos/hyperjumptech/monika/releases/latest -s | jq .tag_name -r)