mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 05:23:12 -07:00
Create AppImage
This commit is contained in:
parent
47254d7069
commit
4d3ac9d51f
6 changed files with 29 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,3 +3,5 @@
|
||||||
build
|
build
|
||||||
cmake-build-*
|
cmake-build-*
|
||||||
.DS_store
|
.DS_store
|
||||||
|
*.AppImage
|
||||||
|
appdir
|
||||||
|
|
12
.travis.yml
12
.travis.yml
|
@ -22,6 +22,16 @@ matrix:
|
||||||
- libavcodec-dev
|
- libavcodec-dev
|
||||||
env:
|
env:
|
||||||
- CMAKE_PREFIX_PATH="/opt/qt512"
|
- 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
|
- os: osx
|
||||||
osx_image: xcode11
|
osx_image: xcode11
|
||||||
|
@ -34,6 +44,7 @@ matrix:
|
||||||
- ffmpeg
|
- ffmpeg
|
||||||
env:
|
env:
|
||||||
- CMAKE_PREFIX_PATH="/usr/local/opt/openssl@1.1;/usr/local/opt/qt"
|
- CMAKE_PREFIX_PATH="/usr/local/opt/openssl@1.1;/usr/local/opt/qt"
|
||||||
|
- CMAKE_EXTRA_ARGS=""
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir build && cd build
|
- mkdir build && cd build
|
||||||
|
@ -43,6 +54,7 @@ script:
|
||||||
-DCHIAKI_ENABLE_TESTS=ON
|
-DCHIAKI_ENABLE_TESTS=ON
|
||||||
-DCHIAKI_ENABLE_CLI=OFF
|
-DCHIAKI_ENABLE_CLI=OFF
|
||||||
-DCHIAKI_GUI_ENABLE_QT_GAMEPAD=ON
|
-DCHIAKI_GUI_ENABLE_QT_GAMEPAD=ON
|
||||||
|
$CMAKE_EXTRA_ARGS
|
||||||
..
|
..
|
||||||
- make -j4
|
- make -j4
|
||||||
- test/chiaki-unit
|
- test/chiaki-unit
|
||||||
|
|
|
@ -76,3 +76,9 @@ set_target_properties(chiaki PROPERTIES
|
||||||
MACOSX_BUNDLE_GUI_IDENTIFIER "org.chiaki.chiaki"
|
MACOSX_BUNDLE_GUI_IDENTIFIER "org.chiaki.chiaki"
|
||||||
MACOSX_BUNDLE_ICON_FILE chiaki.icns
|
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
7
gui/chiaki.desktop
Normal 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
BIN
gui/chiaki.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
2
third-party/CMakeLists.txt
vendored
2
third-party/CMakeLists.txt
vendored
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
find_package(PythonInterp 3 REQUIRED) # Make sure nanopb doesn't find Python 2.7 because Python 2 should just die.
|
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 "${CMAKE_CURRENT_SOURCE_DIR}/nanopb")
|
||||||
set(NANOPB_SOURCE_DIR "${NANOPB_SOURCE_DIR}" PARENT_SCOPE)
|
set(NANOPB_SOURCE_DIR "${NANOPB_SOURCE_DIR}" PARENT_SCOPE)
|
||||||
set(NANOPB_GENERATOR_PY "${NANOPB_SOURCE_DIR}/generator/nanopb_generator.py" PARENT_SCOPE)
|
set(NANOPB_GENERATOR_PY "${NANOPB_SOURCE_DIR}/generator/nanopb_generator.py" PARENT_SCOPE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue