diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b3f911a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +language: cpp +sudo: required + +addons: + apt: + update: true + packages: + - libboost-regex1.55-dev + - libboost-filesystem1.55-dev + - libmagick++-dev + - automake # required for patchelf + +install: + - git clone https://github.com/NixOS/patchelf.git + - cd patchelf + - ./bootstrap.sh + - ./configure --prefix=/usr + - make -j$(nproc) + - sudo make install + - cd .. + - rm -rf patchelf + +script: + - mkdir build + - cd build + - cmake .. + - make VERBOSE=1 + - bin/linuxdeploy --init-appdir --appdir AppDir -e bin/linuxdeploy -i ../resources/linuxdeploy.png --create-desktop-file + - wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage + - chmod +x appimagetool-x86_64.AppImage + - ./appimagetool-x86_64.AppImage AppDir diff --git a/resources/linuxdeploy.png b/resources/linuxdeploy.png new file mode 100644 index 0000000..2536bce Binary files /dev/null and b/resources/linuxdeploy.png differ diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 7d8731e..33e726c 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -20,6 +20,7 @@ execute_process( add_library(core elf.cpp log.cpp appdir.cpp desktopfile.cpp ${HEADERS}) target_link_libraries(core Boost::filesystem Boost::regex subprocess cpp-feather-ini-parser PkgConfig::magick++ ${CMAKE_THREAD_LIBS_INIT}) target_include_directories(core PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) +target_compile_definitions(core PUBLIC -DBOOST_NO_CXX11_SCOPED_ENUMS) add_executable(linuxdeploy main.cpp) target_link_libraries(linuxdeploy core args)