NikGapps 3.44__py3-none-any.whl → 3.46__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.
- NikGapps/helper/compression/Export.py +3 -3
- NikGapps/helper/git/TestGit.py +15 -0
- NikGapps/main.py +9 -2
- {NikGapps-3.44.dist-info → NikGapps-3.46.dist-info}/METADATA +1 -1
- {NikGapps-3.44.dist-info → NikGapps-3.46.dist-info}/RECORD +9 -9
- {NikGapps-3.44.dist-info → NikGapps-3.46.dist-info}/LICENSE +0 -0
- {NikGapps-3.44.dist-info → NikGapps-3.46.dist-info}/WHEEL +0 -0
- {NikGapps-3.44.dist-info → NikGapps-3.46.dist-info}/entry_points.txt +0 -0
- {NikGapps-3.44.dist-info → NikGapps-3.46.dist-info}/top_level.txt +0 -0
|
@@ -35,7 +35,7 @@ class Export:
|
|
|
35
35
|
completed_packages = 0
|
|
36
36
|
file_sizes = ""
|
|
37
37
|
zip_execution_status = False
|
|
38
|
-
telegram.message(f"
|
|
38
|
+
telegram.message(f"- Gapps is building {0:.2f}% ({completed_packages}/{total_packages})")
|
|
39
39
|
|
|
40
40
|
def compress_and_add_file(appset, pakg, compressionmode):
|
|
41
41
|
nonlocal completed_packages
|
|
@@ -70,9 +70,9 @@ class Export:
|
|
|
70
70
|
file_sizes = file_sizes + str(pakg.package_title) + "=" + str(pakg.pkg_size) + "\n"
|
|
71
71
|
completed_packages += 1
|
|
72
72
|
progress = (completed_packages / total_packages) * 100
|
|
73
|
-
telegram.message(f"
|
|
73
|
+
telegram.message(f"- Gapps is building {progress:.2f}% ({completed_packages}/{total_packages})",
|
|
74
74
|
replace_last_message=True)
|
|
75
|
-
P.blue(f"
|
|
75
|
+
P.blue(f"- Gapps is building {progress:.2f}% ({completed_packages}/{total_packages}): "
|
|
76
76
|
f"{appset.title}/{pakg.package_title} (Thread {thread_id})")
|
|
77
77
|
|
|
78
78
|
with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor:
|
NikGapps/helper/git/TestGit.py
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import os
|
|
1
2
|
import time
|
|
3
|
+
from shutil import copyfile
|
|
2
4
|
|
|
3
5
|
from niklibrary.git.Git import Git
|
|
4
6
|
import git.exc
|
|
7
|
+
from niklibrary.git.GitStatics import GitStatics
|
|
8
|
+
|
|
9
|
+
from NikGapps.helper.Assets import Assets
|
|
5
10
|
|
|
6
11
|
|
|
7
12
|
class TestGit(Git):
|
|
@@ -59,3 +64,13 @@ class TestGit(Git):
|
|
|
59
64
|
if debug:
|
|
60
65
|
print(f"Pushed {info.summary}")
|
|
61
66
|
return True
|
|
67
|
+
|
|
68
|
+
def update_changelog(self):
|
|
69
|
+
source_file = Assets.changelog
|
|
70
|
+
dest_file = GitStatics.website_repo_dir + os.path.sep + "_data" + os.path.sep + "changelogs.yaml"
|
|
71
|
+
copyfile(source_file, dest_file)
|
|
72
|
+
if self.due_changes():
|
|
73
|
+
print("Updating the changelog to the website")
|
|
74
|
+
self.git_push("Update Changelog")
|
|
75
|
+
else:
|
|
76
|
+
print("There is no changelog to update!")
|
NikGapps/main.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
+
from niklibrary.git.GitStatics import GitStatics
|
|
3
|
+
|
|
2
4
|
from NikGapps.build.Release import Release
|
|
3
5
|
from NikGapps.helper.Args import Args
|
|
4
6
|
from NikGapps.helper import Config
|
|
@@ -7,6 +9,8 @@ from niklibrary.helper.T import T
|
|
|
7
9
|
from niklibrary.compression.Modes import Modes
|
|
8
10
|
from niklibrary.git.GitOp import GitOp
|
|
9
11
|
|
|
12
|
+
from NikGapps.helper.git.TestGit import TestGit
|
|
13
|
+
|
|
10
14
|
|
|
11
15
|
def main():
|
|
12
16
|
args = Args()
|
|
@@ -43,14 +47,17 @@ def main():
|
|
|
43
47
|
apk_repo = GitOp.clone_apk_source(android_version, args.arch, release_type=Config.RELEASE_TYPE)
|
|
44
48
|
Config.APK_SOURCE = apk_repo.working_tree_dir
|
|
45
49
|
overlay_repo = GitOp.clone_overlay_repo(android_version)
|
|
46
|
-
|
|
50
|
+
if overlay_repo is not None:
|
|
51
|
+
Config.OVERLAY_SOURCE = overlay_repo.working_tree_dir
|
|
47
52
|
if Config.OVERRIDE_RELEASE:
|
|
48
53
|
Release.zip(package_list, android_version, args.arch, args.sign)
|
|
49
54
|
if Config.RELEASE_TYPE and Config.ENVIRONMENT_TYPE == "production":
|
|
50
55
|
GitOp.mark_a_release(android_version, Config.RELEASE_TYPE)
|
|
51
56
|
if args.release:
|
|
52
57
|
if args.update_website:
|
|
53
|
-
website_repo =
|
|
58
|
+
website_repo = TestGit(GitStatics.website_repo_dir)
|
|
59
|
+
if GitStatics.website_repo_url is not None:
|
|
60
|
+
website_repo.clone_repo(repo_url=GitStatics.website_repo_url, fresh_clone=False, branch="main")
|
|
54
61
|
if website_repo is not None:
|
|
55
62
|
website_repo.update_changelog()
|
|
56
63
|
|
|
@@ -3,7 +3,7 @@ NikGapps/build_config.py,sha256=QVWmRLUIv1US8OWeBwwiAHLTBu6heMF1aFezsud8Fxw,3193
|
|
|
3
3
|
NikGapps/cache.py,sha256=lQTX3-JZOCWhgsiaklKRLSy46FKX9WwQ49dyrLnSQTk,4057
|
|
4
4
|
NikGapps/config_upload.py,sha256=0HE7txm73XXxat_cR0JDXWtQUmg1IYK_SktwJS6N34s,652
|
|
5
5
|
NikGapps/copy_repos.py,sha256=AXI1LIO_4pXkJUTlIsW45JRpEIkmICPVcCDOJ-YIauk,1951
|
|
6
|
-
NikGapps/main.py,sha256=
|
|
6
|
+
NikGapps/main.py,sha256=86OrjdjqZwfdzgrQte6e8ADzGgKms37YaM_QlbY3BlE,2904
|
|
7
7
|
NikGapps/overlay_control.py,sha256=3BVA8v5JeaFPqKbnjbrDE9qyxY12YTYAoH15r1thE-w,3097
|
|
8
8
|
NikGapps/test.py,sha256=M6fpDBtOpwHgR9bjAEhhjgGtAN9UuLEKZSU0HFX-xdE,84
|
|
9
9
|
NikGapps/build/Build.py,sha256=_-gEQD2vkci-dQOmiE-SCULiAGQ-LkyKWXhvCP61884,7621
|
|
@@ -41,9 +41,9 @@ NikGapps/helper/assets/packages.json,sha256=3urinTXrQRfomo0DTO4_CdQLAFWXwRKRFv6h
|
|
|
41
41
|
NikGapps/helper/assets/uninstaller.sh,sha256=Lob89FNVfpHFkdzUJFDwVQwlnc7WB_U-U28Y4fZgycE,870
|
|
42
42
|
NikGapps/helper/assets/unmount.sh,sha256=L8Lq7ZVfwazXaZp5Jkuce2pCGJCLZh57uj_BzFSDb-c,1107
|
|
43
43
|
NikGapps/helper/compression/CompOps.py,sha256=RjYxtNh98xCds58oWxX8UGbe9g-WUYCriTRupWZqMZc,1823
|
|
44
|
-
NikGapps/helper/compression/Export.py,sha256=
|
|
44
|
+
NikGapps/helper/compression/Export.py,sha256=9cN1RhJAcWFoZYtW_0Q9eX2XjyUwmd6Ns_49t4REZvE,9383
|
|
45
45
|
NikGapps/helper/compression/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
|
-
NikGapps/helper/git/TestGit.py,sha256
|
|
46
|
+
NikGapps/helper/git/TestGit.py,sha256=DGSksIqMn3KpkbPpz-eiQEDJgHOoV6JpmgclEN_lS0k,2674
|
|
47
47
|
NikGapps/helper/git/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
48
|
NikGapps/helper/overlay/ApkMetaInfo.py,sha256=l8Au74MPXWqllzooNGF8AIn-JTWiwxIuYAnu1nwq-e0,1567
|
|
49
49
|
NikGapps/helper/overlay/Bool.py,sha256=1VfI30ytFvT5eTWHwRCePE2hVRb_X-lFYPhAxS6xVCM,372
|
|
@@ -54,9 +54,9 @@ NikGapps/helper/overlay/Resources.py,sha256=bKWJEF2avl3j2ud390HQq9fRMMA8GKh9-KAB
|
|
|
54
54
|
NikGapps/helper/overlay/String.py,sha256=nyCAD_dNfwHlOgj4zuKGGz71n20CLEKyZCgrVAmiX2I,469
|
|
55
55
|
NikGapps/helper/overlay/StringArray.py,sha256=DYPEAIdpicaJ3C08IYW6Q2tnTH6gUFXmu3KhQlHGY5g,563
|
|
56
56
|
NikGapps/helper/overlay/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
|
-
NikGapps-3.
|
|
58
|
-
NikGapps-3.
|
|
59
|
-
NikGapps-3.
|
|
60
|
-
NikGapps-3.
|
|
61
|
-
NikGapps-3.
|
|
62
|
-
NikGapps-3.
|
|
57
|
+
NikGapps-3.46.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
58
|
+
NikGapps-3.46.dist-info/METADATA,sha256=BHXvjzMeDOXC-0oL66TNHpZ3c9gB21laytlzKBBR71Q,4147
|
|
59
|
+
NikGapps-3.46.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
60
|
+
NikGapps-3.46.dist-info/entry_points.txt,sha256=iKbeOiuELwTDu5kmQHrU9XBVASWRR6_TuRIRva2UnAY,286
|
|
61
|
+
NikGapps-3.46.dist-info/top_level.txt,sha256=CD7RpCb7bzjyvpQLt8hh2gU6X1wj3Z0NIErVkg-nJI4,9
|
|
62
|
+
NikGapps-3.46.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|