diff --git a/.gitignore b/.gitignore index cb452a3..49b3f25 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/lure \ No newline at end of file +/lure +/dist/ \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..881c6ca --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,69 @@ +before: + hooks: + - go mod tidy +builds: + - id: lure + env: + - CGO_ENABLED=0 + binary: lure + goos: + - linux + goarch: + - 386 + - amd64 + - arm + - arm64 + - riscv64 +archives: + - replacements: + 386: i386 + amd64: x86_64 + arm64: aarch64 +nfpms: + - id: lure + file_name_template: '{{.PackageName}}-{{.Version}}-{{.Os}}-{{.Arch}}' + description: "Linux User REpository" + replacements: + 386: i386 + amd64: x86_64 + arm64: aarch64 + homepage: 'https://gitea.arsenm.dev/Arsen6331/lure' + maintainer: 'Arsen Musyaelyan ' + license: GPLv3 + formats: + - apk + - deb + - rpm +aurs: + - name: lure-bin + homepage: 'https://gitea.arsenm.dev/Arsen6331/lure' + description: "Linux User REpository" + maintainers: + - 'Arsen Musyaelyan ' + license: GPLv3 + private_key: '{{ .Env.AUR_KEY }}' + git_url: 'ssh://aur@aur.archlinux.org/lure-bin.git' + provides: + - lure + conflicts: + - lure + depends: + - sudo + - pacman + package: |- + # binaries + install -Dm755 "./lure" "${pkgdir}/usr/bin/lure" +release: + gitea: + owner: Arsen6331 + name: lure +gitea_urls: + api: 'https://gitea.arsenm.dev/api/v1/' + download: 'https://gitea.arsenm.dev' + skip_tls_verify: false +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc \ No newline at end of file diff --git a/go.mod b/go.mod index 8f3a773..b21d78f 100644 --- a/go.mod +++ b/go.mod @@ -15,6 +15,7 @@ require ( go.arsenm.dev/logger v0.0.0-20220630204155-5ba23e583f0a golang.org/x/exp v0.0.0-20220916125017-b168a2c6b86b golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f + gopkg.in/yaml.v3 v3.0.1 mvdan.cc/sh/v3 v3.5.1 ) @@ -73,5 +74,4 @@ require ( golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect golang.org/x/text v0.3.7 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect )