Revert Fix CI partially (#38)

* Revert "Fix CI (#37)"

This reverts commit 832efe1865.

* Update build-project.yaml

* Update .build.zsh
This commit is contained in:
Kaito Udagawa
2023-10-11 04:47:54 +09:00
committed by GitHub
parent 832efe1865
commit a02b2ac819

View File

@@ -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