Browse Source

Merge pull request 'update .desktop file name' (#32) from wowario/wowlet:desktop into master

Reviewed-on: #32
pull/33/head
wowario 4 months ago
parent
commit
82ac1c2daf
  1. 4
      contrib/build-appimage.sh
  2. 2
      src/assets.qrc
  3. 4
      src/utils/utils.h

4
contrib/build-appimage.sh

@ -9,11 +9,11 @@ mkdir -p "$APPDIR"
mkdir -p "$APPDIR/usr/share/applications/"
mkdir -p "$APPDIR/usr/bin"
cp "$PWD/src/assets/wowlet.desktop" "$APPDIR/usr/share/applications/wowlet.desktop"
cp "$PWD/src/assets/org.wowlet.wowlet.desktop" "$APPDIR/usr/share/applications/org.wowlet.wowlet.desktop"
cp "$PWD/src/assets/images/appicons/64x64.png" "$APPDIR/wowlet.png"
cp "$PWD/build/bin/wowlet" "$APPDIR/usr/bin/wowlet"
LD_LIBRARY_PATH=/usr/local/lib /linuxdeployqt/squashfs-root/AppRun wowlet.AppDir/usr/share/applications/wowlet.desktop -bundle-non-qt-libs
LD_LIBRARY_PATH=/usr/local/lib /linuxdeployqt/squashfs-root/AppRun wowlet.AppDir/usr/share/applications/org.wowlet.wowlet.desktop -bundle-non-qt-libs
find wowlet.AppDir/ -exec touch -h -a -m -t 202101010100.00 {} \;

2
src/assets.qrc

@ -3,7 +3,7 @@
<file>assets/about.txt</file>
<file>assets/ack.txt</file>
<file>assets/contributors.txt</file>
<file>assets/wowlet.desktop</file>
<file>assets/org.wowlet.wowlet.desktop</file>
<file>assets/nodes.json</file>
<file>assets/images/appicons/32x32.png</file>
<file>assets/images/appicons/48x48.png</file>

4
src/utils/utils.h

@ -33,8 +33,8 @@ struct xdgDesktopEntryPaths {
};
const xdgDesktopEntryPaths xdgPaths = {
QString("%1/wowlet.desktop").arg(QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation)),
QString("%1/.local/share/icons/wownero.png").arg(QDir::homePath()),
QString("%1/org.wowlet.wowlet.desktop").arg(QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation)),
QString("%1/usr/share/icons/hicolor/64x64/apps/wowlet.png").arg(QDir::homePath()),
QString("/")
};

Loading…
Cancel
Save