Skip to content

Commit

Permalink
try to fix binary linux
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Nov 22, 2023
1 parent c129095 commit fb07f32
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release_bundler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
/root/.local/bin/poetry install
/root/.local/bin/poetry add pyinstaller==5.13.0
echo "install run pyinstaller"
/root/.local/bin/poetry run pyinstaller .venv/bin/ofscraper --collect-submodules application --name "ofscraper_linux_${{ inputs.version}}" --onefile
/root/.local/bin/poetry run pyinstaller /home/runner/work/OF-Scraper/OF-Scraper/ofscraper/__main__.py --collect-submodules application --name "ofscraper_linux_${{ inputs.version}}" --onefile
- name: upload one file
uses: actions/upload-artifact@v3
with:
Expand All @@ -114,7 +114,7 @@ jobs:
/root/.local/bin/poetry install
/root/.local/bin/poetry add pyinstaller==5.13.0
echo "install run pyinstaller"
/root/.local/bin/poetry run pyinstaller .venv/bin/ofscraper --collect-submodules application --name "ofscraper_linux_${{ inputs.version}}" --onefile
/root/.local/bin/poetry run pyinstaller /home/runner/work/OF-Scraper/OF-Scraper/ofscraper/__main__.py --collect-submodules application --name "ofscraper_linux_${{ inputs.version}}" --onefile
zip -r "dist/ofscraper_linux_${{inputs.version}}.zip" "dist/ofscraper_linux_${{inputs.version}}"
- name: upload zip
uses: actions/upload-artifact@v3
Expand Down
1 change: 0 additions & 1 deletion ofscraper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ def main():

if __name__ == '__main__':
multiprocessing.freeze_support()

main()

2 changes: 1 addition & 1 deletion ofscraper/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main():
else: other_log_thread=logger.start_other_thread(event=other_event)
# allow background processes to start
time.sleep(3)




Expand Down
3 changes: 3 additions & 0 deletions ofscraper/utils/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ def getargs(input=None):
elif input==None:
input=sys.argv[1:]




parser=create_parser(input)

Expand All @@ -265,6 +267,7 @@ def getargs(input=None):
raise argparse.ArgumentTypeError("error: argument missing --username or --file must be specified )")
elif args.command in set(["manual"])and not (args.url or args.file):
raise argparse.ArgumentTypeError("error: argument missing --url or --file must be specified )")
print(args)
return args


Expand Down

0 comments on commit fb07f32

Please sign in to comment.