Add a GitHub link. Also improve .spec files (no need to copy

source files). Also distinguish from running binary or script
in the displayed version.
This commit is contained in:
Alessandro
2019-09-07 21:37:26 +02:00
parent 1509e04c93
commit 44747464da
12 changed files with 125 additions and 86 deletions

View File

@@ -43,7 +43,14 @@ from utilities import (checksum_ok,
# import default_imgs_rc
__VERSION__ = "3.0.1"
__LATEST_VERSION__ = "3.0.1"
if hasattr(sys, '_MEIPASS'):
__VERSION__ = __LATEST_VERSION__
else:
__VERSION__ = __LATEST_VERSION__ + ".Dev"
qt_creator_file = resource_path("artemis.ui")
Ui_MainWindow, _ = uic.loadUiType(qt_creator_file)
@@ -78,6 +85,9 @@ class Artemis(QMainWindow, Ui_MainWindow):
self.action_rtl_sdr_com.triggered.connect(
lambda: webbrowser.open(Constants.RTL_SDL_LINK)
)
self.action_github.triggered.connect(
lambda: webbrowser.open(Constants.GITHUB_REPO)
)
self.db = None
self.current_signal_name = ''
self.signal_names = []

View File

@@ -9520,6 +9520,7 @@ QSlider::handle:horizontal {
<addaction name="action_aresvalley_com"/>
<addaction name="action_forum"/>
<addaction name="action_rtl_sdr_com"/>
<addaction name="action_github"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuUpdates"/>
@@ -9572,6 +9573,11 @@ QSlider::handle:horizontal {
<string>RTL-SDR.com</string>
</property>
</action>
<action name="action_github">
<property name="text">
<string>GitHub</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>

View File

@@ -114,6 +114,7 @@ class Constants:
ADD_SIGNAL_LINK = "https://www.sigidwiki.com/index.php/Special:FormEdit/Signal/?preload=Signal_Identification_Wiki:Signal_form_preload_text"
FORUM_LINK = "https://aresvalley.com/community/"
ARESVALLEY_LINK = "https://aresvalley.com/"
GITHUB_REPO = "https://github.com/AresValley/Artemis"
RTL_SDL_LINK = "https://www.rtl-sdr.com/"
UPDATING_STR = "Updating..."
ACF_DOCS = "https://aresvalley.com/documentation/"