changes
This commit is contained in:
15
.vscode/tasks.json
vendored
15
.vscode/tasks.json
vendored
@@ -4,16 +4,11 @@
|
|||||||
{
|
{
|
||||||
"label": "Build New Release",
|
"label": "Build New Release",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"dependsOn": [
|
// "dependsOn": [
|
||||||
"Build LibrarySystem (Release)",
|
// "Build LibrarySystem (Release)",
|
||||||
"Build LibrarySystem (Debug)"
|
// "Build LibrarySystem (Debug)"
|
||||||
],
|
// ],
|
||||||
"command": "cmd",
|
"command": "release.cmd",
|
||||||
"args": [
|
|
||||||
"/c",
|
|
||||||
"echo",
|
|
||||||
"Build Complete"
|
|
||||||
],
|
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
|
|||||||
19
setup.py
19
setup.py
@@ -24,5 +24,24 @@ def rename_folders():
|
|||||||
os.path.join("dist", folder),
|
os.path.join("dist", folder),
|
||||||
os.path.join("dist", f"{name}-{version}"),
|
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__":
|
if __name__ == "__main__":
|
||||||
rename_folders()
|
rename_folders()
|
||||||
|
compress_folders()
|
||||||
Reference in New Issue
Block a user