-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- NOTE: password for the zip is: "dankware" Former-commit-id: d23a352
- Loading branch information
Showing
6 changed files
with
115 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import os | ||
import sys | ||
import requests | ||
import pyminizip | ||
from dankware import cls, clr, sys_open | ||
|
||
try: os.chdir(os.path.join(os.environ['USERPROFILE'],'Downloads')) | ||
except: os.chdir("C:\\") | ||
|
||
print(clr("\n > Downloading dank.tool.zip...")) | ||
while True: | ||
try: data = requests.get("https://github.com/SirDank/dank.tool/raw/main/dank.tool.zip", allow_redirects=True).content; break | ||
except: input(clr("\n > Failed to download! Make sure you are connected to the internet! Press [ENTER] to try again... ",2)) | ||
try: open("dank.tool.zip","wb").write(data); data = None | ||
except: | ||
cls(); input(clr("\n > Failed to save file!\n > Please manually download the latest version from https://github.com/SirDank/dank.tool/raw/main/dank.tool.zip\n > Press [ENTER] to EXIT... ",2)) | ||
sys.exit() | ||
|
||
#open("dankware-updater.cmd","w").write(f"@echo off\ntitle dankware-updater\ncolor 0a\ntimeout 3\ndel /F {file_name}\nren dank.tool-latest.exe dank.tool.exe\ncls\necho.\necho =======================\necho.\necho UPDATE COMPLETE\necho.\necho =======================\necho.\necho Run dank.tool.exe\necho.\necho =======================\necho.\necho T E R M I N A T I N G\necho.\ntimeout 3\ndel \"%~f0\" >nul 2>&1\nexit") | ||
|
||
print(clr("\n > Extracting...")) | ||
try: pyminizip.uncompress("dank.tool.zip", "dankware", None, True) | ||
except: | ||
cls(); input(clr(f"\n > Failed to extract!\n > Please manually extract '{os.path.join(os.getcwd(), 'dank.tool.zip')}'\n > Press [ENTER] to EXIT... ",2)) | ||
sys.exit() | ||
sys_open("dank.tool-[installer].exe") | ||
sys.exit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5f8212a980fa8704911411e3bd2b2c2013773fd9 | ||
be06419f0f0094e8e1d8dd90046b9c2770aa18ec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
70b8dcc0e5713768a3b018ae2b8a2cc709c0a224 |