Attempt for reproducible builds

* ducible.exe is built with v140_xp toolset and /arch:SSE.
This commit is contained in:
NovaRain
2023-04-17 10:06:46 +08:00
parent 32e9642f90
commit 184af43928
6 changed files with 35 additions and 3 deletions
+1
View File
@@ -26,6 +26,7 @@
*.exe
*.out
*.app
!ducible.exe
# NetBeans
nbproject/private/
+2 -2
View File
@@ -106,7 +106,7 @@ runs:
echo ::group::Build ReleaseXP
#
echo "@echo off" > "$GITHUB_ACTION_PATH/sfall/PostBuild.cmd"
# echo "@echo off" > "$GITHUB_ACTION_PATH/sfall/PostBuild.cmd"
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/sfall/ddraw.sln" -p:Configuration=ReleaseXP -p:Platform=Win32 -p:PlatformToolset=v140_xp
#
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/sfall/ReleaseXP/ddraw.dll")" >> $GITHUB_OUTPUT
@@ -126,7 +126,7 @@ runs:
echo "::group::Build DevXP"
#
echo "@echo off" > "$GITHUB_ACTION_PATH/sfall/PostBuild.cmd"
# echo "@echo off" > "$GITHUB_ACTION_PATH/sfall/PostBuild.cmd"
"${{ steps.msbuild.outputs.exe }}" "$GITHUB_ACTION_PATH/sfall/ddraw.sln" -p:Configuration=DevXP -p:Platform=Win32 -p:PlatformToolset=v140_xp
#
echo "ddraw-dll=$(cygpath --windows "$GITHUB_ACTION_PATH/sfall/DevXP/ddraw.dll")" >> $GITHUB_OUTPUT
+1 -1
View File
@@ -599,7 +599,7 @@ static void AddNewDot() {
}
static void __declspec(naked) DrawingDots() noexcept {
long x_offset, y_offset;
long x_offset, y_offset;
__asm {
mov ebp, esp; // prolog
sub esp, __LOCAL_SIZE;
BIN
View File
Binary file not shown.
+21
View File
@@ -0,0 +1,21 @@
@ECHO OFF
rem debug, release, etc.
SET type=%1
rem full path to the compiled DLL
SET target=%2
SET destination=C:\Games\Fallout2\ddraw.dll
SET pdb="%~dpn2.pdb"
IF EXIST ducible.exe (
IF EXIST %pdb% (
ducible %target% %pdb%
) ELSE (
ducible %target%
)
)
rem echo Copying %target% to %destination% ...
rem copy %target% %destination%
+10
View File
@@ -7,5 +7,15 @@ SET target=%2
SET destination=d:\GAMES\Fallout2\@RP\ddraw.dll
SET pdb="%~dpn2.pdb"
IF EXIST ducible.exe (
IF EXIST %pdb% (
ducible %target% %pdb%
) ELSE (
ducible %target%
)
)
echo Copying %target% to %destination% ...
copy %target% %destination%