Added hyperlink for sponsor (#3958)

* Added hyperlink for sponsor

* Updated the changelog

* removed whitespace
This commit is contained in:
Anshuman 2024-12-20 12:47:42 +05:30 committed by GitHub
commit f61316c18d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -76,6 +76,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added hyperlink for sponsor by @ansxuman in [#3958](https://github.com/wailsapp/wails/pull/3958)
- Support of linux packaging of deb,rpm, and arch linux packager builds by
@atterpac in [#3909](https://github.com/wailsapp/wails/3909)
- Added Support for darwin universal builds and packages by

View file

@ -1,10 +1,12 @@
package main
import (
"github.com/pkg/browser"
"fmt"
"os"
"runtime/debug"
"github.com/pkg/browser"
"github.com/pterm/pterm"
"github.com/samber/lo"
@ -99,7 +101,10 @@ func printFooter() {
},
}
printer.Println("If Wails is useful to you or your company, please consider sponsoring the project: " + pterm.LightYellow("wails3 sponsor"))
sponsorURL := "https://github.com/sponsors/leaanthony"
// OSC 8 sequence for clickable link: \x1b]8;;url\x1b\\text\x1b]8;;\x1b\\
linkText := fmt.Sprintf("\x1b]8;;%s\x1b\\%s\x1b]8;;\x1b\\", sponsorURL, "wails3 sponsor")
printer.Println("If Wails is useful to you or your company, please consider sponsoring the project: " + pterm.LightYellow(linkText))
}
}