Blog: 2023-12-28: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
Ok now I have found https://github.com/kornelski/cargo-deb, maybe it will make the deb automatically? Let's try |
Ok now I have found https://github.com/kornelski/cargo-deb, maybe it will make the deb automatically? Let's try |
||
Sweet, after installing this dependency: <code>sudo apt install -y protobuf-compiler</code> |
|||
I ran this command and got this positive result:<syntaxhighlight> |
|||
deno $ cargo deb -p deno |
|||
Compiling ring v0.17.7 |
|||
[...] |
|||
Compiling deno v1.39.1 (/home/razzi/forks/deno/cli) |
|||
Finished release [optimized] target(s) in 18m 11s |
|||
/home/razzi/forks/deno/target/debian/deno_1.39.1-1_amd64.deb |
|||
deno $ ls |
|||
Cargo.lock README.md cli/ runtime/ test_ffi/ tools/ |
|||
Cargo.toml Releases.md debian/ rust-toolchain.toml test_napi/ |
|||
LICENSE.md bench_util/ ext/ target/ test_util/ |
|||
deno $ ls -lahtr target/debian/ |
|||
total 111M |
|||
drwxr-xr-x 4 razzi razzi 4.0K Dec 28 07:31 ../ |
|||
-rwxr-xr-x 1 razzi razzi 85M Dec 28 08:02 deno.tmp0-stripped* |
|||
-rw-r--r-- 1 razzi razzi 26M Dec 28 08:02 deno_1.39.1-1_amd64.deb |
|||
</syntaxhighlight>Ok looking into it a bit the description is a bit odd:<syntaxhighlight> |
|||
fish $ apt show deno |
|||
Package: deno |
|||
Version: 1.39.1-1 |
|||
Status: install ok installed |
|||
Priority: optional |
|||
Maintainer: the Deno authors |
|||
Installed-Size: 88.9 MB |
|||
Depends: libc6 (>= 2.38) |
|||
Vcs-Browser: https://github.com/denoland/deno |
|||
Vcs-Git: https://github.com/denoland/deno |
|||
Download-Size: unknown |
|||
APT-Manual-Installed: yes |
|||
APT-Sources: /var/lib/dpkg/status |
|||
Description: Provides the deno executable |
|||
# Deno CLI Crate |
|||
. |
|||
[![crates](https://img.shields.io/crates/v/deno.svg)](https://crates.io/crates/deno) |
|||
. |
|||
This provides the actual deno executable and the user-facing APIs. |
|||
. |
|||
The deno crate uses the deno_core to provide the executable. |
|||
</syntaxhighlight>At the very least, nice to edit it to have a nicer description. Also make sure Apt-Sources works maybe Download-Size too. |
Revision as of 03:11, 28 December 2023
Back at it packaging deno. This tutorial https://wiki.debian.org/Packaging/Intro gave me the following helpful command:
$ dch --create -v 1.0-1 --package hithere
Always happy to have a way to write out bespoke file formats automatically.
Ok now I have found https://github.com/kornelski/cargo-deb, maybe it will make the deb automatically? Let's try
Sweet, after installing this dependency: sudo apt install -y protobuf-compiler
I ran this command and got this positive result:
deno $ cargo deb -p deno
Compiling ring v0.17.7
[...]
Compiling deno v1.39.1 (/home/razzi/forks/deno/cli)
Finished release [optimized] target(s) in 18m 11s
/home/razzi/forks/deno/target/debian/deno_1.39.1-1_amd64.deb
deno $ ls
Cargo.lock README.md cli/ runtime/ test_ffi/ tools/
Cargo.toml Releases.md debian/ rust-toolchain.toml test_napi/
LICENSE.md bench_util/ ext/ target/ test_util/
deno $ ls -lahtr target/debian/
total 111M
drwxr-xr-x 4 razzi razzi 4.0K Dec 28 07:31 ../
-rwxr-xr-x 1 razzi razzi 85M Dec 28 08:02 deno.tmp0-stripped*
-rw-r--r-- 1 razzi razzi 26M Dec 28 08:02 deno_1.39.1-1_amd64.deb
Ok looking into it a bit the description is a bit odd:
fish $ apt show deno
Package: deno
Version: 1.39.1-1
Status: install ok installed
Priority: optional
Maintainer: the Deno authors
Installed-Size: 88.9 MB
Depends: libc6 (>= 2.38)
Vcs-Browser: https://github.com/denoland/deno
Vcs-Git: https://github.com/denoland/deno
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Provides the deno executable
# Deno CLI Crate
.
[![crates](https://img.shields.io/crates/v/deno.svg)](https://crates.io/crates/deno)
.
This provides the actual deno executable and the user-facing APIs.
.
The deno crate uses the deno_core to provide the executable.
At the very least, nice to edit it to have a nicer description. Also make sure Apt-Sources works maybe Download-Size too.