File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,12 +42,17 @@ jobs:
4242 - name : Build release binaries
4343 run : cargo build --release --locked
4444
45+ - name : Generate third-party licenses
46+ run : |
47+ cargo install cargo-about --locked --features cli
48+ cargo about generate about.hbs > THIRD-PARTY-LICENSES.html
49+
4550 - name : Package
4651 id : package
4752 run : |
4853 name="psst-${GITHUB_REF_NAME}-x86_64-linux"
4954 mkdir "$name"
50- cp target/release/psst-pinentry target/release/psst-keyring-prompter target/release/psst-polkit-agent README.md LICENSE LICENSE-GPL-3.0 "$name"/
55+ cp target/release/psst-pinentry target/release/psst-keyring-prompter target/release/psst-polkit-agent README.md LICENSE LICENSE-GPL-3.0 THIRD-PARTY-LICENSES.html "$name"/
5156 strip "$name"/psst-pinentry "$name"/psst-keyring-prompter "$name"/psst-polkit-agent
5257 tar -czf "$name.tar.gz" "$name"
5358 sha256sum "$name.tar.gz" > "$name.tar.gz.sha256"
Original file line number Diff line number Diff line change 11/target
2+
3+ /THIRD-PARTY-LICENSES.html
Original file line number Diff line number Diff line change 1+ <html >
2+
3+ <head >
4+ <style >
5+ @media (prefers-color-scheme: dark) {
6+ body {
7+ background : #333 ;
8+ color : white ;
9+ }
10+ a {
11+ color : skyblue ;
12+ }
13+ }
14+ .container {
15+ font-family : sans-serif ;
16+ max-width : 800px ;
17+ margin : 0 auto ;
18+ }
19+ .intro {
20+ text-align : center ;
21+ }
22+ .licenses-list {
23+ list-style-type : none ;
24+ margin : 0 ;
25+ padding : 0 ;
26+ }
27+ .license-used-by {
28+ margin-top : -10px ;
29+ }
30+ .license-text {
31+ max-height : 200px ;
32+ overflow-y : scroll ;
33+ white-space : pre-wrap ;
34+ }
35+ </style >
36+ </head >
37+
38+ <body >
39+ <main class =" container" >
40+ <div class =" intro" >
41+ <h1 >Third Party Licenses</h1 >
42+ <p >This page lists the licenses of the projects used in cargo-about.</p >
43+ </div >
44+
45+ <h2 >Overview of licenses:</h2 >
46+ <ul class =" licenses-overview" >
47+ {{ #each overview }}
48+ <li ><a href =" #{{ id }} " >{{ name }} </a > ({{ count }} )</li >
49+ {{ /each }}
50+ </ul >
51+
52+ <h2 >All license text:</h2 >
53+ <ul class =" licenses-list" >
54+ {{ #each licenses }}
55+ <li class =" license" >
56+ <h3 id =" {{ id }} " >{{ name }} </h3 >
57+ <h4 >Used by:</h4 >
58+ <ul class =" license-used-by" >
59+ {{ #each used_by }}
60+ <li ><a href =" {{ #if crate.repository }} {{ crate.repository }} {{ else }} https://crates.io/crates/{{ crate.name }} {{ /if }} " >{{ crate.name }} {{ crate.version }} </a ></li >
61+ {{ /each }}
62+ </ul >
63+ <pre class =" license-text" >{{ text }} </pre >
64+ </li >
65+ {{ /each }}
66+ </ul >
67+ </main >
68+ </body >
69+
70+ </html >
Original file line number Diff line number Diff line change 1+ targets = [" x86_64-unknown-linux-gnu" ]
2+
3+ accepted = [
4+ " MIT" ,
5+ " MIT-0" ,
6+ " Apache-2.0" ,
7+ " Apache-2.0 WITH LLVM-exception" ,
8+ " BSD-2-Clause" ,
9+ " BSD-3-Clause" ,
10+ " 0BSD" ,
11+ " ISC" ,
12+ " Zlib" ,
13+ " Unicode-3.0" ,
14+ " Unicode-DFS-2016" ,
15+ " MPL-2.0" ,
16+ " GPL-3.0-or-later" ,
17+ " LGPL-2.1-or-later" ,
18+ " LGPL-2.1-or-later WITH GCC-exception-2.0" ,
19+ " CC0-1.0" ,
20+ " Unlicense" ,
21+ " NCSA" ,
22+ " BSL-1.0" ,
23+ " OpenSSL" ,
24+ ]
You can’t perform that action at this time.
0 commit comments