Skip to content

Commit

Permalink
新增编译脚本
Browse files Browse the repository at this point in the history
修复删除文件错误导致程序退出的逻辑错误
  • Loading branch information
ys1231 committed Jun 12, 2023
1 parent 88192ed commit ee2b939
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rm -rf out build *.log searchso.spec
pyinstaller -F -w ./main.py --distpath=out -n sosearch
cp ./out/sosearch ~/.bin
sudo chmod a+x ~/.bin/sosearch
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def main():
os.remove(args.saveall)
except Exception as e:
print("remove {}".format(args.output), e)
return

if os.path.isdir(args.sofilepath):
print(args.sofilepath, "> 是一个目录")
rangedir(args.sofilepath, args.search)
Expand Down

0 comments on commit ee2b939

Please sign in to comment.