artex-ai 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: artex-ai
3
+ Version: 1.0.0
4
+ Summary: ARTEX AI
5
+ Requires-Python: >=3.8
File without changes
@@ -0,0 +1,44 @@
1
+ import os, sys, zipfile, subprocess, urllib.request
2
+ from pathlib import Path
3
+
4
+ ZIP_URL = "https://github.com/Arteker721/artex-ai-release/releases/download/v1.0.0/ARTEX-AI.zip"
5
+
6
+ def create_desktop_shortcut(target_exe: Path, shortcut_path: Path):
7
+ ps_script = f"""
8
+ $WshShell = New-Object -comObject WScript.Shell
9
+ $Shortcut = $WshShell.CreateShortcut("{shortcut_path}")
10
+ $Shortcut.TargetPath = "{target_exe}"
11
+ $Shortcut.WorkingDirectory = "{target_exe.parent}"
12
+ $Shortcut.Save()
13
+ """
14
+ subprocess.run(["powershell", "-NoProfile", "-Command", ps_script], creationflags=0x08000000)
15
+
16
+ def main():
17
+ if sys.platform != "win32":
18
+ print("Xatolik: ARTEX AI hozircha faqat Windows tizimida ishlaydi.")
19
+ return
20
+
21
+ desktop = Path.home() / "Desktop"
22
+ install_dir = desktop / "ARTEX-AI"
23
+ exe_path = install_dir / "ARTEX-AI.exe"
24
+ zip_path = desktop / "artex_temp.zip"
25
+
26
+ if not exe_path.exists():
27
+ print("ARTEX AI yuklab olinmoqda... Biroz kuting.")
28
+ try:
29
+ urllib.request.urlretrieve(ZIP_URL, zip_path)
30
+ print("Fayllar Desktop'ga ochilmoqda...")
31
+ with zipfile.ZipFile(zip_path, "r") as zf:
32
+ zf.extractall(desktop)
33
+ zip_path.unlink(missing_ok=True)
34
+ create_desktop_shortcut(exe_path, desktop / "ARTEX-AI.lnk")
35
+ print("ARTEX AI Desktop'ga muvaffaqiyatli o'rnatildi!")
36
+ except Exception as e:
37
+ print(f"Xatolik yuz berdi: {e}")
38
+ return
39
+
40
+ print("ARTEX AI ishga tushirilmoqda...")
41
+ subprocess.Popen([str(exe_path)], cwd=str(install_dir))
42
+
43
+ if __name__ == "__main__":
44
+ main()
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: artex-ai
3
+ Version: 1.0.0
4
+ Summary: ARTEX AI
5
+ Requires-Python: >=3.8
@@ -0,0 +1,8 @@
1
+ pyproject.toml
2
+ artex_ai/__init__.py
3
+ artex_ai/main.py
4
+ artex_ai.egg-info/PKG-INFO
5
+ artex_ai.egg-info/SOURCES.txt
6
+ artex_ai.egg-info/dependency_links.txt
7
+ artex_ai.egg-info/entry_points.txt
8
+ artex_ai.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ artex-ai = artex_ai.main:main
@@ -0,0 +1 @@
1
+ artex_ai
@@ -0,0 +1,12 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "artex-ai"
7
+ version = "1.0.0"
8
+ description = "ARTEX AI"
9
+ requires-python = ">=3.8"
10
+
11
+ [project.scripts]
12
+ artex-ai = "artex_ai.main:main"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+