diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0c5c5d0 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/fpPS4.lpr b/fpPS4.lpr index a95dda8..5588373 100644 --- a/fpPS4.lpr +++ b/fpPS4.lpr @@ -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 //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'); diff --git a/tag.inc b/tag.inc new file mode 100644 index 0000000..a614936 --- /dev/null +++ b/tag.inc @@ -0,0 +1 @@ +''