retext icon indicating copy to clipboard operation
retext copied to clipboard

make official tarball portable, and move share data dir to package dir.

Open zaazbb opened this issue 8 years ago • 4 comments

i want a portable tarball, so i can install it or run it directly. so, i sugest that: 1, move all date file to share dir, same as the installed dir.

ReTextSourceRoot/share/appdata/me.mitya57.ReText.appdata.xml
ReTextSourceRoot/share/applications/me.mitya57.ReText.desktop
ReTextSourceRoot/share/icons/hicolor/scalable/apps/icons/retext.svg
ReTextSourceRoot/share/retext/icons/*
ReTextSourceRoot/share/retext/locale/*.qm

2, add the source root dir to datadirs. add datadirs.append(join(sys.path[0], 'share', 'retext')) to the initializeDataDirs() function.

now, the tarball should be portable.

and, i want keep my python root dir clean. so, the share data dir under windows, should be move to the package dir, like this PythonXX\Lib\site-packages\ReText\share\date-files.

zaazbb avatar Nov 16 '17 04:11 zaazbb

and, the release tar (on the release web page, not on pypi), should include icons, and portable. so, i can unzip it , run it directly.

zaazbb avatar Nov 16 '17 04:11 zaazbb

You should be already able to run ReText directly from the tarball. It will find the icons, translations, etc. in their current location (so no need to move anything).

The official tarball is on PyPI. What is on GitHub is generated automatically from Git repository and does not contain generated files.

mitya57 avatar Nov 16 '17 08:11 mitya57

no, if only unzip the tarball(do not install), and i do not move data files to share dir, and do not add the sourc- root-dir/share/... to datadirs, it can't disp tool button icons. my os: windows 10, 64 bit.

zaazbb avatar Nov 16 '17 09:11 zaazbb

Does this still happen with the latest official tarball (ReText-7.0.3.tar.gz)?

mitya57 avatar Jul 14 '18 07:07 mitya57