Skip to content

Commit

Permalink
Revert "Fix CI (#37)"
Browse files Browse the repository at this point in the history
This reverts commit 832efe1.
  • Loading branch information
umireon committed Oct 10, 2023
1 parent 832efe1 commit ab898c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion .github/scripts/.build.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ ${_usage_host:-}"
-G "${generator}"
-DQT_VERSION=${QT_VERSION:-6}
-DCMAKE_BUILD_TYPE=${config}
-DCMAKE_INSTALL_PREFIX=/usr
)
local cmake_version
Expand Down
14 changes: 2 additions & 12 deletions .github/scripts/.package.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,13 @@ ${_usage_host:-}"
if (( _loglevel > 1 || ${+CI} )) _tarflags="v${_tarflags}"
if (( package )) {
if [[ ! -f ${project_root}/build_macos/Distribution.generated.xml ]] {
log_error 'Distribution file not found. Run the build script or the CMake build and install procedures first.'
if [[ ! -f ${project_root}/release/${config}/${product_name}.pkg ]] {
log_error 'Installer Package not found. Run the build script or the CMake build and install procedures first.'
return 2
}
log_group "Packaging ${product_name}..."
pushd ${project_root}
pkgbuild \
--component "${project_root}/release/${config}/${product_name}.plugin" \
--install-location "/Library/Application Support/obs-studio/plugins" \
--scripts "${project_root}/cmake/macos/resources/scripts" \
"${project_root}/release/${config}/${product_name}-flat.pkg"
productbuild \
--distribution "${project_root}/build_macos/Distribution.generated.xml" \
--package-path "${project_root}/release/${config}" \
"${project_root}/release/${config}/${product_name}.pkg"
rm "${project_root}/release/${config}/${product_name}-flat.pkg"
if (( codesign )) {
read_codesign_installer
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
case "${GITHUB_EVENT_NAME}" in
pull_request)
config_data=('codesign:false' 'notarize:false' 'package:false' 'config:RelWithDebInfo')
if [[ ${{ contains(github.event.pull_request.labels.*.name, 'Seeking Testers') }} = true ]]; then
if gh pr view --json labels \
| jq -e -r '.labels[] | select(.name == "Seeking Testers")' > /dev/null; then
config_data[0]='codesign:true'
config_data[2]='package:true'
fi
Expand Down

0 comments on commit ab898c9

Please sign in to comment.