Skip to content

Commit 74d1e5f

Browse files
committed
Build fixes [stage]
1 parent 1c79116 commit 74d1e5f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dist/base.gradle

+7-7
Original file line numberDiff line numberDiff line change
@@ -224,24 +224,24 @@ if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
224224
debugAttachArguments + ' ' + debugArguments)
225225
debugAttach.setExecutable(true, false)
226226

227-
if (System.getenv("MACOS_DEVELOPER_ID_APPLICATION_CERTIFICATE_NAME") != null) {
228-
exec {
229-
commandLine "$projectDir/misc/mac/sign_and_notarize.sh", "$projectDir", rootProject.arch.toString(), rootProject.productName
230-
}
231-
}
232-
233227
if (fullVersion) {
234228
def nativeLib = "$projectDir/native_lib/macos"
235229
def proj = "$nativeLib/xpipe_bridge.xcodeproj"
236230
exec {
237231
environment 'CONFIGURATION_BUILD_DIR', project.getLayout().getBuildDirectory().dir("native_lib")
238-
commandLine 'xcodebuild', '-configuration', 'Release', '-project', proj, '-scheme', 'xpipe_bridge', '-derivedDataPath', project.getLayout().getBuildDirectory().dir("native_lib").get(), 'build'
232+
commandLine 'xcodebuild', '-configuration', 'Release', '-project', proj, '-scheme', 'xpipe_bridge', '-derivedDataPath', project.getLayout().getBuildDirectory().dir("native_lib").get(), 'build', 'CODE_SIGNING_ALLOWED=NO'
239233
}
240234
copy {
241235
from project.getLayout().getBuildDirectory().dir("native_lib/Build/Products/Release").get().file('libxpipe_bridge.dylib')
242236
into "$distDir/$app/Contents/runtime/Contents/Home/lib/"
243237
}
244238
}
239+
240+
if (System.getenv("MACOS_DEVELOPER_ID_APPLICATION_CERTIFICATE_NAME") != null) {
241+
exec {
242+
commandLine "$projectDir/misc/mac/sign_and_notarize.sh", "$projectDir", rootProject.arch.toString(), rootProject.productName
243+
}
244+
}
245245
}
246246
}
247247
}

0 commit comments

Comments
 (0)