-
Notifications
You must be signed in to change notification settings - Fork 15
155 lines (148 loc) · 6.48 KB
/
py.yml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: Python package
on: [push, pull_request]
jobs:
test-linux:
name: Linux build and test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt update --fix-missing
sudo apt install python-is-python3
sudo apt install python3-pip
sudo apt install libsndfile-dev
sudo apt install git
sudo apt install ffmpeg
- name: Install pop-fe
run: |
./pop-fe.py --install
- name: Test building a PS3 package
run: |
./pop-fe.py --ps3-pkg=vs.pkg --snd0=testimages/vs/sine.wav --cover=testimages/vs/blank.png --pic0=testimages/vs/blank.png --pic1=testimages/vs/blank.png testimages/vs/vs.cue
- name: Test building a multidisc PS3 package
run: |
./pop-fe.py --ps3-pkg=vs.pkg --snd0=testimages/vs/sine.wav --cover=testimages/vs/blank.png --pic0=testimages/vs/blank.png --pic1=testimages/vs/blank.png testimages/vs/vs.cue testimages/vs/vs.cue
- name: Test building a multidisc PSP EBOOT
run: |
mkdir -p PSP/GAME
./pop-fe.py --psp-dir=. --snd0=testimages/vs/sine.wav --cover=testimages/vs/blank.png --pic0=testimages/vs/blank.png --pic1=testimages/vs/blank.png testimages/vs/vs.cue testimages/vs/vs.cue
- name: Test building a multidisc PSP EBOOT overriding the GAME_ID
run: |
mkdir -p PSP/GAME
./pop-fe.py --psp-dir=. --game_id=SLPS01623 --snd0=testimages/vs/sine.wav --cover=testimages/vs/blank.png --pic0=testimages/vs/blank.png --pic1=testimages/vs/blank.png testimages/vs/vs.cue testimages/vs/vs.cue
stat ./PSP/GAME/SLPS01623/EBOOT.PBP
build-windows:
name: Windows build
runs-on: windows-2022
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install required Python packages
run: |
pip install pillow
pip install pycryptodome
pip install requests
pip install pycdlib
pip install ecdsa
pip install pyinstaller
pip install pygubu
pip install rarfile
pip install tkinterDnD2
pip install git+https://github.com/nficano/pytube
pip install opencv-contrib-python
pip install scikit-learn
pip install scipy
- name: Build PSL1GHT
run: |
git clone http://github.com/sahlberg/PSL1GHT
cd PSL1GHT/tools/ps3py
git checkout origin/use-python3
make
cd ../../..
pyinstaller PSL1GHT/tools/ps3py/pkg.py
- name: Build CUE2CU2
run: |
git clone https://github.com/NRGDEAD/Cue2cu2.git
cp Cue2cu2/cue2cu2.py .
pyinstaller cue2cu2.py
- name: Build binmerge
run: |
git clone https://github.com/putnam/binmerge.git bm
cp bm/binmerge .
pyinstaller binmerge
- name: Build sign3
run: |
pyinstaller sign3.py
- name: Install ATRACDENC
run: |
Invoke-WebRequest -OutFile atracdenc-x86_0.0.3.zip https://github.com/dcherednik/atracdenc/releases/download/0.0.3/atracdenc-x86_0.0.3.zip
unzip -j atracdenc-x86_0.0.3 -x README.TXT
- name: Install FFMPEG
run: |
Invoke-WebRequest -OutFile ffmpeg-release-essentials.zip https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip
unzip -j ffmpeg-release-essentials.zip -x */doc/* -x */presets/* -x */README.txt -x */LICENSE -x */bin/ffplay.exe -x */bin/ffprobe.exe
- name: Build pop-fe
run: |
pyinstaller --add-data "PS3LOGO.DAT;." pop-fe.py
- name: Build pop-fe-ps3
run: |
pyinstaller --add-data "PS3LOGO.DAT;." --add-data "pop-fe-ps3.ui;." pop-fe-ps3.py --hidden-import pop-fe --hidden-import pygubu.builder.tkstdwidgets --hidden-import pygubu.builder.ttkstdwidgets --hidden-import pygubu.builder.widgets.pathchooserinput --collect-all tkinterdnd2
- name: Build pop-fe-psp
run: |
pyinstaller --add-data "PS3LOGO.DAT;." --add-data "pop-fe-psp.ui;." pop-fe-psp.py --hidden-import pop-fe --hidden-import pygubu.builder.tkstdwidgets --hidden-import pygubu.builder.ttkstdwidgets --hidden-import pygubu.builder.widgets.pathchooserinput
- name: Update dist/pop-fe
run: |
mkdir dist/pop-fe/atracdenc
mkdir dist/pop-fe/atracdenc/src
cp dist/binmerge/binmerge.exe dist/pop-fe/.
cp dist/cue2cu2/cue2cu2.exe dist/pop-fe/.
cp dist/pkg/pkg.exe dist/pop-fe/.
cp dist/pkg/pkgcrypt*.pyd dist/pop-fe/.
cp dist/sign3/sign3.exe dist/pop-fe/.
cp atracdenc.exe dist/pop-fe/atracdenc/src/.
cp ffmpeg.exe dist/pop-fe/.
mkdir dist/pop-fe/libcrypt
cp libcrypt/*.* dist/pop-fe/libcrypt
mkdir dist/pop-fe/ppf
cp ppf/*.* dist/pop-fe/ppf
mkdir dist/pop-fe/ps3configs
cp -r ps3configs/* dist/pop-fe/ps3configs
- name: Update dist/pop-fe-ps3
run: |
mkdir dist/pop-fe-ps3/atracdenc
mkdir dist/pop-fe-ps3/atracdenc/src
cp dist/binmerge/binmerge.exe dist/pop-fe-ps3/.
cp dist/cue2cu2/cue2cu2.exe dist/pop-fe-ps3/.
cp -r -Force dist/pkg/* dist/pop-fe-ps3/.
cp dist/pop-fe/pop-fe.exe dist/pop-fe-ps3/.
cp pop-fe-psp.ui dist/pop-fe-ps3/_internal/.
cp dist/pop-fe-psp/pop-fe-psp.exe dist/pop-fe-ps3/.
cp dist/sign3/sign3.exe dist/pop-fe-ps3/.
cp atracdenc.exe dist/pop-fe-ps3/atracdenc/src/.
cp ffmpeg.exe dist/pop-fe-ps3/.
cp dist/pop-fe-ps3/_internal/PS3LOGO.DAT dist/pop-fe-ps3/.
mkdir dist/pop-fe-ps3/libcrypt
cp libcrypt/*.* dist/pop-fe-ps3/libcrypt
mkdir dist/pop-fe-ps3/ppf
cp ppf/*.* dist/pop-fe-ps3/ppf
mkdir dist/pop-fe-ps3/ps3configs
cp -r ps3configs/* dist/pop-fe-ps3/ps3configs
- name: Upload pop-fe-ui artefact
uses: actions/upload-artifact@v3
with:
name: pop-fe-ui
path: dist/pop-fe-ps3