Compare commits

..

3 Commits

Author SHA1 Message Date
76e220ba6f Add native messaging manifest to debian package
All checks were successful
Release binary and debian package for cl-cli / webext-build (push) Successful in 30s
Check go code / build-and-release (push) Successful in 1m7s
Release binary and debian package for cl-cli / build-and-release (push) Successful in 1m50s
2025-11-13 09:34:40 +01:00
9439f6afe1 configure changie to update version on release
All checks were successful
Check go code / build-and-release (push) Successful in 1m5s
2025-11-12 20:12:44 +01:00
0a64db6925 Add a web extension and debian package compilation (#5)
All checks were successful
Check go code / build-and-release (push) Successful in 1m9s
Reviewed-on: #5
Co-authored-by: Julien Fastré <julien.fastre@champs-libres.coop>
Co-committed-by: Julien Fastré <julien.fastre@champs-libres.coop>
2025-11-12 19:10:41 +00:00
6 changed files with 23 additions and 7 deletions

View File

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

View File

@@ -25,8 +25,14 @@ newlines:
endOfVersion: 1
envPrefix: CHANGIE_
# update the version in the cargo file, on release
# update the version in relevant files
replacements:
- path: Cargo.toml
find: '^version = ".*"'
replace: 'version = "{{.VersionNoPrefix}}"'
- path: web-extension/cl/manifest.json
find: '"version": ".*"'
replace: '"version": "{{.VersionNoPrefix}}"'
- path: web-extension/cl/package.json
find: '"version": ".*"'
replace: '"version": "{{.VersionNoPrefix}}"'

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",