From 25ec55bfc7ca2600efa0a6a043ad2b4ddb1d47cd Mon Sep 17 00:00:00 2001 From: Ozgur Ersoy Date: Sun, 13 Apr 2025 18:08:57 +0200 Subject: [PATCH] fix(workflows): refactor entitlements file creation to use echo commands instead of heredoc --- .gitea/workflows/test-macos-build.yml | 39 +++++++++++++-------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/test-macos-build.yml b/.gitea/workflows/test-macos-build.yml index 85aff27f..c3628bcf 100644 --- a/.gitea/workflows/test-macos-build.yml +++ b/.gitea/workflows/test-macos-build.yml @@ -26,26 +26,25 @@ jobs: ENTITLEMENTS_FILE="LuckyRobots.entitlements" else echo "Creating default entitlements file as LuckyWorld.entitlements" - cat > LuckyWorld.entitlements << 'EOF' - - - - - com.apple.security.cs.allow-jit - - com.apple.security.cs.allow-unsigned-executable-memory - - com.apple.security.cs.disable-library-validation - - com.apple.security.cs.allow-dyld-environment-variables - - com.apple.security.device.audio-input - - com.apple.security.device.camera - - - -EOF + # Create entitlements file line by line instead of heredoc + echo '' > LuckyWorld.entitlements + echo '' >> LuckyWorld.entitlements + echo '' >> LuckyWorld.entitlements + echo '' >> LuckyWorld.entitlements + echo ' com.apple.security.cs.allow-jit' >> LuckyWorld.entitlements + echo ' ' >> LuckyWorld.entitlements + echo ' com.apple.security.cs.allow-unsigned-executable-memory' >> LuckyWorld.entitlements + echo ' ' >> LuckyWorld.entitlements + echo ' com.apple.security.cs.disable-library-validation' >> LuckyWorld.entitlements + echo ' ' >> LuckyWorld.entitlements + echo ' com.apple.security.cs.allow-dyld-environment-variables' >> LuckyWorld.entitlements + echo ' ' >> LuckyWorld.entitlements + echo ' com.apple.security.device.audio-input' >> LuckyWorld.entitlements + echo ' ' >> LuckyWorld.entitlements + echo ' com.apple.security.device.camera' >> LuckyWorld.entitlements + echo ' ' >> LuckyWorld.entitlements + echo '' >> LuckyWorld.entitlements + echo '' >> LuckyWorld.entitlements ENTITLEMENTS_FILE="LuckyWorld.entitlements" fi