diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1fc22654..6977d7cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,6 +50,10 @@ jobs: run: | echo "NEXT_PUBLIC_URL=${{ secrets.NEXT_PUBLIC_URL }}" > apps/desktop/.env echo "appVersion=${{ steps.get_version.outputs.appVersion }}" >> apps/desktop/.env + echo "NEXT_PUBLIC_ENVIRONMENT=production" >> apps/desktop/.env + + - name: Output .env file + run: cat apps/desktop/.env - name: Build the app uses: tauri-apps/tauri-action@v0 diff --git a/apps/desktop/src-tauri/Info.plist b/apps/desktop/src-tauri/Info.plist index bbf95dbd..559140f3 100644 --- a/apps/desktop/src-tauri/Info.plist +++ b/apps/desktop/src-tauri/Info.plist @@ -2,12 +2,6 @@ - NSCameraUsageDescription - Request camera access for WebRTC - NSMicrophoneUsageDescription - Request microphone access for WebRTC - NSScreenCaptureUsageDescription - Request screen capture access com.apple.security.cs.allow-jit com.apple.security.cs.allow-unsigned-executable-memory @@ -32,6 +26,12 @@ com.apple.security.inherit + NSCameraUsageDescription + Request camera access for WebRTC + NSMicrophoneUsageDescription + Request microphone access for WebRTC + NSScreenCaptureUsageDescription + Request screen capture access CFBundleURLTypes diff --git a/apps/desktop/src/components/windows/Permissions.tsx b/apps/desktop/src/components/windows/Permissions.tsx index 43c9e785..dc62d15b 100644 --- a/apps/desktop/src/components/windows/Permissions.tsx +++ b/apps/desktop/src/components/windows/Permissions.tsx @@ -66,9 +66,9 @@ export const Permissions = () => { useEffect(() => { const checkPermissions = async () => { - if (!permissions.screen) { - await checkScreenCapture(); - } + // if (!permissions.screen) { + // await checkScreenCapture(); + // } if (!permissions.camera) { await checkCameraAccess(); }