Skip to content

Commit

Permalink
Add macOS warning to no args
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Aug 5, 2023
1 parent d6e1b79 commit 3dea0c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func main() {
if len(os.Args) == 1 || filePath == "" {
printLogo()
printVersion()
if runtime.GOOS == "darwin" {
fmt.Println(ansi("\nWarning:", yellow, bold), "Shortcuts compiled on this platform will not run on iOS 15+ or macOS 12+.")
}
fmt.Printf("\n")
args.PrintUsage()
os.Exit(1)
Expand Down

0 comments on commit 3dea0c9

Please sign in to comment.