forked from IPKM/nmreval
added build date of appimage as version; closes #48
This commit is contained in:
parent
40961a89df
commit
abe6ca42c7
@ -13,6 +13,8 @@ script:
|
|||||||
- cp bin/evaluate.py $TARGET_APPDIR/usr/bin/
|
- cp bin/evaluate.py $TARGET_APPDIR/usr/bin/
|
||||||
- cp -r src/* $TARGET_APPDIR/usr/src/
|
- cp -r src/* $TARGET_APPDIR/usr/src/
|
||||||
- cp src/pkm.vogel.nmreval.desktop $TARGET_APPDIR/usr/share/applications
|
- cp src/pkm.vogel.nmreval.desktop $TARGET_APPDIR/usr/share/applications
|
||||||
|
# set current date as version info
|
||||||
|
- sed -i "s/CURRENT_DATE/$(date +'%Y-%m-%d')/" $TARGET_APPDIR/usr/src/nmreval/version.py
|
||||||
|
|
||||||
|
|
||||||
AppDir:
|
AppDir:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'src/resources/_ui/basewindow.ui'
|
# Form implementation generated from reading ui file 'src/resources/_ui/basewindow.ui'
|
||||||
#
|
#
|
||||||
# Created by: PyQt5 UI code generator 5.15.9
|
# Created by: PyQt5 UI code generator 5.15.2
|
||||||
#
|
#
|
||||||
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
||||||
# run again. Do not edit this file unless you know what you are doing.
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
@ -360,6 +360,8 @@ class Ui_BaseWindow(object):
|
|||||||
self.actionShow_error_log.setObjectName("actionShow_error_log")
|
self.actionShow_error_log.setObjectName("actionShow_error_log")
|
||||||
self.actionCreate_starter = QtWidgets.QAction(BaseWindow)
|
self.actionCreate_starter = QtWidgets.QAction(BaseWindow)
|
||||||
self.actionCreate_starter.setObjectName("actionCreate_starter")
|
self.actionCreate_starter.setObjectName("actionCreate_starter")
|
||||||
|
self.actionAbout = QtWidgets.QAction(BaseWindow)
|
||||||
|
self.actionAbout.setObjectName("actionAbout")
|
||||||
self.menuSave.addAction(self.actionSave)
|
self.menuSave.addAction(self.actionSave)
|
||||||
self.menuSave.addAction(self.actionExportGraphic)
|
self.menuSave.addAction(self.actionExportGraphic)
|
||||||
self.menuSave.addAction(self.action_save_fit_parameter)
|
self.menuSave.addAction(self.action_save_fit_parameter)
|
||||||
@ -385,9 +387,9 @@ class Ui_BaseWindow(object):
|
|||||||
self.menuData.addSeparator()
|
self.menuData.addSeparator()
|
||||||
self.menuData.addAction(self.actionChange_datatypes)
|
self.menuData.addAction(self.actionChange_datatypes)
|
||||||
self.menuHelp.addAction(self.actionShow_error_log)
|
self.menuHelp.addAction(self.actionShow_error_log)
|
||||||
self.menuHelp.addAction(self.actionDocumentation)
|
|
||||||
self.menuHelp.addAction(self.actionUpdate)
|
self.menuHelp.addAction(self.actionUpdate)
|
||||||
self.menuHelp.addAction(self.actionBugs)
|
self.menuHelp.addAction(self.actionBugs)
|
||||||
|
self.menuHelp.addAction(self.actionAbout)
|
||||||
self.menuNormalize.addAction(self.action_norm_max)
|
self.menuNormalize.addAction(self.action_norm_max)
|
||||||
self.menuNormalize.addAction(self.action_norm_max_abs)
|
self.menuNormalize.addAction(self.action_norm_max_abs)
|
||||||
self.menuNormalize.addSeparator()
|
self.menuNormalize.addSeparator()
|
||||||
@ -485,7 +487,7 @@ class Ui_BaseWindow(object):
|
|||||||
|
|
||||||
self.retranslateUi(BaseWindow)
|
self.retranslateUi(BaseWindow)
|
||||||
self.tabWidget.setCurrentIndex(0)
|
self.tabWidget.setCurrentIndex(0)
|
||||||
self.action_close.triggered.connect(BaseWindow.close) # type: ignore
|
self.action_close.triggered.connect(BaseWindow.close)
|
||||||
QtCore.QMetaObject.connectSlotsByName(BaseWindow)
|
QtCore.QMetaObject.connectSlotsByName(BaseWindow)
|
||||||
|
|
||||||
def retranslateUi(self, BaseWindow):
|
def retranslateUi(self, BaseWindow):
|
||||||
@ -616,6 +618,7 @@ class Ui_BaseWindow(object):
|
|||||||
self.actionBugs.setText(_translate("BaseWindow", "Bugs! Problems! Wishes!"))
|
self.actionBugs.setText(_translate("BaseWindow", "Bugs! Problems! Wishes!"))
|
||||||
self.actionShow_error_log.setText(_translate("BaseWindow", "Show error log"))
|
self.actionShow_error_log.setText(_translate("BaseWindow", "Show error log"))
|
||||||
self.actionCreate_starter.setText(_translate("BaseWindow", "Create starter.."))
|
self.actionCreate_starter.setText(_translate("BaseWindow", "Create starter.."))
|
||||||
|
self.actionAbout.setText(_translate("BaseWindow", "About..."))
|
||||||
from ..data.datawidget.datawidget import DataWidget
|
from ..data.datawidget.datawidget import DataWidget
|
||||||
from ..data.integral_widget import IntegralWidget
|
from ..data.integral_widget import IntegralWidget
|
||||||
from ..data.point_select import PointSelectWidget
|
from ..data.point_select import PointSelectWidget
|
||||||
|
@ -1071,3 +1071,8 @@ class NMRMainWindow(QtWidgets.QMainWindow, Ui_BaseWindow):
|
|||||||
@QtCore.pyqtSlot(name='on_actionCreate_starter_triggered')
|
@QtCore.pyqtSlot(name='on_actionCreate_starter_triggered')
|
||||||
def create_starter(self):
|
def create_starter(self):
|
||||||
make_starter(os.getenv('APPIMAGE'))
|
make_starter(os.getenv('APPIMAGE'))
|
||||||
|
|
||||||
|
@QtCore.pyqtSlot(name='on_actionAbout_triggered')
|
||||||
|
def show_version(self):
|
||||||
|
from nmreval.version import __version__
|
||||||
|
QtWidgets.QMessageBox.about(self, 'Version', f'Build date of AppImage: {__version__}')
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
__version__ = '0.1.1'
|
__version__ = 'CURRENT_DATE'
|
||||||
__releasename__ = 'Snobilikat'
|
|
||||||
|
@ -190,9 +190,9 @@
|
|||||||
<string>&Help</string>
|
<string>&Help</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionShow_error_log"/>
|
<addaction name="actionShow_error_log"/>
|
||||||
<addaction name="actionDocumentation"/>
|
|
||||||
<addaction name="actionUpdate"/>
|
<addaction name="actionUpdate"/>
|
||||||
<addaction name="actionBugs"/>
|
<addaction name="actionBugs"/>
|
||||||
|
<addaction name="actionAbout"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuExtra">
|
<widget class="QMenu" name="menuExtra">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
@ -1005,6 +1005,11 @@
|
|||||||
<string>Create starter..</string>
|
<string>Create starter..</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionAbout">
|
||||||
|
<property name="text">
|
||||||
|
<string>About...</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
Loading…
Reference in New Issue
Block a user