From fb9f9f1baae8b6f19c94dbb46f8e2c6445ec7773 Mon Sep 17 00:00:00 2001 From: Soumyadeep Ghosh Date: Sun, 7 Jul 2024 02:13:58 +0530 Subject: [PATCH 1/5] snap: add snap manifest --- snap/snapcraft.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 000000000..1a8707a54 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,35 @@ +name: lazygit +title: Lazygit +base: core24 +adopt-info: lazygit +summary: simple terminal UI for git commands +description: A simple terminal UI for git commands, written in Go with the gocui library. +version: '0.42.0' +license: MIT +grade: stable +confinement: classic +compression: lzo +contact: + - https://discord.gg/ehwFt2t4wt + - https://twitter.com/DuffieldJesse +donation: + - https://github.com/jesseduffield + - https://donorbox.org/lazygit +issues: https://github.com/jesseduffield/lazygit/issues +source-code: https://github.com/jesseduffield/lazygit +website: https://jesseduffield.com + +parts: + lazygit: + plugin: go + source: https://github.com/jesseduffield/lazygit.git + source-tag: 'v$SNAPCRAFT_PROJECT_VERSION' + source-depth: 1 + build-snaps: + - go + build-attributes: + - enable-patchelf + +apps: + lazygit: + command: bin/lazygit From 9227b3071b1f850a4a8e258c38fb279b509999a0 Mon Sep 17 00:00:00 2001 From: Soumyadeep Ghosh Date: Mon, 27 Jan 2025 17:24:18 +0530 Subject: [PATCH 2/5] snap: update version directly based on the tags --- snap/snapcraft.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 1a8707a54..303a5d39a 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -4,7 +4,6 @@ base: core24 adopt-info: lazygit summary: simple terminal UI for git commands description: A simple terminal UI for git commands, written in Go with the gocui library. -version: '0.42.0' license: MIT grade: stable confinement: classic @@ -27,6 +26,9 @@ parts: source-depth: 1 build-snaps: - go + override-pull: | + craftctl default + craftctl set version=$(git describe --tags --abbrev=0 | cut -c 2-) build-attributes: - enable-patchelf From 870e26b50587efe6915252ad308a32b3f6b1f8cb Mon Sep 17 00:00:00 2001 From: Soumyadeep Ghosh Date: Mon, 27 Jan 2025 17:25:00 +0530 Subject: [PATCH 3/5] snap: fix donation link --- snap/snapcraft.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 303a5d39a..ed0a7f743 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -11,9 +11,7 @@ compression: lzo contact: - https://discord.gg/ehwFt2t4wt - https://twitter.com/DuffieldJesse -donation: - - https://github.com/jesseduffield - - https://donorbox.org/lazygit +donation: https://github.com/sponsors/jesseduffield issues: https://github.com/jesseduffield/lazygit/issues source-code: https://github.com/jesseduffield/lazygit website: https://jesseduffield.com From 71d339e3184f22a82fd8e495ac879bd24cf544ef Mon Sep 17 00:00:00 2001 From: Soumyadeep Ghosh Date: Wed, 29 Jan 2025 14:50:26 +0530 Subject: [PATCH 4/5] Revert "snap: update version directly based on the tags" This reverts commit 9227b3071b1f850a4a8e258c38fb279b509999a0. --- snap/snapcraft.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index ed0a7f743..57d76fbfc 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -4,6 +4,7 @@ base: core24 adopt-info: lazygit summary: simple terminal UI for git commands description: A simple terminal UI for git commands, written in Go with the gocui library. +version: '0.42.0' license: MIT grade: stable confinement: classic @@ -24,9 +25,6 @@ parts: source-depth: 1 build-snaps: - go - override-pull: | - craftctl default - craftctl set version=$(git describe --tags --abbrev=0 | cut -c 2-) build-attributes: - enable-patchelf From 662e561a26f0a6cac763a05cfbe8339627a96f51 Mon Sep 17 00:00:00 2001 From: Soumyadeep Ghosh Date: Wed, 29 Jan 2025 14:52:02 +0530 Subject: [PATCH 5/5] snap: fix website --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 57d76fbfc..d5b8c0a76 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -15,7 +15,7 @@ contact: donation: https://github.com/sponsors/jesseduffield issues: https://github.com/jesseduffield/lazygit/issues source-code: https://github.com/jesseduffield/lazygit -website: https://jesseduffield.com +website: https://github.com/jesseduffield/lazygit parts: lazygit: