forked from doctorguile/pyqtggpo
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathMakefile
74 lines (65 loc) · 4.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
PYUIC = pyuic4
PYRCC = pyrcc4
UIFILES := $(wildcard ggpo/gui/ui/*.ui)
UIPYFILES := $(UIFILES:.ui=_ui.py)
QRCFILES := $(wildcard ggpo/resources/*.qrc)
QRCPYFILES := $(QRCFILES:.qrc=_rc.py)
%_ui.py: %.ui
$(PYUIC) $< --output $@
%_rc.py : %.qrc
$(PYRCC) $< -o $@
.PHONY: all ui qrc clean
all: ui qrc
ui: $(UIPYFILES)
qrc: $(QRCPYFILES)
clean:
rm -f $(UIPYFILES) $(UIPYFILES:.py=.pyc) $(QRCPYFILES:.py=.pyc)
linux: cleanbuild
rm -rf /tmp/FightCade/
mkdir /tmp/FightCade/
cp -R * /tmp/FightCade/
rm -rf /tmp/FightCade/ggpo/resources/assets/ /tmp/FightCade/Makefile /tmp/FightCade/savestates/.git /tmp/FightCade/ggpo/scripts/Info.plist /tmp/FightCade/ggpo/scripts/applet
cd /tmp ; tar cvfz fightcade-linux-v0`cat FightCade/VERSION`.tar.gz FightCade
rm -rf /tmp/FightCade
rm -rf cheats flyers previews recordings ROMs screenshots titles
ls -laht /tmp/fightcade-linux-v0* |head -n 1
win: cleanbuild
../python-windows-packager/package.sh ./ggpofba.py ggpofba
cp dist/ggpofba.exe .
../python-windows-packager/package.sh ./main.py fightcade
cp dist/fightcade.exe ./FightCade.exe
rm -rf build dist
rm -rf /tmp/FightCade/
mkdir /tmp/FightCade/
cp -R assets config FightCade.exe ggpofba.exe ggpofba-ng.exe ggponet.dll kailleraclient.dll LICENSE VERSION cheats flyers previews recordings ROMs savestates screenshots titles /tmp/FightCade/
rm -rf /tmp/FightCade/savestates/.git /tmp/FightCade/ggpo/scripts/Info.plist /tmp/FightCade/ggpo/scripts/applet
cd /tmp ; zip -r fightcade-win32-v0`cat FightCade/VERSION`.zip FightCade
rm -rf /tmp/FightCade FightCade.exe fightcade.spec ggpofba.exe ggpofba.spec
rm -rf cheats flyers previews recordings ROMs screenshots titles
ls -laht /tmp/fightcade-win32-v0* |head -n 1
osx: cleanbuild
rm -rf /tmp/FightCade.app/
osacompile -e 'on open location quark' -e 'do shell script "/bin/bash /Applications/FightCade.app/Contents/MacOS/ggpofba.sh \"" & quark & "\" && kill $$PPID ; exit 0"' -e 'end open location' -e 'do shell script "/bin/bash /Applications/FightCade.app/Contents/MacOS/fightcade && kill $$PPID ; exit 0"' -o /tmp/FightCade.app
tar zxvfp ../Fightcade-app-skeleton-osx.tgz -C /tmp/
mkdir -p /tmp/FightCade.app/Contents/MacOS/
cp -R * /tmp/FightCade.app/Contents/MacOS/
cp ggpo/resources/img/icon.icns /tmp/FightCade.app/Contents/Resources/
cp ggpo/scripts/Info.plist /tmp/FightCade.app/Contents/
cp ggpo/scripts/applet /tmp/FightCade.app/Contents/MacOS/applet
chmod 755 /tmp/FightCade.app/Contents/MacOS/applet /Applications/FightCade.app/Contents/MacOS/ggpofba.sh /Applications/FightCade.app/Contents/MacOS/fightcade
rm -rf /tmp/FightCade.app/Contents/MacOS/ggpo/resources/assets/ /tmp/FightCade.app/Contents/MacOS/linux-install.sh /tmp/FightCade.app/Contents/MacOS/Makefile /tmp/FightCade.app/savestates/.git /tmp/FightCade.app/Contents/MacOS/ggpo/scripts/Info.plist /tmp/FightCade.app/Contents/MacOS/ggpo/scripts/applet
sed -i '' -e 's/nVidSelect 1/nVidSelect 3/' /tmp/FightCade.app/Contents/MacOS/config/ggpofba-ng.default.ini
#pyinstaller --onefile -w -i ggpo/resources/img/icon.icns -n fightcade.bin --runtime-hook ggpo/scripts/runtimehook.py main.py
#cp dist/fightcade.bin /tmp/FightCade.app/Contents/MacOS/
CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate" codesign --force --deep --sign "Developer ID Application: Pau OLIVA FORA (4EB7HA9B4S)" /tmp/FightCade.app
cd /tmp ; /Users/pau/Development/yoursway-create-dmg/create-dmg --icon FightCade.app 160 205 --volname 'FightCade Installer' --background /Users/pau/Development/pyqtggpo/ggpo/resources/img/osx-installer-bg.png --icon-size 128 --app-drop-link 380 205 --window-size 600 450 fightcade-osx64-v0`cat /Users/pau/Development/pyqtggpo/VERSION`.dmg FightCade.app
rm -rf /tmp/FightCade.app
rm -rf cheats flyers previews recordings ROMs screenshots titles build dist fightcade.bin.spec
ls -laht /tmp/fightcade-osx64-v0* |head -n 1
cleanbuild:
rm -rf build dist fightcade.bin.spec
rm -rf cheats flyers previews recordings ROMs screenshots titles
mkdir cheats flyers previews recordings ROMs screenshots titles
touch ggpo/__init__.pyc
find . -iname "*.pyc" |xargs -n 1 rm
git submodule foreach git pull