mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-11 12:18:54 -05:00
End web thread successfully when cleaning up after a tab, which prevents crashes after running the tests; and fix msi_filename in Windows build script
This commit is contained in:
parent
c7cec56408
commit
64227a9445
@ -39,7 +39,9 @@ def main():
|
||||
print("○ Create the binary")
|
||||
run(["briefcase", "create"], desktop_dir)
|
||||
run(["briefcase", "package"], desktop_dir)
|
||||
msi_filename = glob.glob(os.path.join(cli_dir, "windows", "OnionShare-*.msi"))[0]
|
||||
msi_filename = glob.glob(os.path.join(desktop_dir, "windows", "OnionShare-*.msi"))[
|
||||
0
|
||||
]
|
||||
print(f"○ Created unsigned installer: {msi_filename}")
|
||||
|
||||
print(f"○ Signing installer")
|
||||
|
@ -663,4 +663,6 @@ class Tab(QtWidgets.QWidget):
|
||||
return False
|
||||
|
||||
def cleanup(self):
|
||||
self.get_mode().web_thread.quit()
|
||||
self.get_mode().web_thread.wait()
|
||||
self.app.cleanup()
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
pytest -v tests/test_gui_tabs.py
|
||||
pytest -v tests/test_gui_share.py
|
||||
pytest -v tests/test_gui_receive.py
|
||||
pytest -v tests/test_gui_tabs.py && \
|
||||
pytest -v tests/test_gui_share.py && \
|
||||
pytest -v tests/test_gui_receive.py && \
|
||||
pytest -v tests/test_gui_website.py
|
||||
|
Loading…
x
Reference in New Issue
Block a user