Set up native messaging with debian packages #6

Merged
julienfastre merged 2 commits from set-up-native-message-debian into main 2025-11-13 11:39:39 +00:00
5 changed files with 16 additions and 6 deletions
Showing only changes of commit 76e220ba6f - Show all commits

View File

@@ -0,0 +1,3 @@
kind: Added
body: Add a web extension
time: 2025-11-12T20:13:11.961655215+01:00

2
Cargo.lock generated
View File

@@ -174,7 +174,7 @@ dependencies = [
[[package]]
name = "cl-cli"
version = "0.5.0-alpha15"
version = "0.5.0-alpha16"
dependencies = [
"clap",
"gitlab",

View File

@@ -1,8 +1,8 @@
[package]
name = "cl-cli"
version = "0.5.0-alpha15"
version = "0.5.0-alpha16"
edition = "2021"
license = "GPLv3"
license = "GPL-3.0-or-later"
description = "Some helpers scripts for Champs-Libres"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -30,12 +30,12 @@ serde_json = "1.0.145"
[package.metadata.deb]
maintainer = "Julien Fastré <julien.fastre@champs-libres.coop>"
copyright = "AGPLv3"
extended-description = """Helpers for Champs-Libres"""
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
["target/release/cl-cli", "usr/bin/cl", "755"],
["target/release/webext", "usr/bin/", "755"],
["target/release/webext", "usr/bin/cl-webext", "755"],
["web-extension/_native-messaging/cl_cli.json", "/usr/lib/mozilla/native-messaging-hosts/", "644"]
]

View File

@@ -0,0 +1,7 @@
{
"name": "cl_cli",
"description": "Call cl-cli from browser",
"path": "/usr/bin/cl-webext",
"type": "stdio",
"allowed_extensions": ["helper@champs-libres-coop"]
}

View File

@@ -12,7 +12,7 @@
},
"keywords": [],
"author": "",
"license": "ISC",
"license": "GPL-3.0-or-later",
"type": "commonjs",
"devDependencies": {
"@types/firefox-webext-browser": "^143.0.0",