Skip to content

Commit

Permalink
Generate pdb files (in release) and provide them along the installer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Mar 9, 2024
1 parent d6da1ff commit cb51f21
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/premake5-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ jobs:
path: |
data/**.exe
data/**.dll
data/**.pdb
6 changes: 6 additions & 0 deletions .github/workflows/release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@ jobs:
with:
name: maxr-installer.exe
path: mk/win32/installer/maxr-*.exe

- name: Upload pdb files
uses: actions/upload-artifact@v4
with:
name: maxr.pdb
path: data/*.pdb
2 changes: 1 addition & 1 deletion mk/win32/installer/maxr-installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Section "$(TITLE_Section_Main)" Section_Main
SetOutPath $INSTDIR

# now install all files
File /r "${FILESFOLDER}"
File /r /x *.pdb "${FILESFOLDER}"
SectionEnd

Section "$(TITLE_Section_Start_Menu_Link)" Section_Start_Menu_Link
Expand Down
3 changes: 3 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ end
defines { "NDEBUG" }
optimize "On"

filter { "toolset:msc*" }
symbols "On" -- pdb even on release

filter "system:windows"
defines { "WIN32" }

Expand Down

0 comments on commit cb51f21

Please sign in to comment.