mirror of
https://github.com/sayanarijit/xplr.git
synced 2024-10-03 22:07:22 +03:00
[Feat] support snapcraft
build package to releases (#697)
* build(snap): support snapcraft package - add `snap/snapcraft.yaml` file NOTE: under `devmode` until fit to release * ci(gh-action): support `snapcraft` build and publish to `gh-release` page
This commit is contained in:
parent
ded2e108bf
commit
68500f3a8e
15
.github/workflows/cd.yml
vendored
15
.github/workflows/cd.yml
vendored
@ -65,6 +65,9 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update --fix-missing
|
||||
sudo apt-get install -y --no-install-recommends liblua5.1-0-dev libluajit-5.1-dev gcc pkg-config curl git make ca-certificates
|
||||
sudo apt-get install -y snapd
|
||||
sudo snap install snapcraft --classic
|
||||
sudo snap install multipass --classic --beta
|
||||
|
||||
- if: matrix.build == 'linux-musl'
|
||||
run: sudo apt-get install -y musl-tools
|
||||
@ -81,6 +84,13 @@ jobs:
|
||||
- name: Running cargo build
|
||||
run: cargo build --locked --release --target ${{ matrix.target }}
|
||||
|
||||
- name: Running snapcraft build
|
||||
run: |
|
||||
snapcraft
|
||||
printf ' [ INFO ] generated <snapcraft> files include:\n'
|
||||
command ls -Al | grep "\.snap" | awk '{ print $9 }'
|
||||
mv ./*.snap ./xplr.snap
|
||||
|
||||
- name: Install gpg secret key
|
||||
run: |
|
||||
cat <(echo -e "${{ secrets.GPG_SECRET }}") | gpg --batch --import
|
||||
@ -103,6 +113,7 @@ jobs:
|
||||
target/${{ matrix.target }}/release/xplr-${{ matrix.build }}.tar.gz
|
||||
target/${{ matrix.target }}/release/xplr-${{ matrix.build }}.sha256
|
||||
target/${{ matrix.target }}/release/xplr-${{ matrix.build }}.tar.gz.asc
|
||||
xplr.snap
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@ -130,6 +141,10 @@ jobs:
|
||||
source.tar.gz.asc
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Cleaning snapcraft
|
||||
run: |
|
||||
command rm --verbose ./*.snap
|
||||
snapcraft clean
|
||||
|
||||
publish-cargo:
|
||||
name: Publishing to Cargo
|
||||
|
26
snap/snapcraft.yaml
Normal file
26
snap/snapcraft.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
name: xplr
|
||||
version: git
|
||||
summary: A hackable, minimal, fast TUI file explorer
|
||||
description: |
|
||||
xplr is a terminal UI based file explorer
|
||||
that aims to increase our terminal productivity by being a flexible,
|
||||
interactive orchestrator for the ever growing awesome command-line
|
||||
utilities that work with the file-system.
|
||||
source-code: https://github.com/sayanarijit/xplr
|
||||
issues: https://github.com/sayanarijit/xplr/issues
|
||||
website: https://xplr.dev/
|
||||
|
||||
base: core20
|
||||
grade: devel # must be 'stable' to release into candidate/stable channels
|
||||
confinement: devmode # use 'strict' once you have the right plugs and slots
|
||||
|
||||
|
||||
parts:
|
||||
xplr:
|
||||
plugin: rust
|
||||
source: .
|
||||
|
||||
apps:
|
||||
xplr:
|
||||
command: bin/xplr
|
||||
|
Loading…
Reference in New Issue
Block a user