Skip to content

Commit

Permalink
Launch without checkScreenCapture func
Browse files Browse the repository at this point in the history
  • Loading branch information
richiemcilroy committed Mar 19, 2024
1 parent a26e9a8 commit 413fb18
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions apps/desktop/src-tauri/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSCameraUsageDescription</key>
<string>Request camera access for WebRTC</string>
<key>NSMicrophoneUsageDescription</key>
<string>Request microphone access for WebRTC</string>
<key>NSScreenCaptureUsageDescription</key>
<string>Request screen capture access</string>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
Expand All @@ -32,6 +26,12 @@
<true/>
<key>com.apple.security.inherit</key>
<true/>
<key>NSCameraUsageDescription</key>
<string>Request camera access for WebRTC</string>
<key>NSMicrophoneUsageDescription</key>
<string>Request microphone access for WebRTC</string>
<key>NSScreenCaptureUsageDescription</key>
<string>Request screen capture access</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand Down
6 changes: 3 additions & 3 deletions apps/desktop/src/components/windows/Permissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

1 comment on commit 413fb18

@vercel
Copy link

@vercel vercel bot commented on 413fb18 Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.