Skip to content

Commit

Permalink
Make repository paths not broken
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Nov 18, 2023
1 parent bae5808 commit ca560d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/gen_apk_repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ def trim(x, start, end):
return x[len(start):-len(end)]

APK_REPOSITORIES = [
'v3.14/main/x86',
'v3.14/community/x86',
('v3.14', 'main'),
('v3.14', 'community'),
]
ARCH = 'x86' # TODO: support more archs

repos_file = []
for repo in APK_REPOSITORIES:
with open(f'{os.environ["SRCROOT"]}/deps/aports/{repo}/index.txt') as f:
for version, repo in APK_REPOSITORIES:
with open(f'{os.environ["SRCROOT"]}/deps/aports/{version}/{repo}/{ARCH}/index.txt') as f:
index_name = f.read()
index_name = trim(index_name, 'APKINDEX-', '.tar.gz\n')
repos_file.append(f'http://apk.ish.app/{index_name}/{repo}')
Expand Down
2 changes: 2 additions & 0 deletions iSH.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,7 @@
inputPaths = (
"$(SRCROOT)/deps/aports/main/x86/index.txt",
"$(SRCROOT)/deps/aports/community/x86/index.txt",
"$(SRCROOT)/app/gen_apk_repositories.py",
);
name = "Generate APK Repositories File";
outputFileListPaths = (
Expand Down Expand Up @@ -1933,6 +1934,7 @@
inputPaths = (
"$(SRCROOT)/deps/aports/main/x86/index.txt",
"$(SRCROOT)/deps/aports/community/x86/index.txt",
"$(SRCROOT)/app/gen_apk_repositories.py",
);
name = "Generate APK Repositories File";
outputFileListPaths = (
Expand Down

0 comments on commit ca560d9

Please sign in to comment.