FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 6b0896d2 authored by Silas S. Brown's avatar Silas S. Brown
Browse files

Mac: fix launcher for macOS 14

parent 0bd9f2b3
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
export PATH="$PATH:/usr/local/bin" # in case lame etc is there
cd "${BASH_SOURCE%/*}/../.." # needed on macOS 14, possibly 13
if sw_vers 2>/dev/null|grep ^ProductVersion.*1[2-9]; then # macOS 12+
if test $(python3 -c 'import tkinter,sys;print(sys.version_info[:3]>=(3,10,1))' 2>/dev/null) = "True"; then exec python3 gradint.py; fi
osascript -e "tell application (path to frontmost application as text) to display dialog \"macOS 12 bundled a broken version of the GUI libraries: please install Python 3 from python.org before running Gradint\" buttons {\"OK\"} with icon stop"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment