import os
import winshell
from win32com.client import Dispatch

desktop = winshell.desktop()
path = os.path.join(desktop, "القرآن الكريم.lnk")
target_html = r"C:\Users\212\.gemini\antigravity-ide\scratch\quran-app\index.html"

shell = Dispatch('WScript.Shell')
shortcut = shell.CreateShortCut(path)
shortcut.Targetpath = "msedge.exe"
shortcut.Arguments = f'--app="file:///{target_html.replace(os.sep, "/")}"'
shortcut.WorkingDirectory = r"C:\Users\212\.gemini\antigravity-ide\scratch\quran-app"
shortcut.Description = "تطبيق القرآن الكريم والأذكار"
shortcut.save()

print(f"Shortcut created successfully at: {path}")
