From 6d8f91633b60e0cbeeb9f9d378f478d014ff6d10 Mon Sep 17 00:00:00 2001
From: MMDRZA <95309780+Pymmdrza@users.noreply.github.com>
Date: Tue, 26 Sep 2023 04:41:24 +0300
Subject: [PATCH] Add files via upload

---
 .github/workflows/install.py | 55 ++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 .github/workflows/install.py

diff --git a/.github/workflows/install.py b/.github/workflows/install.py
new file mode 100644
index 0000000..3744575
--- /dev/null
+++ b/.github/workflows/install.py
@@ -0,0 +1,55 @@
+import os
+import sys
+import subprocess
+import platform
+from colorthon import Colors
+
+red = Colors.RED
+green = Colors.GREEN
+yellow = Colors.YELLOW
+reset = Colors.RESET
+
+
+def subInstall(package_name: str):
+    if "win" in platform.platform().lower():
+        subprocess.check_call([sys.executable, "-m", "pip", "install", package_name])
+    elif "linux" in platform.platform().lower():
+        subprocess.check_call([sys.executable, "-m", "pip3", "install", package_name])
+    elif "mac" in platform.platform().lower():
+        subprocess.check_call([sys.executable, "-m", "pip3", "install", package_name])
+    else:
+        raise ValueError("Unsupported OS")
+
+
+def install_deps():
+    deps = ["ecdsa", "setuptools", "wheel", "hdwallet"]
+    for dep in deps:
+        print(f" {green}Installing{reset}:{yellow} {dep}{reset}")
+        subInstall(dep)
+
+def colorthon():
+    if "win" in platform.platform().lower():
+        print(f"{red}Installing{reset}:{yellow} Colorthon{reset}")
+        subprocess.run(['pip', 'install', 'colorthon'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+        print(f"{green}Successfully installed{reset}: Colorthon")
+
+    elif "linux" in platform.platform().lower():
+        print(f"{red}Installing{reset}:{yellow} Colorthon{reset}")
+        subprocess.run(['pip3', 'install', 'colorthon'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+        print(f"{green}Successfully installed{reset}: Colorthon")
+
+    elif "mac" in platform.platform().lower():
+        print(f"{red}Installing{reset}:{yellow} Colorthon{reset}")
+        subprocess.run(['pip3', 'install', 'colorthon'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+        print(f"{green}Successfully installed{reset}: Colorthon")
+
+
+
+def main():
+    colorthon()
+    install_deps()
+    print(f"{red}CryptoFuzz{reset} {green}With dependencies have been installed!{reset}")
+
+
+if __name__ == "__main__":
+    main()