Skip to content

Commit 33fb864

Browse files
Merge pull request #5 from canaria-computer/dev2
feat: Package Manager Setup
2 parents b7a4651 + f4c3faf commit 33fb864

File tree

5 files changed

+242
-21
lines changed

5 files changed

+242
-21
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ jobs:
6868
version: "~> v2"
6969
args: release --clean
7070
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

.goreleaser.yaml

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# .goreleaser.yaml
21
version: 2
32

43
before:
@@ -17,40 +16,62 @@ builds:
1716
- -X github.com/canaria-computer/down-force/cmd.version={{.Version}}
1817
env:
1918
- CGO_ENABLED=0
20-
goos:
21-
- linux
22-
- darwin
23-
- windows
24-
goarch:
25-
- amd64
26-
- arm64
27-
19+
goos: [linux, darwin, windows]
20+
goarch: [amd64, arm64]
2821

2922
archives:
3023
- id: default
3124
name_template: >-
32-
{{ .ProjectName }}_
33-
{{- .Version }}_
34-
{{- .Os }}_
35-
{{- .Arch }}
25+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
3626
format_overrides:
3727
- goos: windows
38-
format: zip
28+
formats: [zip]
3929
files:
4030
- README.md
41-
- LICENSE
31+
- LICENSE*
32+
33+
brews:
34+
- name: down-force
35+
repository:
36+
owner: canaria-computer
37+
name: homebrew-tap
38+
homepage: https://github.com/canaria-computer/down-force
39+
description: Evidence collection CLI application for phishing and illegal copyright infringement websites
40+
# GoReleaser側は文字列想定なので、Homebrewの any_of 構造はそのまま渡せません
41+
license: "LicenseRef-PolyForm-Strict-1.0.0 OR LicenseRef-PolyForm-Internal-Use-1.0.0"
42+
caveats: |
43+
This software is dual-licensed under PolyForm Strict License 1.0.0 and PolyForm Internal Use License 1.0.0.
44+
See LICENSE files for details.
45+
46+
scoops:
47+
- name: down-force
48+
repository:
49+
owner: canaria-computer
50+
name: scoop-bucket
51+
homepage: https://github.com/canaria-computer/down-force
52+
description: Evidence collection CLI application for phishing and illegal copyright infringement websites
53+
license: "PolyForm-Strict-1.0.0 | PolyForm-Internal-Use-1.0.0"
54+
55+
nfpms:
56+
- file_name_template: "{{ .ConventionalFileName }}"
57+
maintainer: "canaria-collection <121685177+canaria-computer@users.noreply.github.com>"
58+
description: Evidence collection CLI application for phishing and illegal copyright infringement websites
59+
license: "LicenseRef-PolyForm-Strict-1.0.0 OR LicenseRef-PolyForm-Internal-Use-1.0.0"
60+
formats: [deb, rpm, apk]
4261

4362
changelog:
4463
sort: asc
4564
filters:
46-
exclude:
47-
- '^docs:'
48-
- '^test:'
49-
- '^chore:'
65+
exclude: ['^docs:', '^test:', '^chore:']
5066

5167
release:
5268
github:
5369
owner: canaria-computer
5470
name: down-force
5571
draft: false
5672
prerelease: auto
73+
header: |
74+
## License Notice
75+
This software is available under dual license:
76+
- https://polyformproject.org/licenses/strict/1.0.0
77+
- https://polyformproject.org/licenses/internal-use/1.0.0

LICENSE-INTERNAL.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# PolyForm Internal Use License 1.0.0
2+
3+
<https://polyformproject.org/licenses/internal-use/1.0.0>
4+
5+
## Acceptance
6+
7+
In order to get any license under these terms, you must agree
8+
to them as both strict obligations and conditions to all
9+
your licenses.
10+
11+
## Copyright License
12+
13+
The licensor grants you a copyright license for the software
14+
to do everything you might do with the software that would
15+
otherwise infringe the licensor's copyright in it for any
16+
permitted purpose. However, you may only make changes or
17+
new works based on the software according to [Changes and New
18+
Works License](#changes-and-new-works-license), and you may
19+
not distribute the software.
20+
21+
## Changes and New Works License
22+
23+
The licensor grants you an additional copyright license to
24+
make changes and new works based on the software for any
25+
permitted purpose.
26+
27+
## Patent License
28+
29+
The licensor grants you a patent license for the software that
30+
covers patent claims the licensor can license, or becomes able
31+
to license, that you would infringe by using the software.
32+
33+
## Fair Use
34+
35+
You may have "fair use" rights for the software under the
36+
law. These terms do not limit them.
37+
38+
## Internal Business Use
39+
40+
Use of the software for the internal business operations of
41+
you and your company is use for a permitted purpose.
42+
43+
## No Other Rights
44+
45+
These terms do not allow you to sublicense or transfer any of
46+
your licenses to anyone else, or prevent the licensor from
47+
granting licenses to anyone else. These terms do not imply
48+
any other licenses.
49+
50+
## Patent Defense
51+
52+
If you make any written claim that the software infringes or
53+
contributes to infringement of any patent, your patent license
54+
for the software granted under these terms ends immediately. If
55+
your company makes such a claim, your patent license ends
56+
immediately for work on behalf of your company.
57+
58+
## Violations
59+
60+
The first time you are notified in writing that you have
61+
violated any of these terms, or done anything with the software
62+
not covered by your licenses, your licenses can nonetheless
63+
continue if you come into full compliance with these terms,
64+
and take practical steps to correct past violations, within
65+
32 days of receiving notice. Otherwise, all your licenses
66+
end immediately.
67+
68+
## No Liability
69+
70+
***As far as the law allows, the software comes as is, without
71+
any warranty or condition, and the licensor will not be liable
72+
to you for any damages arising out of these terms or the use
73+
or nature of the software, under any kind of legal claim.***
74+
75+
## Definitions
76+
77+
The **licensor** is the individual or entity offering these
78+
terms, and the **software** is the software the licensor makes
79+
available under these terms.
80+
81+
**You** refers to the individual or entity agreeing to these
82+
terms.
83+
84+
**Your company** is any legal entity, sole proprietorship,
85+
or other kind of organization that you work for, plus all
86+
organizations that have control over, are under the control of,
87+
or are under common control with that organization. **Control**
88+
means ownership of substantially all the assets of an entity,
89+
or the power to direct its management and policies by vote,
90+
contract, or otherwise. Control can be direct or indirect.
91+
92+
**Your licenses** are all the licenses granted to you for the
93+
software under these terms.
94+
95+
**Use** means anything you do with the software requiring one
96+
of your licenses.

LICENSE-STRICT.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# PolyForm Strict License 1.0.0
2+
3+
<https://polyformproject.org/licenses/strict/1.0.0>
4+
5+
## Acceptance
6+
7+
In order to get any license under these terms, you must agree
8+
to them as both strict obligations and conditions to all
9+
your licenses.
10+
11+
## Copyright License
12+
13+
The licensor grants you a copyright license for the software
14+
to do everything you might do with the software that would
15+
otherwise infringe the licensor's copyright in it for any
16+
permitted purpose, other than distributing the software or
17+
making changes or new works based on the software.
18+
19+
## Patent License
20+
21+
The licensor grants you a patent license for the software that
22+
covers patent claims the licensor can license, or becomes able
23+
to license, that you would infringe by using the software.
24+
25+
## Noncommercial Purposes
26+
27+
Any noncommercial purpose is a permitted purpose.
28+
29+
## Personal Uses
30+
31+
Personal use for research, experiment, and testing for
32+
the benefit of public knowledge, personal study, private
33+
entertainment, hobby projects, amateur pursuits, or religious
34+
observance, without any anticipated commercial application,
35+
is use for a permitted purpose.
36+
37+
## Noncommercial Organizations
38+
39+
Use by any charitable organization, educational institution,
40+
public research organization, public safety or health
41+
organization, environmental protection organization,
42+
or government institution is use for a permitted purpose
43+
regardless of the source of funding or obligations resulting
44+
from the funding.
45+
46+
## Fair Use
47+
48+
You may have "fair use" rights for the software under the
49+
law. These terms do not limit them.
50+
51+
## No Other Rights
52+
53+
These terms do not allow you to sublicense or transfer any of
54+
your licenses to anyone else, or prevent the licensor from
55+
granting licenses to anyone else. These terms do not imply
56+
any other licenses.
57+
58+
## Patent Defense
59+
60+
If you make any written claim that the software infringes or
61+
contributes to infringement of any patent, your patent license
62+
for the software granted under these terms ends immediately. If
63+
your company makes such a claim, your patent license ends
64+
immediately for work on behalf of your company.
65+
66+
## Violations
67+
68+
The first time you are notified in writing that you have
69+
violated any of these terms, or done anything with the software
70+
not covered by your licenses, your licenses can nonetheless
71+
continue if you come into full compliance with these terms,
72+
and take practical steps to correct past violations, within
73+
32 days of receiving notice. Otherwise, all your licenses
74+
end immediately.
75+
76+
## No Liability
77+
78+
***As far as the law allows, the software comes as is, without
79+
any warranty or condition, and the licensor will not be liable
80+
to you for any damages arising out of these terms or the use
81+
or nature of the software, under any kind of legal claim.***
82+
83+
## Definitions
84+
85+
The **licensor** is the individual or entity offering these
86+
terms, and the **software** is the software the licensor makes
87+
available under these terms.
88+
89+
**You** refers to the individual or entity agreeing to these
90+
terms.
91+
92+
**Your company** is any legal entity, sole proprietorship,
93+
or other kind of organization that you work for, plus all
94+
organizations that have control over, are under the control of,
95+
or are under common control with that organization. **Control**
96+
means ownership of substantially all the assets of an entity,
97+
or the power to direct its management and policies by vote,
98+
contract, or otherwise. Control can be direct or indirect.
99+
100+
**Your licenses** are all the licenses granted to you for the
101+
software under these terms.
102+
103+
**Use** means anything you do with the software requiring one
104+
of your licenses.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ toolchain go1.24.11
66

77
require (
88
github.com/charmbracelet/huh v0.8.0
9+
github.com/go-rod/stealth v0.4.9
910
github.com/miekg/dns v1.1.59
1011
github.com/openrdap/rdap v0.9.1
1112
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
@@ -24,7 +25,6 @@ require (
2425
github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 // indirect
2526
github.com/dustin/go-humanize v1.0.1 // indirect
2627
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
27-
github.com/go-rod/stealth v0.4.9 // indirect
2828
github.com/mattn/go-localereader v0.0.1 // indirect
2929
github.com/mitchellh/go-homedir v1.1.0 // indirect
3030
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect

0 commit comments

Comments
 (0)