forked from iWangJiaxiang/autosub
-
Notifications
You must be signed in to change notification settings - Fork 246
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
f777ad1
commit ad9f14b
Showing
15 changed files
with
62 additions
and
20 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 |
---|---|---|
|
@@ -14,3 +14,4 @@ MANIFEST | |
/.idea | ||
/.build_and_dist | ||
/.build_and_dist27 | ||
/.release |
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 was deleted.
Oops, something went wrong.
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,7 +1,7 @@ | ||
six==1.12.0 | ||
pysubs2==0.2.4 | ||
requests==2.21.0 | ||
pysrt==1.1.1 | ||
setuptools==40.6.2 | ||
requests==2.21.0 | ||
google_api_python_client==1.7.9 | ||
progressbar2==3.42.0 | ||
pysubs2==0.2.4 |
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,28 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
import hashlib, os, sys | ||
|
||
text = '''| 文件名 | SHA256 | | ||
| :- | :- |''' | ||
|
||
def checksum(filename): | ||
algorithm = hashlib.sha256() | ||
with open(filename, 'rb') as f: | ||
for byte_block in iter(lambda: f.read(4096), b''): | ||
algorithm.update(byte_block) | ||
return str(algorithm.hexdigest()) | ||
|
||
|
||
def filelist(path): | ||
r = [] | ||
n = os.listdir(path) | ||
for f in n: | ||
if not os.path.isdir(f): | ||
r.append(f) | ||
return r | ||
|
||
if len(sys.argv) == 2: | ||
print(text) | ||
r = filelist(str(sys.argv[1])) | ||
for i in r: | ||
print('| {0} | {1} |'.format(i, checksum(str(sys.argv[1]) + '\\' + i))) |
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,13 @@ | ||
set "release_name=autosub" | ||
set "package_name=autosub" | ||
|
||
cd %~dp0 | ||
mkdir "..\.release\%package_name%" | ||
cp "release_files\run.bat" "..\.release\%package_name%" | ||
cp "release_files\help.bat" "..\.release\%package_name%" | ||
cp "..\.build_and_dist\pyinstaller.build\%release_name%.exe" "..\.release\%package_name%" | ||
call update_requirements.bat | ||
cp "..\requirements.txt" "..\.release\%package_name%" | ||
7z a -sdel "..\.release\%release_name%-alpha-win-x64.7z" "..\.release\%package_name%" | ||
%PY_HOME%\python GENERATE.py "..\.release" | ||
call cmd |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -29,5 +29,5 @@ exe = EXE(pyz, | |
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=True, | ||
upx=False, | ||
console=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,5 @@ | ||
@echo off | ||
set package_name=autosub | ||
@echo on | ||
%package_name% -h | ||
call cmd |
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,7 @@ | ||
@echo off | ||
set package_name=autosub | ||
set "file_name=" | ||
rem input your file name between '=' and '"' | ||
@echo on | ||
%package_name% -S en-US "%file_name%" | ||
call cmd |
File renamed without changes.