-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.py
50 lines (50 loc) · 1.42 KB
/
package.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import os
import shutil
spiderheck = os.environ["STEAMAPPS"] + "/common/SpiderHeck/SpiderHeckApp_Data/Managed"
assemblies = [
"Accessibility",
"Assembly-CSharp",
"Assembly-CSharp-firstpass",
"Cinemachine",
"DDebug",
"DoozyEngine",
"DOTween",
"DOTween.Modules",
"EasySave3",
"GdkUtilities",
"I2",
"JunTween",
"Mono.Security",
"MyScriptAssembly",
"NewAssembly",
"Pathfinding.Ionic.Zip.Reduced",
"SteamP2P Transport for Netcode for GameObjects",
"Steamworks.NET",
"Unity.2D.Animation.Runtime",
"Unity.2D.Common.Runtime",
"Unity.Collections",
"Unity.InputSystem",
"Unity.Mathematics",
"Unity.Netcode.Components",
"Unity.Netcode.Runtime",
"Unity.TextMeshPro",
"Unity.Timeline",
"UnityEngine.CoreModule",
"UnityEngine.UI",
"UnityEngine.ImageConversionModule",
"UnityEngine.Physics2DModule",
"UnityEngine.IMGUIModule"
]
if os.path.isdir("lib"):
shutil.rmtree("lib")
os.mkdir("lib")
for assembly in assemblies:
item_path = spiderheck + "/" + assembly + ".dll"
item = assembly + ".dll"
print(f"Processing: {item}")
shutil.copyfile(item_path, "lib/" + item)
os.system(f"assembly-publicizer \"lib/{item}\" --strip")
os.remove(f"lib/{item}")
print("Renaming file")
os.rename(f"lib/{assembly}-publicized.dll", f"lib/{item}")
os.system("mono /usr/local/bin/nuget.exe pack SpiderHeck.GameLibs.nuspec")