Create AppImage

This commit is contained in:
Florian Märkl 2019-08-17 22:29:21 +02:00
parent 47254d7069
commit 4d3ac9d51f
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
6 changed files with 29 additions and 2 deletions

2
.gitignore vendored
View file

@ -3,3 +3,5 @@
build
cmake-build-*
.DS_store
*.AppImage
appdir

View file

@ -22,6 +22,16 @@ matrix:
- libavcodec-dev
env:
- CMAKE_PREFIX_PATH="/opt/qt512"
- CMAKE_EXTRA_ARGS="-DCMAKE_INSTALL_PREFIX=/usr"
after_success:
- make install DESTDIR=../appdir
- cd ..
- wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod +x linuxdeploy-x86_64.AppImage
- wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage && chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
#- export QMAKE=/opt/qt512/bin/qmake
- source /opt/qt512/bin/qt512-env.sh
- ./linuxdeploy-x86_64.AppImage --appdir=appdir -e appdir/usr/bin/chiaki -d appdir/usr/share/applications/chiaki.desktop --plugin qt --output appimage
- mv Chiaki-*-x86_64.AppImage Chiaki-x86_64.AppImage
- os: osx
osx_image: xcode11
@ -34,6 +44,7 @@ matrix:
- ffmpeg
env:
- CMAKE_PREFIX_PATH="/usr/local/opt/openssl@1.1;/usr/local/opt/qt"
- CMAKE_EXTRA_ARGS=""
script:
- mkdir build && cd build
@ -43,6 +54,7 @@ script:
-DCHIAKI_ENABLE_TESTS=ON
-DCHIAKI_ENABLE_CLI=OFF
-DCHIAKI_GUI_ENABLE_QT_GAMEPAD=ON
$CMAKE_EXTRA_ARGS
..
- make -j4
- test/chiaki-unit

View file

@ -75,4 +75,10 @@ set_target_properties(chiaki PROPERTIES
MACOSX_BUNDLE_COPYRIGHT "thestr4ng3r (GPLv3)"
MACOSX_BUNDLE_GUI_IDENTIFIER "org.chiaki.chiaki"
MACOSX_BUNDLE_ICON_FILE chiaki.icns
RESOURCE "${RESOURCE_FILES}")
RESOURCE "${RESOURCE_FILES}")
install(TARGETS chiaki
RUNTIME DESTINATION bin
BUNDLE DESTINATION bin)
install(FILES chiaki.desktop DESTINATION share/applications)
install(FILES chiaki.png DESTINATION share/icons/hicolor/512x512)

7
gui/chiaki.desktop Normal file
View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=Chiaki
Comment=PlayStation 4 Remote Play Client
Exec=chiaki
Icon=chiaki
Categories=Game;

BIN
gui/chiaki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -5,7 +5,7 @@
find_package(PythonInterp 3 REQUIRED) # Make sure nanopb doesn't find Python 2.7 because Python 2 should just die.
add_subdirectory(nanopb)
add_subdirectory(nanopb EXCLUDE_FROM_ALL)
set(NANOPB_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/nanopb")
set(NANOPB_SOURCE_DIR "${NANOPB_SOURCE_DIR}" PARENT_SCOPE)
set(NANOPB_GENERATOR_PY "${NANOPB_SOURCE_DIR}/generator/nanopb_generator.py" PARENT_SCOPE)