https://github.com/lusingander/fyne-credits-generator
Automatically generate credits(licenses) window for the Fyne application
https://github.com/lusingander/fyne-credits-generator
credits fyne go license license-management
Last synced: 9 days ago
JSON representation
Automatically generate credits(licenses) window for the Fyne application
- Host: GitHub
- URL: https://github.com/lusingander/fyne-credits-generator
- Owner: lusingander
- License: mit
- Created: 2020-02-09T06:41:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T14:24:27.000Z (29 days ago)
- Last Synced: 2025-03-25T15:33:55.886Z (29 days ago)
- Topics: credits, fyne, go, license, license-management
- Language: Go
- Homepage:
- Size: 1.66 MB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fyne-credits-generator
====Automatically generate credits window for the [Fyne](https://fyne.io/) application.
## Installation
```
$ go install github.com/lusingander/fyne-credits-generator/cmd/fyne-credits-generator@latest
```## Usage
First, execute `fyne-credits-generator` command in the directory where go.mod is located.
```
$ cd
$ fyne-credits-generator > credits.go
```Then, all you have to do is call `CreditsWindow` function in your Fyne application, like this:
```go
button := widget.NewButton("Show credits", func() {
CreditsWindow(fyne.CurrentApp(), fyne.NewSize(800, 400)).Show()
})
```
And you can show a window like this:
See the [sample application](./cmd/sample) for an example.
More info:
```
$ fyne-credits-generator -help
```### old style
This generate code for Fyne v2.0 or later.
If you want to generate code for Fyne v1.4 or earlier, you can specify the `target`.The components used by 1.4 and later are different from those used by 1.3 and earlier. So if you want to use Fyne v1.3.x or earlier, specify `target=1.3`.
```
$ fyne-credits-generator -target=1.3 > credits.go
$ fyne-credits-generator -target=1.4 > credits.go
```
## Requirements
Application must use go modules for dependency management.
## Note
This application uses [gocredits](https://github.com/Songmu/gocredits) to collect LICENSE files.