Skip to content

Commit

Permalink
make build work and update rest to FIFA 17
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Hunter committed Sep 30, 2016
1 parent 2e784be commit b50a57d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
SHELL := /bin/bash
DMGBUILD := $(shell command -v dmgbuild 2> /dev/null)

macbundle:
rm -rf build dist
python3 setup.py py2app --packages=requests
dmgbuild -s dmg/settings.py "Auto Buyer Installer" dist/AutoBuyerInstaller.dmg
python3 setup.py py2app --packages=requests,PIL
ifdef DMGBUILD
dmgbuild -s dmg/settings.py "Auto Buyer Installer" dist/AutoBuyerInstaller.dmg
endif
2 changes: 1 addition & 1 deletion dmg/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# .. Useful stuff ..............................................................

application = defines.get('app', 'dist/FIFA 16 Auto Buyer.app')
application = defines.get('app', 'dist/FIFA 17 Auto Buyer.app')
appname = os.path.basename(application)

def icon_from_app(app_path):
Expand Down
19 changes: 19 additions & 0 deletions macholib_patch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
Monkey-patch macholib to fix "dyld_find() got an unexpected keyword argument 'loader'".
Add 'import macholib_patch' to the top of set_py2app.py
"""

import macholib
#print("~"*60 + "macholib verion: "+macholib.__version__)
if macholib.__version__ <= "1.7":
print("Applying macholib patch...")
import macholib.dyld
import macholib.MachOGraph
dyld_find_1_7 = macholib.dyld.dyld_find
def dyld_find(name, loader=None, **kwargs):
#print("~"*60 + "calling alternate dyld_find")
if loader is not None:
kwargs['loader_path'] = loader
return dyld_find_1_7(name, **kwargs)
macholib.MachOGraph.dyld_find = dyld_find
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Pillow
requests
fut
macholib
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Usage:
python setup.py py2app
"""

import macholib_patch
from setuptools import setup

APP = ['FIFA 17 Auto Buyer.py']
Expand Down

0 comments on commit b50a57d

Please sign in to comment.