Skip to content

Commit

Permalink
Update packager
Browse files Browse the repository at this point in the history
  • Loading branch information
Strackeror committed Jun 2, 2023
1 parent bb75897 commit 61f972e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/package.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
import os
from zipfile import ZipFile
import shutil
import glob

os.chdir(os.path.dirname(os.path.abspath(__file__)) + '/..')

with ZipFile('x64/Loader-Release.zip', 'w') as zip:
zip.write("x64/Release/loader.dll", "loader.dll")
zip.write("x64/Release/injector.dll", "hid.dll")
zip.write("x64/Release/dinput8.dll", "dinput8.dll")
zip.write("x64/Release/loader-config.json", "loader-config.json")
zip.write("x64/Release/QuestLoader.dll", "nativePC/plugins/QuestLoader.dll")
zip.write("x64/Release/MonsterLoader.dll", "nativePC/plugins/MonsterLoader.dll")

with ZipFile('x64/Clutch-Release.zip', 'w') as zip:
zip.write('x64/Release/ClutchRework.dll', 'nativePC/plugins/ClutchRework.dll')
for path in glob.iglob(r'Plugins/ClutchRework/nativePC/**/*.col', recursive=True):
zip.write(path, os.path.relpath(path, r'Plugins/ClutchRework/'))

shutil.copyfile("x64/Release/loader.lib", "Plugins/dependencies/loader.lib")
shutil.copyfile("MHWLoader/loader.h", "Plugins/dependencies/loader.h")

Expand Down

0 comments on commit 61f972e

Please sign in to comment.