Skip to content

Commit 94a73b8

Browse files
committed
Se han agregado algunos scripts para copiar los .jar's
1 parent 62b636c commit 94a73b8

File tree

6 files changed

+20
-1
lines changed

6 files changed

+20
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ buildNumber.properties
1515
.project
1616
# JDT-specific (Eclipse Java Development Tools)
1717
.classpath
18-
.idea/
18+
.idea/
19+
scripts/*.jar

scripts/NetShield-Bukkit-1.1.jar

4.89 MB
Binary file not shown.

scripts/NetShield-Bungee-1.1.jar

4.89 MB
Binary file not shown.

scripts/NetShield-Velocity-1.1.jar

5.82 MB
Binary file not shown.

scripts/copy_built.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import shutil
2+
import glob
3+
import os
4+
5+
files_to_copy = os.path.join("../", "**", "NetShield-*-*.jar")
6+
7+
for file in glob.glob(files_to_copy, recursive=True):
8+
if "-shaded.jar" not in file:
9+
print("Copied: "+file)
10+
shutil.copy(file, ".")

scripts/delete_built.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import os
2+
3+
for root, dirs, files in os.walk("../"):
4+
for file in files:
5+
if file.endswith(".jar"):
6+
file_path = os.path.join(root, file)
7+
os.remove(file_path)
8+
print(f"Deleted: {file_path}")

0 commit comments

Comments
 (0)