changes
This commit is contained in:
15
.vscode/tasks.json
vendored
15
.vscode/tasks.json
vendored
@@ -4,16 +4,11 @@
|
||||
{
|
||||
"label": "Build New Release",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"Build LibrarySystem (Release)",
|
||||
"Build LibrarySystem (Debug)"
|
||||
],
|
||||
"command": "cmd",
|
||||
"args": [
|
||||
"/c",
|
||||
"echo",
|
||||
"Build Complete"
|
||||
],
|
||||
// "dependsOn": [
|
||||
// "Build LibrarySystem (Release)",
|
||||
// "Build LibrarySystem (Debug)"
|
||||
// ],
|
||||
"command": "release.cmd",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
|
||||
19
setup.py
19
setup.py
@@ -24,5 +24,24 @@ def rename_folders():
|
||||
os.path.join("dist", folder),
|
||||
os.path.join("dist", f"{name}-{version}"),
|
||||
)
|
||||
|
||||
|
||||
def remove_other_folders():
|
||||
for folder in os.listdir("dist"):
|
||||
if not name in folder:
|
||||
os.remove(os.path.join("dist", folder))
|
||||
|
||||
|
||||
def compress_folders():
|
||||
print("Compressing folders")
|
||||
import shutil
|
||||
|
||||
for folder in os.listdir("dist"):
|
||||
if name in folder and not folder.endswith(".zip"):
|
||||
print(f"Compressing {folder}")
|
||||
shutil.make_archive(f"dist/{folder}", "zip", f"dist/{folder}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
rename_folders()
|
||||
compress_folders()
|
||||
Reference in New Issue
Block a user