Skip to content

Commit

Permalink
remove license from packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Sep 11, 2024
1 parent d6f5919 commit 444b152
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions make_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@
print("Creating packages for Unreal Engine")
supported_ue_versions = ["5.0.0", "5.1.0", "5.2.0", "5.3.0", "5.4.0"]


def add_license(filename):
with open("LICENSE", "r") as license_file:
license_text = license_file.read()
license_text = ["// " + line for line in license_text.split("\n")]
license_text.pop()
license_text = "\n".join(license_text)
file_text = ""
with open(filename, "r") as file:
file_text = file.read()
with open(filename, "w") as file_write:
file_write.write(license_text + "\n\n" + file_text)


print("Preparing files")

current_dir = os.path.dirname(os.path.realpath(__file__))
Expand All @@ -46,10 +32,6 @@ def add_license(filename):
glob.glob(temporary_dir + "/**/*.h", recursive=True),
)

print("Adding license to files")
for filename in cpp_files:
add_license(filename)

for version in supported_ue_versions:
print("Creating package for Unreal Engine " + version)
with open(temporary_dir + "/PubnubLibrary.uplugin", "r") as uplugin_file:
Expand Down

0 comments on commit 444b152

Please sign in to comment.