Skip to content

Commit

Permalink
Added hyperlink for sponsor (#3958)
Browse files Browse the repository at this point in the history
* Added hyperlink for sponsor

* Updated the changelog

* removed whitespace
  • Loading branch information
ansxuman authored Dec 20, 2024
1 parent 454d170 commit f61316c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/src/content/docs/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions v3/cmd/wails3/main.go
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -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))
}
}

Expand Down

0 comments on commit f61316c

Please sign in to comment.