Skip to content

Commit 20f1b21

Browse files
Merge pull request #72 from dominikwilkowski/dep-update
Dep update
2 parents 361626e + e67f6c2 commit 20f1b21

File tree

5 files changed

+405
-134
lines changed

5 files changed

+405
-134
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,5 +476,5 @@ NO_COLOR="" cfonts "hello world" -c "#0088ff"
476476

477477

478478
## License
479-
Copyright (c) 2022 Dominik Wilkowski.
479+
Copyleft (c) 2023 Dominik Wilkowski.
480480
Licensed under the [GNU GPL-3.0-or-later](https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE).

RELEASE.md

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
```sh
2+
█▀█ █▀▀ █ █▀▀ ▄▀█ █▀▀ █▀▀
3+
█▀▄ ██▄ █▄▄ ██▄ █▀█ ▄▄█ ██▄ cfonts
4+
```
5+
> To release a new version of cfonts follow the below steps
6+
7+
## NodeJS
8+
9+
Just publish via npm:
10+
11+
```sh
12+
λ npm publish
13+
```
14+
15+
And tag the release with `vx.x.xnodejs`.
16+
17+
## Rust
18+
19+
### git
20+
21+
Make sure you tag each release with `vx.x.xrust`.
22+
23+
### Crates.io
24+
25+
We have to use the flag `--allow-dirty` since we include build artifacts like `fonts/*` and `/LICENSE`
26+
27+
```sh
28+
λ cargo publish --allow-dirty
29+
```
30+
31+
### Homebrew
32+
33+
https://docs.brew.sh/Manpage#bump-formula-pr-options-formula
34+
35+
Download the `tar.gz` file from the GitHub release tag and run `openssl dgst -sha256 [filepath].tar.gz` and copy the checksum.
36+
37+
```sh
38+
λ brew bump-formula-pr cfonts --url=https://github.com/dominikwilkowski/cfonts/archive/refs/tags/[version].tar.gz --sha256=[checksum] --dry-run
39+
```
40+
41+
### AUR
42+
43+
Repo: https://aur.archlinux.org/cfonts.git
44+
45+
Reference: https://wiki.archlinux.org/title/PKGBUILD
46+
47+
Download the release zip from GitHub (`https://github.com/dominikwilkowski/cfonts/archive/refs/tags/v[version].tar.gz`) and run:
48+
49+
```sh
50+
λ openssl dgst -sha256 path/to/zip
51+
```
52+
53+
Edit the `PKGBUILD` file:
54+
55+
```diff
56+
- pkgver=1.1.0rust
57+
- pkgrel=3
58+
- sha256sums=('45c40dfc867234efc5c5a2df687ccfc40a6702fa5a82f2380b555f9e755508e6')
59+
+ pkgver=1.2.0rust
60+
+ pkgrel=1
61+
+ sha256sums=('0d2671b410aeddc23345b984984d70fa7da22c1df9a218bb3e9711d571a8d4ad')
62+
```
63+
64+
Edit the `.SRCINFO` file:
65+
66+
```diff
67+
- pkgver = 1.1.0rust
68+
- pkgrel = 3
69+
- source = https://github.com/dominikwilkowski/cfonts/archive/refs/tags/v1.1.0rust.tar.gz
70+
- sha256sums = 45c40dfc867234efc5c5a2df687ccfc40a6702fa5a82f2380b555f9e755508e6
71+
+ pkgver = 1.2.0rust
72+
+ pkgrel = 1
73+
+ source = https://github.com/dominikwilkowski/cfonts/archive/refs/tags/v1.2.0rust.tar.gz
74+
+ sha256sums = 0d2671b410aeddc23345b984984d70fa7da22c1df9a218bb3e9711d571a8d4ad
75+
```
76+
77+
Note: `pkgrel` starts with `1`
78+
79+
### Macports
80+
81+
Fork https://github.com/macports/macports-ports and push a new version.
82+
Reference PR: https://github.com/macports/macports-ports/pull/15303 and https://github.com/macports/macports-ports/pull/15130
83+
84+
Run `cargo2port` in the rust folder of the cfonts repo:
85+
86+
```sh
87+
λ cargo2port
88+
cargo.crates \
89+
something x.x.x fa3d466004a8b4cb1bc34044240a2fd29d17607e2e3bd613eb44fd48e8100da3 \
90+
[...]
91+
something x.x.x f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5
92+
```
93+
94+
and copy the result into the `textproc/cfonts/Portfile` of the macports fork.
95+
96+
Also change `github.setup` and `checksums` inside the `Portfile` file:
97+
98+
```diff
99+
- github.setup DominikWilkowski cfonts 1.0.4 v rust
100+
+ github.setup DominikWilkowski cfonts 1.1.0 v rust
101+
```
102+
103+
And
104+
105+
```diff
106+
checksums ${distfiles} \
107+
- rmd160 9bc402d9c18048175ff25079cdbd60c31436ccd8 \
108+
- sha256 efe44d74c2a4a9510413ee7429bf248e3bee4e1ae5da17c4ad8b96c1d8606dc1 \
109+
- size 3313925
110+
+ rmd160 cd1099abdbf581dd4bd3a1a0bd156ee3f9a6e953 \
111+
+ sha256 edd9a1f4ce246eee3f10f084d72e4e650bd68539d8bc8f9e4eca61f2f9c79293 \
112+
+ size 3315389
113+
```
114+
115+
To get checksums download the zip from `https://codeload.github.com/DominikWilkowski/cfonts/legacy.tar.gz/v[version]rust?dummy=` and run:
116+
117+
```sh
118+
λ openssl dgst -rmd160 path/to/zip
119+
λ openssl dgst -sha256 path/to/zip
120+
```
121+
122+
Lint the Portfile via:
123+
124+
```sh
125+
λ port lint --nitpick textproc/cfonts
126+
```
127+
128+
And finally test it all via:
129+
130+
```sh
131+
λ sudo port test textproc/cfonts
132+
λ sudo port -vst install textproc/cfonts
133+
λ sudo port uninstall cfonts
134+
```
135+
136+
Make sure you format the git message as `cfonts: update to 1.1.0`.
137+
138+
139+
Copyleft (c) 2023 Dominik Wilkowski.
140+
Licensed under the [GNU GPL-3.0-or-later](https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE).

0 commit comments

Comments
 (0)