From 44798552e222a359edb22e29ad4d3d87c8e30356 Mon Sep 17 00:00:00 2001 From: Daniel Gustaw Date: Wed, 22 Mar 2023 15:32:04 +0900 Subject: [PATCH] snap name simplified --- .github/workflows/release.yml | 5 +++-- nfpm.yaml | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b15020a..2565d19 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -216,8 +216,9 @@ jobs: with: name: snap path: ${{ steps.snapcraft.outputs.snap }} + - run: cp ${{ steps.snapcraft.outputs.snap }} gpt-cli.snap - run: | - sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }} --classic + sudo snap install --dangerous gpt-cli.snap --classic - run: alias p=gpt-cli - run: ./test_version.sh - name: Release @@ -226,4 +227,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} with: files: | - ${{ steps.snapcraft.outputs.snap }} + gpt-cli.snap diff --git a/nfpm.yaml b/nfpm.yaml index aa1cc0e..d56c1f1 100644 --- a/nfpm.yaml +++ b/nfpm.yaml @@ -11,6 +11,8 @@ description: | vendor: "gustawdaniel" homepage: "https://github.com/gustawdaniel/gpt-cli" license: "MIT" +depends: +- libxcb contents: - src: ./target/release/gpt-cli dst: /usr/bin/gpt-cli