support installation on Linux

1. Add vnote.desktop and related icons for Linux;
2. Update app icon.
This commit is contained in:
Le Tan 2017-03-05 13:04:27 +08:00
parent e2b29766d1
commit 22407e34a3
18 changed files with 56 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -4,13 +4,13 @@
<title>vnote</title>
<g>
<title>Layer 1</title>
<rect fill="#d6eace" stroke-width="5" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" x="7.347208" y="7.734668" width="689.270961" height="689.192807" id="svg_11" stroke-opacity="0" rx="40" ry="40" stroke="#000000"/>
<path fill="#15ae67" stroke-width="null" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" d="m281.05692,660.46829l0,-280.60453l281.40245,280.60453l-281.40245,0z" id="svg_16" stroke-opacity="0" stroke="#000000" transform="rotate(90 421.7581481933593,520.1660156250001) "/>
<path fill="#15ae67" stroke-width="null" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" d="m281.08756,379.17628l0,-280.60453l281.40245,280.60453l-281.40245,0z" stroke-opacity="0" stroke="#000000" id="svg_17" transform="rotate(-90 421.7887878417969,238.8740081787109) "/>
<path fill="#15ae67" stroke-width="null" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" d="m182.33522,619.21682l0,-198.20758l198.91257,198.20758l-198.91257,0z" stroke-opacity="0" id="svg_18" transform="rotate(45 281.79150390625006,520.113037109375) " stroke="#000000"/>
<path fill="#75c5b5" stroke-width="null" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" d="m422.02674,238.38294l0,-139.89771l140.29552,139.89771l-140.29552,0z" stroke-opacity="0" id="svg_19" transform="rotate(90 492.17449951171875,168.43408203125006) " stroke="#000000"/>
<path fill="#15ae67" stroke-width="null" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" d="m113.18218,170.570288l99.16604,-100.31204l99.16604,100.31204l-99.16604,100.31204l-99.16604,-100.31204z" id="svg_21" stroke-opacity="0" transform="rotate(45 212.3482208251953,170.57028198242185) " stroke="#000000"/>
<path fill="#15ae67" stroke-width="null" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" d="m141.1856,380.95421l0,-139.8977l140.29551,139.8977l-140.29551,0z" stroke-opacity="0" stroke="#000000" id="svg_23" transform="rotate(90 211.3333587646484,311.00537109375006) "/>
<path fill="#15ae67" stroke="#000000" stroke-width="null" stroke-dasharray="null" stroke-linejoin="null" stroke-linecap="null" d="m282.42881,239.57986l-141.06249,141.17188l0,139.21875l140.0625,-140.0625l0.99999,-140.32813z" id="svg_39" stroke-opacity="0"/>
<rect stroke="#000000" ry="40" rx="40" stroke-opacity="0" id="svg_11" height="704.510604" width="704.290516" y="-0.083155" x="-0.246548" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="5" fill="#d6eace"/>
<path transform="rotate(90 421.7581481933593,520.1660156250001) " stroke="#000000" stroke-opacity="0" id="svg_16" d="m281.05692,660.46829l0,-280.60453l281.40245,280.60453l-281.40245,0z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#15ae67"/>
<path transform="rotate(-90 421.7887878417969,238.8740081787109) " id="svg_17" stroke="#000000" stroke-opacity="0" d="m281.08756,379.17628l0,-280.60453l281.40245,280.60453l-281.40245,0z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#15ae67"/>
<path stroke="#000000" transform="rotate(45 281.79150390625006,520.113037109375) " id="svg_18" stroke-opacity="0" d="m182.33522,619.21682l0,-198.20758l198.91257,198.20758l-198.91257,0z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#15ae67"/>
<path stroke="#000000" transform="rotate(90 492.17449951171875,168.43408203125006) " id="svg_19" stroke-opacity="0" d="m422.02674,238.38294l0,-139.89771l140.29552,139.89771l-140.29552,0z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#75c5b5"/>
<path stroke="#000000" transform="rotate(45 212.3482208251953,170.57028198242185) " stroke-opacity="0" id="svg_21" d="m113.18218,170.57029l99.16604,-100.31204l99.16604,100.31204l-99.16604,100.31204l-99.16604,-100.31204z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#15ae67"/>
<path transform="rotate(90 211.3333587646484,311.00537109375006) " id="svg_23" stroke="#000000" stroke-opacity="0" d="m141.1856,380.95421l0,-139.8977l140.29551,139.8977l-140.29551,0z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" fill="#15ae67"/>
<path stroke-opacity="0" id="svg_39" d="m282.42881,239.57986l-141.06249,141.17188l0,139.21875l140.0625,-140.0625l0.99999,-140.32813z" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="null" stroke="#000000" fill="#15ae67"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -116,3 +116,40 @@ else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../peg-
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../peg-highlight/release/peg-highlight.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../peg-highlight/debug/peg-highlight.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../peg-highlight/libpeg-highlight.a
## INSTALLS
unix:!macx {
isEmpty(PREFIX): PREFIX = /usr
DATADIR = $${PREFIX}/share
# install desktop file
desktop.path = $${DATADIR}/applications
desktop.files += vnote.desktop
# install icons
icon16.path = $${DATADIR}/icons/hicolor/16x16/apps
icon16.files = resources/icons/16x16/vnote.png
icon32.path = $${DATADIR}/icons/hicolor/32x32/apps
icon32.files = resources/icons/32x32/vnote.png
icon48.path = $${DATADIR}/icons/hicolor/48x48/apps
icon48.files = resources/icons/48x48/vnote.png
icon64.path = $${DATADIR}/icons/hicolor/64x64/apps
icon64.files = resources/icons/64x64/vnote.png
icon128.path = $${DATADIR}/icons/hicolor/128x128/apps
icon128.files = resources/icons/128x128/vnote.png
icon256.path = $${DATADIR}/icons/hicolor/256x256/apps
icon256.files = resources/icons/256x256/vnote.png
iconsvg.path = $${DATADIR}/icons/hicolor/scalable/apps
iconsvg.files = resources/icons/vnote.svg
target.path = $${PREFIX}/bin
INSTALLS += target desktop icon16 icon32 icon48 icon64 icon128 icon256 iconsvg
message("VNote will be installed in prefix $${PREFIX}")
}

11
src/vnote.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=VNote
GenericName=Markdown Note
Comment=Note-taking application for pleasant Markdown
Icon=vnote
Terminal=false
Exec=VNote
MimeType=text/markdown;
Categories=Qt;Utility;TextEditor;Office;