From 6983bd980f7cb08e6581c54c112f592c6a6fc2ad Mon Sep 17 00:00:00 2001 From: probonopd Date: Wed, 5 Feb 2020 00:35:24 +0000 Subject: [PATCH] AppImage --- .travis.yml | 23 +++++++++++++++++++++++ resources/wxHexEditor.desktop | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..d5bd914f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +language: cpp +compiler: gcc +sudo: require +dist: xenial + +install: + - sudo apt-get -y install build-essential libwxgtk3.0-dev libmhash-dev libdisasm-dev + +script: + - sed -i -e 's| -lgomp||g' Makefile # FIXME: https://github.com/EUA/wxHexEditor/issues/150#issuecomment-575944402 + - sed -i -e 's|/usr/local|appdir/usr|g' Makefile # FIXME: https://github.com/probonopd/linuxdeployqt#for-projects-that-use-cmake-autotools-or-meson-with-ninja-instead-of-qmake + - make -j$(nproc) + - sudo make install ; sudo mv /appdir . ; sudo chown -R $USER appdir ; find appdir/ # FIXME: https://github.com/probonopd/linuxdeployqt#for-projects-that-use-cmake-autotools-or-meson-with-ninja-instead-of-qmake + - cp appdir/usr/share/pixmaps/wxHexEditor.png appdir/ + - wget -c -nv https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2) + - chmod +x ./appimagetool-*.AppImage + - ./appimagetool-*.AppImage deploy appdir/usr/share/applications/*.desktop + - ./appimagetool-*.AppImage appdir/ + +# do not build tags that we create when we upload to GitHub Releases +branches: + except: + - /^(?i:continuous)/ diff --git a/resources/wxHexEditor.desktop b/resources/wxHexEditor.desktop index d983bd89..ae2a691d 100644 --- a/resources/wxHexEditor.desktop +++ b/resources/wxHexEditor.desktop @@ -8,6 +8,6 @@ Exec=wxHexEditor Icon=wxHexEditor Terminal=false Type=Application -Categories=Utility;TextEditor;Utility; -Keywords[en_GB]=disk;drive;volume;harddisk;hdd;disc;cdrom;dvd;partition;iso;image;backup;restore;editor; +Categories=Utility;TextEditor; +Keywords=disk;drive;volume;harddisk;hdd;disc;cdrom;dvd;partition;iso;image;backup;restore;editor;