-
Notifications
You must be signed in to change notification settings - Fork 2
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
b0d0744
commit 22c93a5
Showing
7 changed files
with
24 additions
and
17 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
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,22 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# dir name | ||
dir=$(basename $(dirname $0)) | ||
# Get current working directory with full path | ||
fullPath=$(pwd) | ||
|
||
# Get only directory name without path | ||
dirNameOrigin=$(basename $fullPath) | ||
dirName=${dirNameOrigin//-/_} | ||
echo $dirName | ||
# pypi token | ||
pypi_token=$(cat PYPI_TOKEN) | ||
|
||
# 从__init__.py文件中读取版本信息 | ||
version=$(python -c "from src.$dir import __version__; print(__version__)") | ||
version=$(python -c "from src.$dirName import __version__; print(__version__)") | ||
echo $version | ||
|
||
# build & publish | ||
poetry build && \ | ||
poetry publish -u __token__ -p $pypi_token | ||
/usr/bin/python3.8 -m poetry build && \ | ||
/usr/bin/python3.8 -m poetry publish -u __token__ -p $pypi_token | ||
|
||
# pyinstaller linux exec file | ||
pyinstaller -F src/$dir/__main__.py -n $dir-linux && \ | ||
/usr/bin/python3.8 -m poetry run pyinstaller -F src/$dirName/__main__.py -n $dirNameOrigin-linux && \ | ||
|
||
# Compress the executable file | ||
zip ./dist/$dir-linux.zip ./dist/$dir-linux ./scripts/Chinese-simple.sh scripts/English.sh scripts/start.sh | ||
zip -j ./dist/$dirNameOrigin-$version-linux.zip ./dist/$dirNameOrigin-linux ./scripts/Chinese-simple.sh scripts/English.sh scripts/start.sh | ||
|
||
zip dist/$dir-win64.zip dist/$dir-win64.exe scripts/Chinese-simple.bat scripts/English.bat scripts/start.bat | ||
zip -j ./dist/$dirNameOrigin-$version-win64.zip ./dist/$dirNameOrigin-win64.exe scripts/Chinese-simple.bat scripts/English.bat scripts/start.bat | ||
|
||
# todo 把停用词也更新了 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "1.0.7.2" | ||
__version__ = "1.0.7.3" | ||
from . import core, parameter | ||
from .core.task import first_try, run_all_tasks, run_task, task_info | ||
from .parameter import log |
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