Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate and upload AppImage #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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)/
4 changes: 2 additions & 2 deletions resources/wxHexEditor.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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;