added pre release hook to grab the extensions to the release

This commit is contained in:
Valmo Trindade
2024-07-18 21:51:18 -03:00
parent b7f6040631
commit ef89a0cec4
2 changed files with 16 additions and 3 deletions

View File

@@ -1,3 +0,0 @@
// copy everything in ./dist to root
// get all files
const distDir = HEMTT_VFS.join("dist");

View File

@@ -0,0 +1,16 @@
const dllDir = HEMTT_RFS.join("extensions").join("armatak").join("dist");
const dll = dllDir.join("armatak.dll");
const dll_x64 = dllDir.join("armatak_x64.dll");
if dllDir.exists() && dll.is_file() && dll.exists() {
print("Adding x86 DLL file to Release");
dll.copy(HEMTT_OUT);
print("Added x86 DLL file to Release");
};
if dllDir.exists() && dll_x64.is_file() && dll_x64.exists() {
print("Adding x64 DLL file to Release");
dll_x64.copy(HEMTT_OUT);
print("Added x64 DLL file to Release");
};