Skip to content

Commit

Permalink
feat: PDB generation for the release build
Browse files Browse the repository at this point in the history
  • Loading branch information
alphanin9 committed Jan 26, 2025
1 parent 42c3c8d commit e7086a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ jobs:
with:
name: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.mode }}
path: package/**

- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.mode }}-pdb
path: package_pdb/**
14 changes: 12 additions & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ elseif is_mode("releasedbg") then
vsRuntime = vsRuntime.."d"
elseif is_mode("release") then
add_defines("NDEBUG")
set_symbols("hidden")
set_symbols("debug")
set_strip("all")
set_optimize("fastest")
set_runtimes("MD")
Expand Down Expand Up @@ -80,6 +80,7 @@ target("cyber_engine_tweaks")
import("net.http")

os.rm("package/*")
os.rm("package_pdb/*")

os.mkdir("package/bin/x64/plugins/cyber_engine_tweaks/tweakdb")
http.download("https://github.com/WolvenKit/WolvenKit/raw/main/WolvenKit.Common/Resources/usedhashes.kark", "package/bin/x64/plugins/cyber_engine_tweaks/tweakdb/usedhashes.kark")
Expand All @@ -96,7 +97,16 @@ target("cyber_engine_tweaks")
os.cp("LICENSE", "package/bin/x64/")
os.cp("ThirdParty_LICENSES", "package/bin/x64/plugins/cyber_engine_tweaks/ThirdParty_LICENSES")

os.cp(target:targetfile(), "package/bin/x64/plugins/")
local target_file = target:targetfile()

os.cp(target_file, "package/bin/x64/plugins/")

os.mkdir("package_pdb/bin/x64")

os.cp(path.join(
path.directory(target_file),
path.basename(target_file)..".pdb"
), "package_pdb/bin/x64/plugins/")
end)
on_install(function(target)
cprint("${green bright}Installing Cyber Engine Tweaks ..")
Expand Down

0 comments on commit e7086a8

Please sign in to comment.