This commit is contained in:
Pavel 2022-06-29 14:28:38 +03:00
parent dabe98aeac
commit ffeba7f577
3 changed files with 57 additions and 0 deletions

48
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,48 @@
name: CI
on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
build_windows:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Tag
shell: cmd
working-directory: ./
if: startsWith(github.ref, 'refs/tags/')
run: echo '%GITHUB_REF_NAME%' > tag.inc
- name: Compile
shell: cmd
working-directory: ./
run: lazbuild -B fpPS4.lpi
- name: Pack
shell: cmd
working-directory: ./
if: startsWith(github.ref, 'refs/tags/')
run: |
strip fpPS4.exe
mkdir sce_module
echo "put libSceNgs2.prx here" > sce_module/info.txt
zip -9 -qq -r "fpPS4_%GITHUB_REF_NAME%.zip" "fpPS4.exe" "shaders/*.spv" "sce_module/info.txt"
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./fpPS4_${{ github.ref_name }}.zip

View File

@ -47,6 +47,8 @@ begin
if (ParamCount=0) then
begin
promo:
Writeln('fpPS4 '+{$I tag.inc});
Writeln('Copyright (c) 2021-2022 by Red_prig');
Writeln('PS4 compatibility layer (emulator) on Free Pascal '+{$I %FPCVERSION%});
Writeln(' Parameters:');
Writeln(' -e <name> //decrypted elf or self file name');
@ -476,6 +478,12 @@ begin
//ps4_app.app_path:='C:\Users\User\Desktop\Games\Hue\CUSA05065\';
//ps4_app.app_file:='C:\Users\User\Desktop\Games\Hue\CUSA05065\eboot.bin';
//ps4_app.app_path:='C:\Users\User\Desktop\Games\ps4-homebrew\creeperdiver-ps4\';
//ps4_app.app_file:='C:\Users\User\Desktop\Games\ps4-homebrew\creeperdiver-ps4\eboot.bin';
//ps4_app.app_path:='C:\Users\User\Desktop\Games\ps4-homebrew\SPELUNKYCLASSIC\';
//ps4_app.app_file:='C:\Users\User\Desktop\Games\ps4-homebrew\SPELUNKYCLASSIC\eboot.bin';
//elf:=Telf_file(LoadPs4ElfFromFile('libSceLibcInternal.sprx'));
//elf.Prepare;
//elf.SavePs4ElfToFile('libSceLibcInternal.prx');

1
tag.inc Normal file
View File

@ -0,0 +1 @@
''