Skip to content

Commit

Permalink
Snap upgrade to core22 (#186)
Browse files Browse the repository at this point in the history
* core22 upgrade and workflow

snap test builds in github

* forgot go build snap

* name

* oops

* update README

* adopt-info added

* added janky icon

* fix spaces

* added original interfaces back in
  • Loading branch information
kz6fittycent authored Oct 5, 2024
1 parent 2f8e927 commit ddc4ecc
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 12 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test-snap-can-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 🧪 Snap Builds

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2

- uses: snapcore/action-build@v1
id: build

- uses: diddlesnaps/snapcraft-review-action@v1
with:
snap: ${{ steps.build.outputs.snap }}
isClassic: 'false'
# Plugs and Slots declarations to override default denial (requires store assertion to publish)
# plugs: ./plug-declaration.json
# slots: ./slot-declaration.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# s

[![License][License-Image]][License-URL] [![ReportCard][ReportCard-Image]][ReportCard-URL] [![Build][Build-Status-Image]][Build-Status-URL] [![Release][Release-Image]][Release-URL]
[![License][License-Image]][License-URL] [![ReportCard][ReportCard-Image]][ReportCard-URL] [![Build][Build-Status-Image]][Build-Status-URL] [![Release][Release-Image]][Release-URL] [![🧪 Snap Builds](https://github.com/kz6fittycent/s/actions/workflows/test-snap-can-build.yml/badge.svg)](https://github.com/kz6fittycent/s/actions/workflows/test-snap-can-build.yml) <a href="https://snapcraft.io/s-search"><img src="https://snapcraft.io/s-search/badge.svg" alt="Snap Status"></a>

Web search from the terminal. Just opens in your browser.

Expand Down
Binary file added snap/local/s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 31 additions & 11 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,45 @@
name: s-search
base: core18 # the base snap is the execution environment for this snap
version: git
base: core22
adopt-info: s-search
summary: Open a web search in your terminal.
description: |
Web search from the terminal. Just opens in your browser.
grade: stable
confinement: strict

parts:
s:
plugin: go
source: .
go-importpath: github.com/zquestz/s
build-packages:
- gcc
source-code: https://github.com/zquestz/s
issues: https://github.com/zquestz/s/issues
contact: https://github.com/zquestz/s
license: MIT
icon: snap/local/s.png

architectures:
- build-on: amd64
- build-on: s390x
- build-on: armhf
- build-on: arm64
- build-on: ppc64el

apps:
s-search:
command: s
command: bin/s
plugs:
- desktop
- network
- network-bind
- desktop

parts:
s-search:
source: https://github.com/zquestz/s
source-type: git
plugin: go
build-snaps:
- go

build-packages:
- gcc

override-pull: |
craftctl default
craftctl set version="$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"

0 comments on commit ddc4ecc

Please sign in to comment.