Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/build-and-sign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,24 @@ jobs:
run: |
.\\build.bat

# The installed tree carries no vcruntime140.dll outside python\python3,
# so the launcher must not import the dynamic MSVC CRT.
- name: Check launcher CRT dependencies
shell: pwsh
run: |
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
$dumpbin = & $vswhere -latest -products * `
-requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
-find "VC\Tools\MSVC\**\bin\Hostx64\x64\dumpbin.exe" |
Select-Object -First 1
if (-not $dumpbin) { throw "dumpbin.exe not found" }

$deps = & $dumpbin /nologo /dependents build\PIMELauncher\PIMELauncher.exe | Out-String
Write-Host $deps
if ($deps -match 'VCRUNTIME140|MSVCP140') {
throw "PIMELauncher.exe still imports the dynamic MSVC CRT"
}

# ---------------------------------------------------------------
# Upload unsigned binaries for signing.
# ---------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions PIMELauncher/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
corrosion_import_crate(MANIFEST_PATH Cargo.toml)

# Rust links the MSVC CRT dynamically by default. PIME ships no VC++
# redistributable, so link it statically like the C++ targets (/MT).
corrosion_add_target_rustflags(PIMELauncher "-Ctarget-feature=+crt-static")
2 changes: 0 additions & 2 deletions installer/inetc/Contrib/Inetc/afxres.h

This file was deleted.

83 changes: 0 additions & 83 deletions installer/inetc/Contrib/Inetc/api.h

This file was deleted.

105 changes: 0 additions & 105 deletions installer/inetc/Contrib/Inetc/crt.cpp

This file was deleted.

Loading