-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from ThaaoBlues/main
1.7.0
- Loading branch information
Showing
10 changed files
with
222 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ static/ | |
copypasta.build | ||
output | ||
output/* | ||
copypasta.exe | ||
copypasta.exe | ||
*.build | ||
*.dist |
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
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,78 @@ | ||
<!DOCTYPE html> | ||
<html lang="fr"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title translate="no">CopyPasta/Video</title> | ||
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon"/> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.2/font/bootstrap-icons.css" integrity="sha384-eoTu3+HydHRBIjnCVwsFyCpUDZHZSFKEJD0mc3ZqSBSb6YhZzRHeiomAUWCstIWo" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> | ||
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> | ||
</head> | ||
|
||
<body> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary"> | ||
|
||
<div class="container-fluid"> | ||
<a class="navbar-brand" href="/" translate="no">CopyPasta</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="navbar-nav mr-auto"> | ||
<li class="nav-item"> | ||
<a class="nav-link active" name="over" href="/process/[HOME]">Main menu</a> | ||
</li> | ||
<li> | ||
<div id="google_translate_element"></div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
</nav> | ||
|
||
|
||
<div class="text-center"> | ||
<video controls width="800" height="600"> <source src="/{{file_path}}"></video> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<style> | ||
.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:visited, .btn-outline-primary { | ||
background-color: #009c74 !important; | ||
border-color: #009c74; | ||
color: white; | ||
} | ||
|
||
.bg-primary{ | ||
background-color: #009c74 !important; | ||
border-color: #009c74; | ||
color: #009c74; | ||
} | ||
|
||
|
||
.sep_left{ | ||
border-left: 1px solid #ffffff; | ||
margin-left: 10px; | ||
} | ||
|
||
</style> | ||
|
||
|
||
<script type="text/javascript"> | ||
function googleTranslateElementInit() { | ||
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element'); | ||
document.getElementsByTagName("body")[0].style = ""; | ||
|
||
} | ||
</script> | ||
</body> |
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,77 @@ | ||
{ | ||
"version": "auto-py-to-exe-configuration_v1", | ||
"pyinstallerOptions": [ | ||
{ | ||
"optionDest": "noconfirm", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "filenames", | ||
"value": "G:/Mon Drive/dev/projects/CopyPasta/unins000.py" | ||
}, | ||
{ | ||
"optionDest": "onefile", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "console", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "icon_file", | ||
"value": "G:/Mon Drive/dev/projects/CopyPasta/favicon.ico" | ||
}, | ||
{ | ||
"optionDest": "ascii", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "clean_build", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "strip", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "noupx", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "disable_windowed_traceback", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "embed_manifest", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "uac_admin", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "uac_uiaccess", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "win_private_assemblies", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "win_no_prefer_redirects", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "bootloader_ignore_signals", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "argv_emulation", | ||
"value": false | ||
} | ||
], | ||
"nonPyinstallerOptions": { | ||
"increaseRecursionLimit": true, | ||
"manualArguments": "" | ||
} | ||
} |
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,31 +1,40 @@ | ||
from shutil import rmtree | ||
from os import remove | ||
from getpass import getuser | ||
from sys import argv | ||
# for pyinstaller | ||
import pywintypes | ||
|
||
APP_PATH = "C:/Program Files/CopyPasta" | ||
|
||
try: | ||
remove("launcher.exe") | ||
remove(f"{APP_PATH}/launcher.exe") | ||
except: | ||
pass | ||
|
||
try: | ||
rmtree("copypasta") | ||
rmtree(f"{APP_PATH}/copypasta",ignore_errors=True) | ||
except Exception as e: | ||
print(e) | ||
|
||
|
||
try: | ||
user = getuser() | ||
remove(f"C:\\Users\\{user}\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\CopyPasta.lnk") | ||
del user | ||
except Exception as e: | ||
print(e) | ||
|
||
try: | ||
user = getuser() | ||
remove(f"C:\\Users\\{user}\\Desktop\\CopyPasta.lnk") | ||
remove(f"C:\\Users\\Public\\Desktop\\CopyPasta.lnk") | ||
except Exception as e: | ||
print(e) | ||
|
||
try: | ||
remove("unins000.exe") | ||
remove(argv[0]) | ||
except Exception as e: | ||
print(e) | ||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.6.4 | ||
1.7.0 |