Clean dist/ue4ss before building, so a renamed mod leaves no stale folder
package.py globs dist/ue4ss into the binary zip; without this, the old phantombladezero_scriptcompat folder from before the rename shipped too.
This commit is contained in:
1 parent
d877e14095
commit
b2883bc4c4
1 file changed
+1
@@ -43,6 +43,7 @@ flags = ['/nologo','/c','/std:c++20','/O2','/MD','/EHsc','/W4','/WX','/permissiv
|
||||
for source in ['dllmain','compatibility']:
|
||||
run([compiler/'cl.exe',*flags,f'/Fo{build/source}.obj',ROOT/'src'/f'{source}.cpp'])
|
||||
run([compiler/'lib.exe','/nologo',f'/def:{ROOT/"tools/vendor/ue4ss-sdk/UE4SS.def"}','/machine:x64',f'/out:{build/"UE4SS.lib"}'])
|
||||
shutil.rmtree(ROOT/'dist/ue4ss',ignore_errors=True) # start clean so a renamed mod leaves no stale folder in the zip
|
||||
out = ROOT/'dist/ue4ss/Mods/phantombladezero_cppbypass/dlls'
|
||||
out.mkdir(parents=True,exist_ok=True)
|
||||
run([compiler/'link.exe','/nologo','/DLL','/INCREMENTAL:NO','/OPT:REF','/OPT:ICF',
|
||||
|
||||
Reference in new issue
Block a user