Skip to content

Commit

Permalink
make manifest generation optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Mar 2, 2024
1 parent dd2df6b commit 49a67a8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cmake/AresPackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ execute_process(COMMAND ares-package "${CPACK_TEMPORARY_DIRECTORY}" -o "${CPACK_
-e "lib/pkgconfig"
--force-arch "${CPACK_WEBOS_PACKAGE_ARCH}"
COMMAND_ERROR_IS_FATAL ANY
)
)

execute_process(COMMAND webosbrew-gen-manifest -p "${CPACK_PACKAGE_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}.ipk"
find_program(GEN_MANIFEST webosbrew-gen-manifest)
if (NOT GEN_MANIFEST)
message(STATUS "Manifest generator not found, skipping manifest generation")
return()
endif ()

execute_process(COMMAND ${GEN_MANIFEST} -p "${CPACK_PACKAGE_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}.ipk"
-o "${CPACK_PACKAGE_DIRECTORY}/${CPACK_PACKAGE_NAME}.manifest.json"
-i "https://github.com/mariotaku/moonlight-tv/raw/main/deploy/webos/icon.png"
-l "https://github.com/mariotaku/moonlight-tv"
COMMAND_ERROR_IS_FATAL ANY
)
)

0 comments on commit 49a67a8

Please sign in to comment.