bass 4 mac uses .so files, not .dylib

This commit is contained in:
Headshot 2021-01-06 21:04:16 -04:30
parent c53991d5da
commit 5059f2a854
2 changed files with 5 additions and 3 deletions

View File

@ -5,9 +5,7 @@ app = QtGui.QApplication(sys.argv)
osname = platform.system()
bassdll = "bass.dll"
if osname == "Darwin":
bassdll = "libbass.dylib"
elif osname == "Linux":
if osname != "Windows":
bassdll = "libbass.so"
debugmode = len(sys.argv) > 1 and sys.argv[1] == "debug"

View File

@ -70,6 +70,10 @@ zip_ref = zipfile.ZipFile(BASSOPUSZIP, 'r')
zip_ref.extract(BASSOPUSDLL)
zip_ref.close()
if platform.system() == "Darwin":
os.rename(BASSDLL, "libbass.so")
os.rename(BASSOPUSDLL, "libbassopus.so")
print "installing apng"
pip_install("apng")