NikGapps 3.76__tar.gz → 3.77__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.
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/cache.py +11 -5
- {nikgapps-3.76 → nikgapps-3.77/NikGapps.egg-info}/PKG-INFO +1 -1
- {nikgapps-3.76/NikGapps.egg-info → nikgapps-3.77}/PKG-INFO +1 -1
- {nikgapps-3.76 → nikgapps-3.77}/setup.py +1 -1
- {nikgapps-3.76 → nikgapps-3.77}/LICENSE +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/MANIFEST.in +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/__init__.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/build/Build.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/build/NikGappsManager.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/build/NikGappsOverlays.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/build/PackageConstants.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/build/Release.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/build/__init__.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/build_config.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/config/NikGappsConfig.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/config/__init__.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/config_upload.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/copy_repos.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/AppSet.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/Args.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/Assets.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/Config.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/ConfigObj.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/Package.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/__init__.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/addon.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/appsets.json +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/changelogs.yaml +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/config_versions.json +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/customize.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/debloater.config +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/functions.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/gofile.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/header.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/installer.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/magisk-update-binary.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/module.prop +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/mount.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/mtg_mount.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/nikgapps.config +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/nikgapps_functions.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/packages.json +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/uninstaller.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/assets/unmount.sh +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/compression/CompOps.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/compression/Export.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/compression/__init__.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/git/TestGit.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/git/__init__.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/overlay/ApkMetaInfo.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/overlay/Bool.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/overlay/Library.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/overlay/Manifest.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/overlay/Overlay.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/overlay/Resources.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/overlay/String.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/overlay/StringArray.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/helper/overlay/__init__.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/main.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/overlay_control.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps/test.py +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps.egg-info/SOURCES.txt +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps.egg-info/dependency_links.txt +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps.egg-info/entry_points.txt +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps.egg-info/requires.txt +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/NikGapps.egg-info/top_level.txt +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/README.md +0 -0
- {nikgapps-3.76 → nikgapps-3.77}/setup.cfg +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import time
|
|
3
|
+
|
|
2
4
|
from dotenv import load_dotenv
|
|
3
5
|
from NikGapps.build.Build import Build
|
|
4
6
|
from NikGapps.config.NikGappsConfig import NikGappsConfig
|
|
@@ -39,9 +41,7 @@ def cache():
|
|
|
39
41
|
project = gitlab_manager.get_project(cached_url)
|
|
40
42
|
gitattributes = """*.zip filter=lfs diff=lfs merge=lfs -text
|
|
41
43
|
*.tar.xz filter=lfs diff=lfs merge=lfs -text"""
|
|
42
|
-
if project:
|
|
43
|
-
gitlab_manager.reset_repository(cached_url, sleep_for=10, gitattributes=gitattributes)
|
|
44
|
-
else:
|
|
44
|
+
if not project:
|
|
45
45
|
project = gitlab_manager.create_repository(cached_url, provide_owner_access=True)
|
|
46
46
|
gitlab_manager.create_and_commit_file(project_id=project.id, file_path=".gitattributes",
|
|
47
47
|
content=gitattributes)
|
|
@@ -56,6 +56,10 @@ def cache():
|
|
|
56
56
|
config_obj.config_package_list = Build.build_from_directory(app_set_list, android_version)
|
|
57
57
|
for appset in config_obj.config_package_list:
|
|
58
58
|
appset: AppSet
|
|
59
|
+
# delete the folder to reset the files
|
|
60
|
+
if F.dir_exists(os.path.join(repo_cached.working_tree_dir, appset.title)):
|
|
61
|
+
F.remove_dir(os.path.join(repo_cached.working_tree_dir, appset.title))
|
|
62
|
+
F.make_dir(os.path.join(repo_cached.working_tree_dir, appset.title))
|
|
59
63
|
for pkg in appset.package_list:
|
|
60
64
|
pkg: Package
|
|
61
65
|
compression_modes = [Modes.ZIP, Modes.TAR_XZ]
|
|
@@ -66,8 +70,10 @@ def cache():
|
|
|
66
70
|
f"{pkg.package_title}{mode}")
|
|
67
71
|
print("Done!") if CompOps.compress_package(pkg_zip_path, pkg, mode) else print("Failed!")
|
|
68
72
|
t.taken(f"Total time taken to process the {pkg.package_title}, compressing into {mode}")
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
time.sleep(5)
|
|
74
|
+
repo_cached.git_push(
|
|
75
|
+
commit_message=f"Compressed {pkg.package_title} for {appset.title} into {mode}",
|
|
76
|
+
push_untracked_files=True, post_buffer="1048576000")
|
|
71
77
|
if Config.ENVIRONMENT_TYPE.__eq__("production") and F.dir_exists(repo_cached.working_tree_dir):
|
|
72
78
|
F.remove_dir(repo_cached.working_tree_dir)
|
|
73
79
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|