-
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.
- Loading branch information
1 parent
4eddd9b
commit 31b436d
Showing
14 changed files
with
98 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,4 @@ | ||
{ | ||
"max-client": 5, | ||
"last-server": "" | ||
} |
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,6 @@ | ||
{ | ||
"discord_RPC": true, | ||
"volume": 40, | ||
"file-save-dir": "./asset/storage", | ||
"Subtitle-Lang": "ko" | ||
} |
Binary file not shown.
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,39 @@ | ||
# -*- mode: python ; coding: utf-8 -*- | ||
|
||
a = Analysis( | ||
['update\\update.py'], | ||
pathex=[], | ||
binaries=[], | ||
hiddenimports=[], | ||
hookspath=[], | ||
hooksconfig={}, | ||
runtime_hooks=[], | ||
excludes=[], | ||
noarchive=False, | ||
optimize=0, | ||
) | ||
|
||
pyz = PYZ(a.pure) | ||
|
||
exe = EXE( | ||
pyz, | ||
a.scripts, | ||
a.binaries, | ||
a.datas, | ||
[], | ||
name='update', | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=True, | ||
upx_exclude=[], | ||
runtime_tmpdir=None, | ||
console=True, | ||
disable_windowed_traceback=False, | ||
argv_emulation=False, | ||
target_arch=None, | ||
codesign_identity=None, | ||
entitlements_file=None, | ||
icon='./asset/sclatIcon.ico', | ||
onefile=True | ||
) |
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,43 @@ | ||
import os | ||
import zipfile | ||
import requests | ||
|
||
def download(): | ||
try: | ||
response = requests.get('https://github.com/fluffy-melli/sclat/archive/refs/heads/main.zip') | ||
response.raise_for_status() | ||
except requests.exceptions.RequestException as e: | ||
print(f"HTTP GET Fail: {e}") | ||
return | ||
try: | ||
with open('-install.zip', 'wb') as out_file: | ||
out_file.write(response.content) | ||
except IOError as e: | ||
print(f"File Creation Fail: {e}") | ||
return | ||
if not unzip('-install.zip'): | ||
return | ||
|
||
def unzip(filename): | ||
dest_dir = os.path.join(".install") | ||
try: | ||
with zipfile.ZipFile(filename, 'r') as zip_ref: | ||
zip_ref.extractall(dest_dir) | ||
except zipfile.BadZipFile as e: | ||
print(f"Can't open zip file: {e}") | ||
return False | ||
except Exception as e: | ||
print(f"Error extracting zip file: {e}") | ||
return False | ||
return True | ||
|
||
def extract_file(zip_ref, file_info, dest_path): | ||
try: | ||
with zip_ref.open(file_info) as source_file: | ||
with open(dest_path, 'wb') as dest_file: | ||
dest_file.write(source_file.read()) | ||
os.chmod(dest_path, file_info.external_attr >> 16) | ||
except Exception as e: | ||
print(f"Can't extract file: {e}") | ||
return False | ||
return True |
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,3 @@ | ||
from download import github | ||
|
||
github.download() |