shithub: psxe

Download patch

ref: 419eb2cff410d31b4bf05ec630eb7bac7fc8f1bb
parent: b2de4e5ac71225ffaa294e5de60aa2bcf6ccbb39
author: allkern <lisandroaalarcon@gmail.com>
date: Thu Jun 22 19:09:31 EDT 2023

Fetch tags before building on all platforms

--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -16,6 +16,7 @@
            brew install dylibbundler
     - name: Build and pack PSXE
       run: |
+           git fetch --all --tags
            ./build.sh
            tar -czf psxe-macos-latest.tar.gz psxe.app
     - uses: actions/upload-artifact@v3
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -16,11 +16,12 @@
            sudo apt install libsdl2-dev
     - name: Build PSXE
       run: |
+           git fetch --all --tags
            make
     - name: Pack executable
-      run:
-           chmod +x ./bin/psxe &&
-           mv ./bin/psxe ./ &&
+      run: |
+           chmod +x ./bin/psxe
+           mv ./bin/psxe ./
            tar -czf psxe-ubuntu-latest.tar.gz ./psxe
     - uses: actions/upload-artifact@v3
       with:
--- a/build-win.ps1
+++ /dev/null
@@ -1,23 +1,0 @@
-$VERSION_TAG = git describe --always --tags --abbrev=0
-$COMMIT_HASH = git rev-parse --short HEAD
-$OS_INFO = (Get-WMIObject win32_operatingsystem).caption + " " + (Get-WMIObject win32_operatingsystem).version + " " + (Get-WMIObject win32_operatingsystem).OSArchitecture
-
-$SDL2_DIR = "SDL2-2.26.5\x86_64-w64-mingw32"
-$PSX_DIR = "."
-
-mkdir -Force -Path bin > $null
-
-gcc -I"`"$($PSX_DIR)`"" `
-    -I"`"$($SDL2_DIR)\include`"" `
-    -I"`"$($SDL2_DIR)\include\SDL2`"" `
-    "psx\*.c" `
-    "psx\dev\*.c" `
-    "frontend\*.c" `
-    -o "bin\psxe.exe" `
-    -DREP_VERSION="`"$($VERSION_TAG)`"" `
-    -DREP_COMMIT_HASH="`"$($COMMIT_HASH)`"" `
-    -DOS_INFO="`"$($OS_INFO)`"" `
-    -L"`"$($SDL2_DIR)\lib`"" `
-    -m64 -lSDL2main -lSDL2 -Wno-overflow `
-    -Wall -pedantic -DLOG_USE_COLOR `
-    -ffast-math -Ofast
\ No newline at end of file
--- a/build-win32.ps1
+++ b/build-win32.ps1
@@ -1,3 +1,5 @@
+git fetch --all --tags
+
 $VERSION_TAG = git describe --always --tags --abbrev=0
 $COMMIT_HASH = git rev-parse --short HEAD
 $OS_INFO = (Get-WMIObject win32_operatingsystem).caption + " " + (Get-WMIObject win32_operatingsystem).version + " " + (Get-WMIObject win32_operatingsystem).OSArchitecture
--- a/build-win64.ps1
+++ b/build-win64.ps1
@@ -1,3 +1,5 @@
+git fetch --all --tags
+
 $VERSION_TAG = git describe --always --tags --abbrev=0
 $COMMIT_HASH = git rev-parse --short HEAD
 $OS_INFO = (Get-WMIObject win32_operatingsystem).caption + " " + (Get-WMIObject win32_operatingsystem).version + " " + (Get-WMIObject win32_operatingsystem).OSArchitecture
--