Skip to content

Commit 3b2bbe2

Browse files
committed
Merge remote-tracking branch 'origin/main' into fuckit
# Conflicts: # .github/workflows/linux-build.yml
2 parents 4d7d147 + 718f091 commit 3b2bbe2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+621
-287
lines changed

.github/scripts/create-app.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ cp pcsx-redux.icns ${APPROOT}/Contents/Resources/AppIcon.icns
4040
# Remove source images that were used to create the app icon.
4141
rm -rfv ${APPROOT}/Contents/Resources/share/icons
4242

43+
# Remove temporary image files
44+
rm -rfv pcsx-redux.iconset pcsx-redux.icns
45+
4346
# Create the required Info.plist and version.plist files
4447
# with the minimum information.
4548
PlistBuddy ${APPROOT}/Contents/Info.plist -c "add CFBundleDisplayName string ${APP}"
@@ -54,6 +57,8 @@ PlistBuddy ${APPROOT}/Contents/Info.plist -c "add CFBundleInfoDictionaryVersion
5457
PlistBuddy ${APPROOT}/Contents/Info.plist -c "add CFBundleName string ${APP}"
5558
PlistBuddy ${APPROOT}/Contents/Info.plist -c "add CFBundlePackageType string APPL"
5659
PlistBuddy ${APPROOT}/Contents/Info.plist -c "add NSHumanReadableCopyright string Copyright PCSX-Redux Authors"
60+
PlistBuddy ${APPROOT}/Contents/Info.plist -c "add LSApplicationCategoryType string public.app-category.games"
61+
PlistBuddy ${APPROOT}/Contents/Info.plist -c "add LSSupportsGameMode bool true"
5762

5863
PlistBuddy ${APPROOT}/Contents/Info.plist -c "add LSMinimumSystemVersion string 10.15"
5964

.github/workflows/linux-aur.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@ jobs:
1313
image: archlinux:latest
1414
steps:
1515
- name: Install dependencies
16-
run: |
16+
run: |
1717
pacman -Syu --noconfirm --needed capstone curl ffmpeg freetype2 glfw libuv sdl2 zlib git make pkg-config sudo base-devel pacman-contrib
18+
- uses: actions/checkout@v3
19+
with:
20+
set-safe-directory: true
1821
- name: Create builduser
1922
run: |
2023
useradd builduser -m
2124
passwd -d builduser
2225
- name: Build AUR Package
2326
run: |
24-
git clone https://aur.archlinux.org/pcsx-redux-git.git
25-
chown -R builduser:builduser pcsx-redux-git
26-
cd pcsx-redux-git
27+
mkdir /build
28+
git clone https://aur.archlinux.org/pcsx-redux-git.git /build/pcsx-redux-git
29+
chown -R builduser:builduser /build
30+
cd /build/pcsx-redux-git
31+
sed -i s,git+https://github.com/grumpycoders/pcsx-redux.git,git+file://$GITHUB_WORKSPACE#commit=$GITHUB_SHA,g PKGBUILD
2732
sudo -u builduser makepkg

.github/workflows/linux-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
container:
1313
image: ghcr.io/grumpycoders/pcsx-redux-build:latest
14+
options: --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined
1415
env:
1516
TEST_RESULTS: /tmp/test-results
1617
steps:
@@ -45,6 +46,7 @@ jobs:
4546
npx @appdistrib/cli buildid > buildid.json
4647
git config --global --add safe.directory /__w/pcsx-redux/pcsx-redux
4748
make install install-openbios DESTDIR=AppDir/usr
49+
sed -i s:/usr/bin/:: AppDir/usr/share/applications/pcsx-redux.desktop
4850
echo '{' > version.json
4951
echo ' "version": "'`git rev-parse HEAD | cut -c 1-8`'",' >> version.json
5052
echo ' "buildId": '`jq -r .buildid buildid.json`',' >> version.json
@@ -62,7 +64,8 @@ jobs:
6264
echo ' ]' >> version.json
6365
echo '}' >> version.json
6466
cp version.json AppDir/usr/share/pcsx-redux/resources
65-
appimage-builder --skip-tests
67+
linuxdeploy -v 3 --appdir=AppDir -e AppDir/usr/bin/pcsx-redux -d AppDir/usr/share/applications/pcsx-redux.desktop -i AppDir/usr/share/icons/hicolor/256x256/apps/pcsx-redux.png -o appimage
68+
mv PCSX-Redux-x86_64.AppImage PCSX-Redux-HEAD-x86_64.AppImage
6669
- run: |
6770
make -C src/mips/openbios clean
6871
make -C src/mips/tests -j 2 PCSX_TESTS=true

.github/workflows/linux-toolchain.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
- name: Build OpenBIOS with it
2727
run: make -C src/mips/openbios -j 6 all
2828
- name: Build psyqo examples with it
29-
run: for d in src/mips/psyqo/examples/* src/mips/psyqo-paths/examples/* src/mips/psyqo-lua/examples/* ; do make -C $d -j 6 all TEST=true ; done
29+
run: for d in src/mips/psyqo/examples/* src/mips/psyqo-paths/examples/* src/mips/psyqo-lua/examples/*; do if [ -d "$d" ]; then make -C "$d" -j 6 all TEST=true; fi; done

.github/workflows/macos-toolchain.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jobs:
1919
- uses: n1hility/cancel-previous-runs@v2
2020
with:
2121
token: ${{ secrets.GITHUB_TOKEN }}
22+
- name: install dependencies
23+
run: brew install --verbose nikitabobko/tap/brew-install-path
2224
- name: build mips binutils
23-
run: brew install ./tools/macos-mips/mipsel-none-elf-binutils.rb --debug
25+
run: brew install-path --verbose ./tools/macos-mips/mipsel-none-elf-binutils.rb
2426
- name: build mips gcc
25-
run: brew install ./tools/macos-mips/mipsel-none-elf-gcc.rb --debug
27+
run: brew install-path --verbose ./tools/macos-mips/mipsel-none-elf-gcc.rb
2628
- name: build openbios
2729
run: make -C ./src/mips/openbios

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fb.bat
5858

5959
# macos files
6060
.DS_store
61-
61+
PCSX-Redux.app
6262

6363
# Savestate files
6464
*.sstate

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ install-openbios: openbios
270270
appimage:
271271
rm -rf AppDir
272272
DESTDIR=AppDir/usr $(MAKE) $(MAKEOPTS) install
273-
appimage-builder --skip-tests
273+
sed -i s:/usr/bin/:: AppDir/usr/share/applications/pcsx-redux.desktop
274+
linuxdeploy -v 3 --appdir=AppDir -e AppDir/usr/bin/pcsx-redux -d AppDir/usr/share/applications/pcsx-redux.desktop -i AppDir/usr/share/icons/hicolor/256x256/apps/pcsx-redux.png -o appimage
275+
mv PCSX-Redux-x86_64.AppImage PCSX-Redux-HEAD-x86_64.AppImage
274276

275277
ifeq ($(CROSS),arm64)
276278
third_party/luajit/src/libluajit.a:

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ You need MacOS Catalina or later with the latest XCode to build, as well as a fe
130130

131131
Compiling OpenBIOS will require a mips compiler, that you can generate using the following commands:
132132
```bash
133-
brew install ./tools/macos-mips/mipsel-none-elf-binutils.rb
134-
brew install ./tools/macos-mips/mipsel-none-elf-gcc.rb
133+
brew install nikitabobko/tap/brew-install-path
134+
brew install-path ./tools/macos-mips/mipsel-none-elf-binutils.rb
135+
brew install-path ./tools/macos-mips/mipsel-none-elf-gcc.rb
135136
```
136137

137138
Then, you can compile OpenBIOS using `make -C ./src/mips/openbios`.

dockermake-cross.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ ROOT=$(pwd)
77
cd $CWD
88

99
docker pull ghcr.io/grumpycoders/pcsx-redux-build-cross:latest
10-
docker run --rm --env-file ${ROOT}/cross-env.list -i -w/project${CWD#$ROOT} -v "${ROOT}:/project" -u `id -u`:`id -g` ghcr.io/grumpycoders/pcsx-redux-build-cross make CROSS=arm64 $@
10+
docker run --rm --env-file ${ROOT}/cross-env.list -i -w/project${CWD#$ROOT} -v "${ROOT}:/project" -u `id -u`:`id -g` --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined ghcr.io/grumpycoders/pcsx-redux-build-cross make CROSS=arm64 $@

dockermake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ ROOT=$(pwd)
77
cd $CWD
88

99
docker pull ghcr.io/grumpycoders/pcsx-redux-build:latest
10-
docker run --rm --env-file ${ROOT}/env.list -i -w/project${CWD#$ROOT} -v "${ROOT}:/project" -u `id -u`:`id -g` ghcr.io/grumpycoders/pcsx-redux-build:latest make $@
10+
docker run --rm --env-file ${ROOT}/env.list -i -w/project${CWD#$ROOT} -v "${ROOT}:/project" -u `id -u`:`id -g` --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined ghcr.io/grumpycoders/pcsx-redux-build:latest make $@

0 commit comments

Comments
 (0)