This commit is contained in:
Connection Refused
2021-04-02 01:34:56 +08:00
parent 37455bb89e
commit 5970e30974
20 changed files with 54 additions and 426 deletions

3
scripts/.gitignore vendored
View File

@@ -1,3 +0,0 @@
/release
/x64
/x86

View File

@@ -1,6 +0,0 @@
@ECHO OFF
RD /S /Q ..\Netch\bin > NUL 2>&1
RD /S /Q ..\Netch\obj > NUL 2>&1
MSBuild -m -r /t:Rebuild /p:Configuration=Release;Platform=x64 ..\Netch.sln
MSBuild -m -r /t:Rebuild /p:Configuration=Release;Platform=x86 ..\Netch.sln
PAUSE

View File

@@ -1,4 +0,0 @@
@ECHO OFF
RD /S /Q release > NUL 2>&1
RD /S /Q x64 > NUL 2>&1
RD /S /Q x86 > NUL 2>&1

View File

@@ -1,28 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import hashlib, os
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
r = filelist('release')
print(text)
for i in r:
print('| {0} | {1} |'.format(i, checksum('release\\' + i)))

View File

@@ -1,30 +0,0 @@
@ECHO OFF
RD /S /Q release > NUL 2>&1
RD /S /Q x64 > NUL 2>&1
RD /S /Q x86 > NUL 2>&1
MKDIR release > NUL 2>&1
XCOPY /E /Y ..\Netch\bin\x64\Release x64
XCOPY /E /Y ..\Netch\bin\x86\Release x86
PAUSE
CD x64
DEL /F /S /Q *.config
DEL /F /S /Q *.pdb
DEL /F /S /Q *.xml
7z a -r Netch.x64.7z *
MOVE Netch.x64.7z ..\release
CD ..\x86
DEL /F /S /Q *.config
DEL /F /S /Q *.pdb
DEL /F /S /Q *.xml
7z a -r Netch.x86.7z *
MOVE Netch.x86.7z ..\release
CD ..
RD /S /Q x64
RD /S /Q x86
PAUSE