mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 13:53:28 +00:00
added pre release hook to grab the extensions to the release
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
// copy everything in ./dist to root
|
||||
// get all files
|
||||
const distDir = HEMTT_VFS.join("dist");
|
||||
16
.hemtt/hooks/pre_release/grab_extension.rhai
Normal file
16
.hemtt/hooks/pre_release/grab_extension.rhai
Normal 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");
|
||||
};
|
||||
Reference in New Issue
Block a user