Skip to content

Commit

Permalink
fix packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor committed Dec 14, 2019
1 parent 6c42e13 commit 2b4bb24
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ add_subdirectory(etc)
add_subdirectory(scripts)
add_subdirectory(src)

set(package_name nebula-gears)
set(package_name nebula-gears-installer)
configure_file(
${CMAKE_SOURCE_DIR}/aux/self-extractable.sh.in
${CMAKE_BINARY_DIR}/${package_name}.sh
${CMAKE_BINARY_DIR}/${package_name}-meta.sh
@ONLY
)

Expand All @@ -42,7 +42,9 @@ add_custom_target(
COMMAND
make -s install DESTDIR=${CMAKE_BINARY_DIR}/stage
COMMAND
tar -cJvf - -C ${CMAKE_BINARY_DIR}/stage/${CMAKE_INSTALL_PREFIX} . >> ${CMAKE_BINARY_DIR}/${package_name}.sh
cp -f ${CMAKE_BINARY_DIR}/${package_name}-meta.sh ${package_name}.sh
COMMAND
tar -cJf - -C ${CMAKE_BINARY_DIR}/stage/${CMAKE_INSTALL_PREFIX} . >> ${CMAKE_BINARY_DIR}/${package_name}.sh
COMMAND
chmod +x ${CMAKE_BINARY_DIR}/${package_name}.sh
)

0 comments on commit 2b4bb24

Please sign in to comment.