Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Launch without checkScreenCapture func

Richie McIlroy413fb18272fc
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 1fc22654c..6977d7cf7 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 bbf95dbd1..559140f38 100644
--- a/apps/desktop/src-tauri/Info.plist
+++ b/apps/desktop/src-tauri/Info.plist
@@ -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>
@@ -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>
diff --git a/apps/desktop/src/components/windows/Permissions.tsx b/apps/desktop/src/components/windows/Permissions.tsx
index 43c9e7853..dc62d15b1 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();
}