clapp-pm 1.0.43__py3-none-any.whl → 1.0.44__py3-none-any.whl
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.
- {clapp_pm-1.0.43.data → clapp_pm-1.0.44.data}/data/version.json +1 -1
- {clapp_pm-1.0.43.dist-info → clapp_pm-1.0.44.dist-info}/METADATA +1 -1
- {clapp_pm-1.0.43.dist-info → clapp_pm-1.0.44.dist-info}/RECORD +14 -10
- packages/pycloudos/core/appmon.py +0 -0
- packages/pycloudos/rain/contextmenu.py +1370 -0
- packages/pycloudos/rain/desktop.py +556 -0
- packages/pycloudos/rain/flet_html_widgets.py +1448 -0
- packages/pycloudos/rain/topbar.py +1421 -0
- publish_command.py +41 -39
- version.py +1 -1
- {clapp_pm-1.0.43.dist-info → clapp_pm-1.0.44.dist-info}/WHEEL +0 -0
- {clapp_pm-1.0.43.dist-info → clapp_pm-1.0.44.dist-info}/entry_points.txt +0 -0
- {clapp_pm-1.0.43.dist-info → clapp_pm-1.0.44.dist-info}/licenses/LICENSE +0 -0
- {clapp_pm-1.0.43.dist-info → clapp_pm-1.0.44.dist-info}/top_level.txt +0 -0
publish_command.py
CHANGED
@@ -79,7 +79,10 @@ def copy_app_to_packages(source_folder: str, app_name: str) -> Tuple[bool, str]:
|
|
79
79
|
shutil.rmtree(target_path)
|
80
80
|
print(f"⚠️ Mevcut {app_name} klasörü silindi")
|
81
81
|
|
82
|
-
#
|
82
|
+
# Önce tüm klasörü kopyala
|
83
|
+
shutil.copytree(source_folder, target_path)
|
84
|
+
|
85
|
+
# Gereksiz dosya ve klasörleri sil
|
83
86
|
exclude_patterns = [
|
84
87
|
'.venv', '__pycache__', '.git', '.gitignore', '.DS_Store',
|
85
88
|
'*.pyc', '*.pyo', '*.pyd', '*.so', '*.dll', '*.dylib',
|
@@ -89,45 +92,44 @@ def copy_app_to_packages(source_folder: str, app_name: str) -> Tuple[bool, str]:
|
|
89
92
|
'packages' # packages klasörünü de hariç tut
|
90
93
|
]
|
91
94
|
|
92
|
-
def
|
93
|
-
"""
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
# Hedef dizini oluştur
|
117
|
-
rel_root = os.path.relpath(root, source_folder)
|
118
|
-
target_root = os.path.join(target_path, rel_root)
|
119
|
-
os.makedirs(target_root, exist_ok=True)
|
120
|
-
|
121
|
-
# Dosyaları kopyala
|
122
|
-
for file in files:
|
123
|
-
source_file = os.path.join(root, file)
|
95
|
+
def remove_excluded_files(path):
|
96
|
+
"""Gereksiz dosya ve klasörleri sil"""
|
97
|
+
for root, dirs, files in os.walk(path, topdown=False):
|
98
|
+
# Dosyaları sil
|
99
|
+
for file in files:
|
100
|
+
file_path = os.path.join(root, file)
|
101
|
+
basename = os.path.basename(file_path)
|
102
|
+
|
103
|
+
for pattern in exclude_patterns:
|
104
|
+
if pattern.startswith('*'):
|
105
|
+
if basename.endswith(pattern[1:]):
|
106
|
+
try:
|
107
|
+
os.remove(file_path)
|
108
|
+
break
|
109
|
+
except:
|
110
|
+
pass
|
111
|
+
else:
|
112
|
+
if basename == pattern:
|
113
|
+
try:
|
114
|
+
os.remove(file_path)
|
115
|
+
break
|
116
|
+
except:
|
117
|
+
pass
|
124
118
|
|
125
|
-
#
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
119
|
+
# Dizinleri sil
|
120
|
+
for dir_name in dirs:
|
121
|
+
dir_path = os.path.join(root, dir_name)
|
122
|
+
|
123
|
+
for pattern in exclude_patterns:
|
124
|
+
if dir_name == pattern:
|
125
|
+
try:
|
126
|
+
shutil.rmtree(dir_path)
|
127
|
+
break
|
128
|
+
except:
|
129
|
+
pass
|
130
|
+
|
131
|
+
# Gereksiz dosyaları sil
|
132
|
+
remove_excluded_files(target_path)
|
131
133
|
|
132
134
|
print(f"✅ {app_name} -> packages/{app_name} kopyalandı")
|
133
135
|
|
version.py
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|