Repository navigation
Expand file tree
/
Copy pathcommit_macos_fix.py
More file actions
40 lines (33 loc) · 1.46 KB
/
Copy pathcommit_macos_fix.py
File metadata and controls
40 lines (33 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import subprocess
import os
os.chdir(r'C:\Coding\Pascal')
print("=== Commit des corrections macOS ===")
# Add files
print("\n1. Adding files to git...")
result = subprocess.run(['git', 'add', '.github/workflows/build.yml', 'src-tauri/tauri.conf.json', 'src-tauri/entitlements.plist'], capture_output=True, text=True, shell=True)
print(f"Return code: {result.returncode}")
# Check status
print("\n2. Checking staged files...")
result = subprocess.run(['git', 'diff', '--cached', '--name-only'], capture_output=True, text=True, shell=True)
print(f"Staged files: {result.stdout}")
# Commit
print("\n3. Committing changes...")
result = subprocess.run([
'git', 'commit',
'-m', 'fix: add macOS entitlements and signing configuration',
'-m', '- Add entitlements.plist for required macOS permissions',
'-m', '- Update tauri.conf.json with macOS signing settings',
'-m', '- Update GitHub workflow to support macOS code signing',
'-m', '- Fixes app not opening on macOS due to Gatekeeper restrictions'
], capture_output=True, text=True, shell=True)
print(f"Return code: {result.returncode}")
print(f"Stdout: {result.stdout[:500]}")
if result.stderr:
print(f"Stderr: {result.stderr[:200]}")
# Push
print("\n4. Pushing to origin/Dev...")
result = subprocess.run(['git', 'push', 'origin', 'Dev'], capture_output=True, text=True, shell=True)
print(f"Return code: {result.returncode}")
if result.stderr:
print(f"Stderr: {result.stderr[:200]}")
print("\n=== Done ===")