You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[me@rocky9t01a loco-cli]$ pwd;cargo build --release
/home/me/github/learnrust/loco/loco-cli
<snipped>
Compiling git2 v0.18.1
Compiling loco-cli v0.2.5 (/home/me/github/learnrust/loco/loco-cli)
Finished release [optimized] target(s) in 50.94s
[me@rocky9t01a loco-cli]$ strip -s target/release/loco
[me@rocky9t01a loco-cli]$ cargo generate-rpm
[me@rocky9t01a loco-cli]$ ls -lrt target/
total 4
-rw-r--r-- 1 me me 177 Dec 24 07:18 CACHEDIR.TAG
drwxr-xr-x 7 me me 176 Dec 24 23:26 release
drwxr-xr-x 2 me me 41 Dec 24 23:28 generate-rpm
[me@rocky9t01a loco-cli]$ ls -lrt target/generate-rpm/
total 1836
-rw-r--r-- 1 me me 1876492 Dec 24 23:28 loco-cli-0.2.5-1.x86_64.rpm
[me@rocky9t01a loco-cli]$ rpm -qlp target/generate-rpm/loco-cli-0.2.5-1.x86_64.rpm
/usr/bin/loco
[me@rocky9t01a loco-cli]$ sudo rpm -ivh target/generate-rpm/loco-cli-0.2.5-1.x86_64.rpm
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:loco-cli-0:0.2.5-1 ################################# [100%]
[me@rocky9t01a loco-cli]$ /usr/bin/loco
loco cli website generator
Usage: loco <COMMAND>
Commands:
new Create a new Loco website
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
[me@rocky9t01a loco-cli]$ /usr/bin/loco -V
loco-cli 0.2.5
[me@rocky9t01a loco-cli]$
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just an idea to create loco.rpm for RHEL base distros. There are a few other similar one. I found this one is most easy(to me).
We see cargo-generate-rpm = "0.13.0" line got added in loco-cli/Cargo.toml
Beta Was this translation helpful? Give feedback.
All reactions