Skip to content

Commit

Permalink
use single package for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sorayuki committed Dec 2, 2023
1 parent d0db508 commit 4fd6d92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/.package.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ ${_usage_host:-}"
pushd ${project_root}/release/${config}
# XZ_OPT=-T0 tar "-${_tarflags}" ${project_root}/release/${output_name}.tar.xz (lib|share)
XZ_OPT=-T0 tar --transform='s#dist#.var/app/com.obsproject.Studio/config#' "-${_tarflags}" ${project_root}/release/${output_name}-flatpak.tar.xz dist
XZ_OPT=-T0 tar --transform='s#dist#.config#' "-${_tarflags}" ${project_root}/release/${output_name}.tar.xz dist
pushd dist
XZ_OPT=-T0 tar "-${_tarflags}" ${project_root}/release/${output_name}.tar.xz *
popd
popd
}
log_group
Expand Down
10 changes: 5 additions & 5 deletions cmake/linux/helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include_guard(GLOBAL)

include(helpers_common)

set(DIST_ROOT_IN_CONFIG obs-studio/plugins/${CMAKE_PROJECT_NAME})
set(PLUGIN_FOLDER ${CMAKE_PROJECT_NAME})

# set_target_properties_plugin: Set target properties for use in obs-studio
function(set_target_properties_plugin target)
Expand Down Expand Up @@ -41,8 +41,8 @@ function(set_target_properties_plugin target)

install(
TARGETS ${target}
RUNTIME DESTINATION dist/${DIST_ROOT_IN_CONFIG}/bin/${OBSARCHNAME}
LIBRARY DESTINATION dist/${DIST_ROOT_IN_CONFIG}/bin/${OBSARCHNAME})
RUNTIME DESTINATION dist/${PLUGIN_FOLDER}/bin/${OBSARCHNAME}
LIBRARY DESTINATION dist/${PLUGIN_FOLDER}/bin/${OBSARCHNAME})

if(TARGET plugin-support)
target_link_libraries(${target} PRIVATE plugin-support)
Expand Down Expand Up @@ -79,7 +79,7 @@ function(target_install_resources target)

install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/data/"
DESTINATION dist/${DIST_ROOT_IN_CONFIG}/data
DESTINATION dist/${PLUGIN_FOLDER}/data
USE_SOURCE_PERMISSIONS)
endif()
endfunction()
Expand All @@ -90,7 +90,7 @@ function(target_add_resource target resource)

# install(FILES "${resource}" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/obs/obs-plugins/${target})

install(FILES "${resource}" DESTINATION dist/${DIST_ROOT_IN_CONFIG}/data)
install(FILES "${resource}" DESTINATION dist/${PLUGIN_FOLDER}/data)

source_group("Resources" FILES "${resource}")
endfunction()

0 comments on commit 4fd6d92

Please sign in to comment.