Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
MuggleWei committed Jan 9, 2024
2 parents c1e6318 + 61d6cf7 commit 0913b76
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bdchecker/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ def _dump_meta(self, meta_filepath, meta_dict):
# dump
logging.info("dump meta info to {}".format(meta_filepath))
sorted_dict = dict(sorted(meta_dict.items()))
with open(tmp_meta_filepath, "w") as f:
writer = csv.writer(f, delimiter=",")
with open(tmp_meta_filepath, "w", newline='', encoding='utf-8') as f:
writer = csv.writer(f, delimiter=",", lineterminator='\n')
writer.writerow(["k", "v"])
for k, v in sorted_dict.items():
writer.writerow([k, v])
Expand Down
17 changes: 17 additions & 0 deletions pyinstaller_pkg.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off

setlocal ENABLEDELAYEDEXPANSION

set origin_dir=%~dp0
cd %origin_dir%

python -m venv venv
call venv\Scripts\activate.bat
pip install -r requirements-dev.txt

pyinstaller -F bdchecker\main.py --distpath dist\bdchecker -n bdchecker
xcopy README.md dist\bdchecker\ /Y
xcopy README_cn.md dist\bdchecker\ /Y
xcopy LICENSE dist\bdchecker\ /Y

call venv\Scripts\deactivate.bat
1 change: 0 additions & 1 deletion pyinstaller_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ fi
pip install -r requirements-dev.txt

pyinstaller -F bdchecker/main.py --distpath dist/bdchecker -n bdchecker
cp -r ./etc dist/bdchecker/
cp ./README.md dist/bdchecker/
cp ./README_cn.md dist/bdchecker/
cp ./LICENSE dist/bdchecker/

0 comments on commit 0913b76

Please sign in to comment.