mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-06 05:06:00 -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
a8ef55550f
commit
f67e7ce678
@ -39,7 +39,9 @@ def main():
|
|||||||
print("○ Create the binary")
|
print("○ Create the binary")
|
||||||
run(["briefcase", "create"], desktop_dir)
|
run(["briefcase", "create"], desktop_dir)
|
||||||
run(["briefcase", "package"], 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"○ Created unsigned installer: {msi_filename}")
|
||||||
|
|
||||||
print(f"○ Signing installer")
|
print(f"○ Signing installer")
|
||||||
|
@ -663,4 +663,6 @@ class Tab(QtWidgets.QWidget):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
|
self.get_mode().web_thread.quit()
|
||||||
|
self.get_mode().web_thread.wait()
|
||||||
self.app.cleanup()
|
self.app.cleanup()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
pytest -v tests/test_gui_tabs.py
|
pytest -v tests/test_gui_tabs.py && \
|
||||||
pytest -v tests/test_gui_share.py
|
pytest -v tests/test_gui_share.py && \
|
||||||
pytest -v tests/test_gui_receive.py
|
pytest -v tests/test_gui_receive.py && \
|
||||||
pytest -v tests/test_gui_website.py
|
pytest -v tests/test_gui_website.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user