Skip to content

Commit b50a57d

Browse files
author
Jason Hunter
committed
make build work and update rest to FIFA 17
1 parent 2e784be commit b50a57d

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
SHELL := /bin/bash
2+
DMGBUILD := $(shell command -v dmgbuild 2> /dev/null)
23

34
macbundle:
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

dmg/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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')
2121
appname = os.path.basename(application)
2222

2323
def icon_from_app(app_path):

macholib_patch.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Pillow
22
requests
33
fut
4+
macholib

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Usage:
55
python setup.py py2app
66
"""
7-
7+
import macholib_patch
88
from setuptools import setup
99

1010
APP = ['FIFA 17 Auto Buyer.py']

0 commit comments

Comments
 (0)