diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b72284d..9741cc4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -89,13 +89,21 @@ jobs: for lib in release/Architect.app/Contents/MacOS/lib/*.dylib; do codesign --force --options runtime --timestamp --sign "$IDENTITY" "$lib" done - codesign --force --options runtime --timestamp --sign "$IDENTITY" release/Architect.app/Contents/MacOS/architect.bin + codesign --force --options runtime --timestamp --sign "$IDENTITY" \ + --entitlements macos/Architect.entitlements \ + release/Architect.app/Contents/MacOS/architect + codesign --force --options runtime --timestamp --sign "$IDENTITY" \ + --entitlements macos/Architect.entitlements \ + release/Architect.app else echo "No Developer ID cert available; applying ad-hoc signature for Gatekeeper" for lib in release/Architect.app/Contents/MacOS/lib/*.dylib; do codesign --force --sign - "$lib" done - codesign --force --sign - release/Architect.app/Contents/MacOS/architect.bin + codesign --force --sign - --entitlements macos/Architect.entitlements \ + release/Architect.app/Contents/MacOS/architect + codesign --force --sign - --entitlements macos/Architect.entitlements \ + release/Architect.app fi cd release tar -czf architect-macos-${{ matrix.arch }}.tar.gz Architect.app diff --git a/Formula/architect.rb b/Formula/architect.rb index 78590c8..ed2622a 100644 --- a/Formula/architect.rb +++ b/Formula/architect.rb @@ -46,20 +46,27 @@ def install #{version} CFBundleShortVersionString #{version} + NSHighResolutionCapable + + NSAppleEventsUsageDescription + A program running in Architect would like to use AppleScript. + NSCameraUsageDescription + A program running in Architect would like to use the camera. + NSMicrophoneUsageDescription + A program running in Architect would like to use your microphone. + NSContactsUsageDescription + A program running in Architect would like to access your Contacts. + NSCalendarsUsageDescription + A program running in Architect would like to access your Calendar. + NSLocationUsageDescription + A program running in Architect would like to access your location. + NSPhotoLibraryUsageDescription + A program running in Architect would like to access your Photo Library. EOS - (macos/"architect").write <<~EOS - #!/bin/bash - SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" - exec "$SCRIPT_DIR/architect.bin" "$@" - EOS - - chmod 0755, macos/"architect" - - (macos/"architect.bin").write (buildpath/"zig-out/bin/architect").read - chmod 0755, macos/"architect.bin" + install buildpath/"zig-out/bin/architect", macos/"architect" resources.install "assets/macos/#{app_name}.icns" end