mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Make docs installation optional
This commit is contained in:
parent
a82a19e074
commit
35ea499857
8
Makefile
8
Makefile
@ -81,9 +81,9 @@ normpo :
|
||||
srcpkg :
|
||||
./scripts/srcpkg.sh
|
||||
|
||||
install: build/help | all pyc
|
||||
install: all pyc
|
||||
mkdir -p ${DESTDIR}${PREFIX}/share/dupeguru
|
||||
cp -rf ${packages} locale build/help ${DESTDIR}${PREFIX}/share/dupeguru
|
||||
cp -rf ${packages} locale ${DESTDIR}${PREFIX}/share/dupeguru
|
||||
cp -f run.py ${DESTDIR}${PREFIX}/share/dupeguru/run.py
|
||||
chmod 755 ${DESTDIR}${PREFIX}/share/dupeguru/run.py
|
||||
mkdir -p ${DESTDIR}${PREFIX}/bin
|
||||
@ -93,6 +93,10 @@ install: build/help | all pyc
|
||||
mkdir -p ${DESTDIR}${PREFIX}/share/pixmaps
|
||||
cp -f images/dgse_logo_128.png ${DESTDIR}${PREFIX}/share/pixmaps/dupeguru.png
|
||||
|
||||
installdocs: build/help
|
||||
mkdir -p ${DESTDIR}${PREFIX}/share/dupeguru
|
||||
cp -rf build/help ${DESTDIR}${PREFIX}/share/dupeguru
|
||||
|
||||
uninstall :
|
||||
rm -rf "${DESTDIR}${PREFIX}/share/dupeguru"
|
||||
rm -f "${DESTDIR}${PREFIX}/bin/dupeguru"
|
||||
|
@ -209,7 +209,11 @@ class DupeGuru(QObject):
|
||||
|
||||
def showHelpTriggered(self):
|
||||
base_path = platform.HELP_PATH
|
||||
url = QUrl.fromLocalFile(op.abspath(op.join(base_path, 'index.html')))
|
||||
help_path = op.abspath(op.join(base_path, 'index.html'))
|
||||
if op.exists(help_path):
|
||||
url = QUrl.fromLocalFile(help_path)
|
||||
else:
|
||||
url = QUrl('https://www.hardcoded.net/dupeguru/help/en/')
|
||||
QDesktopServices.openUrl(url)
|
||||
|
||||
#--- model --> view
|
||||
|
Loading…
x
Reference in New Issue
Block a user