Skip to content

Commit

Permalink
Release test
Browse files Browse the repository at this point in the history
  • Loading branch information
emcruise committed Oct 11, 2021
1 parent 9aae4d1 commit ca31a55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@ jobs:
- name: Build client.py
run: |
cd client
python build.py test.onion 1025
python build.py
mv dist/client.exe dist/client_win.exe
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/client_win.exe
10 changes: 5 additions & 5 deletions client/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ def parse_args():


if __name__ == '__main__':
onion, port = parse_args()
#onion, port = parse_args()
# replace the onion and port line in client.py,
# since if havent found a more elegant way to do this yet.
lines = open('client.py').read().splitlines()
#lines = open('client.py').read().splitlines()
# onion address is defined in line 6
lines[5] = 'onion = "{}"'.format(onion)
#lines[5] = 'onion = "{}"'.format(onion)
# onion port is defined in line 7
lines[6] = 'port = {}'.format(port)
#lines[6] = 'port = {}'.format(port)
# write modified script to file
open('client.py','w').write('\n'.join(lines))
#open('client.py','w').write('\n'.join(lines))
# dont download everytime
if not os.path.isdir('torbundle') and os.name == 'nt':
get_tor_expert_bundle()
Expand Down

0 comments on commit ca31a55

Please sign in to comment.