File tree Expand file tree Collapse file tree 5 files changed +27
-4
lines changed
Expand file tree Collapse file tree 5 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 11SHELL := /bin/bash
2+ DMGBUILD := $(shell command -v dmgbuild 2> /dev/null)
23
34macbundle :
45 rm -rf build dist
5- python3 setup.py py2app --packages=requests
6- dmgbuild -s dmg/settings.py " Auto Buyer Installer" dist/AutoBuyerInstaller.dmg
6+ python3 setup.py py2app --packages=requests,PIL
7+ ifdef DMGBUILD
8+ dmgbuild -s dmg/settings.py "Auto Buyer Installer" dist/AutoBuyerInstaller.dmg
9+ endif
Original file line number Diff line number Diff line change 1717
1818# .. Useful stuff ..............................................................
1919
20- application = defines .get ('app' , 'dist/FIFA 16 Auto Buyer.app' )
20+ application = defines .get ('app' , 'dist/FIFA 17 Auto Buyer.app' )
2121appname = os .path .basename (application )
2222
2323def icon_from_app (app_path ):
Original file line number Diff line number Diff line change 1+ """
2+ Monkey-patch macholib to fix "dyld_find() got an unexpected keyword argument 'loader'".
3+
4+ Add 'import macholib_patch' to the top of set_py2app.py
5+ """
6+
7+ import macholib
8+ #print("~"*60 + "macholib verion: "+macholib.__version__)
9+ if macholib .__version__ <= "1.7" :
10+ print ("Applying macholib patch..." )
11+ import macholib .dyld
12+ import macholib .MachOGraph
13+ dyld_find_1_7 = macholib .dyld .dyld_find
14+ def dyld_find (name , loader = None , ** kwargs ):
15+ #print("~"*60 + "calling alternate dyld_find")
16+ if loader is not None :
17+ kwargs ['loader_path' ] = loader
18+ return dyld_find_1_7 (name , ** kwargs )
19+ macholib .MachOGraph .dyld_find = dyld_find
Original file line number Diff line number Diff line change 11Pillow
22requests
33fut
4+ macholib
Original file line number Diff line number Diff line change 44Usage:
55 python setup.py py2app
66"""
7-
7+ import macholib_patch
88from setuptools import setup
99
1010APP = ['FIFA 17 Auto Buyer.py' ]
You can’t perform that action at this time.
0 commit comments