-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
workflow_dispatch: | ||
name: Snap | ||
permissions: | ||
id-token: write | ||
contents: read | ||
jobs: | ||
snap: | ||
name: "Test if the Snap can be built from the latest commit in the branch" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v3 | ||
- name: Build Snap | ||
uses: snapcore/action-build@v1 | ||
id: snapcraft-build | ||
with: | ||
snapcraft-args: "-v" | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: inspector-amd64-snap | ||
path: ${{ steps.snapcraft-build.outputs.snap }} | ||
- name: Upload and release Inspector snap with every changes | ||
uses: snapcore/action-publish@v1 | ||
env: | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} | ||
with: | ||
snap: ${{ steps.snapcraft-build.outputs.snap }} | ||
release: ${{'edge'}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: inspector # you probably want to 'snapcraft register <name>' | ||
base: core22 # the base snap is the execution environment for this snap | ||
adopt-info: inspector | ||
grade: stable # must be 'stable' to release into candidate/stable channels | ||
confinement: strict # use 'strict' once you have the right plugs and slots | ||
website: https://github.com/Nokse22/inspector | ||
license: GPL-3.0 | ||
source-code: https://github.com/Nokse22/inspector | ||
issues: https://github.com/Nokse22/inspector/issues | ||
contact: https://github.com/Nokse22/inspector | ||
|
||
|
||
|
||
architectures: | ||
- build-on: amd64 | ||
- build-on: arm64 | ||
- build-on: armhf | ||
|
||
parts: | ||
inspector: | ||
# See 'snapcraft plugins' | ||
plugin: meson | ||
source: . | ||
parse-info: [ usr/share/appdata/io.github.nokse22.inspector.appdata.xml ] | ||
build-packages: | ||
- blueprint-compiler | ||
meson-parameters: | ||
- --prefix=/snap/inspector/current/usr | ||
override-build: | | ||
craftctl default | ||
sed -e '1c#!/usr/bin/env python3' -i ${CRAFT_PART_INSTALL}/snap/inspector/current/usr/bin/inspector | ||
chmod +x $CRAFT_PART_INSTALL/snap/inspector/current/usr/bin/inspector | ||
organize: | ||
snap/inspector/current: . | ||
deps: | ||
plugin: nil | ||
stage-packages: | ||
- usbutils | ||
- pciutils | ||
|
||
slots: | ||
inspector: | ||
interface: dbus | ||
bus: session | ||
name: io.github.nokse22.inspector | ||
|
||
apps: | ||
inspector: | ||
command: usr/bin/inspector | ||
extensions: [ gnome ] | ||
common-id: io.github.nokse22.inspector | ||
desktop: usr/share/applications/io.github.nokse22.inspector.desktop | ||
environment: | ||
PYTHONPATH: $SNAP/usr/bin/inspector:$PYTHONPATH | ||
plugs: | ||
- mount-observe | ||
- hardware-observe | ||
- network-observe | ||
- system-observe |