Fix Collecting Shell Output

This commit is contained in:
XelXen 2022-09-17 23:37:44 +05:30 committed by GitHub
parent 9a0ea4ee7c
commit ecd41f7db3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

14
.github/pkg.py vendored
View File

@ -1,25 +1,29 @@
import subprocess
import os
while True:
outputStr = subprocess.call("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-x86-debug.apk --output ~/app-x86-debug.apk", shell=True)
os.system("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-x86-debug.apk --output app-x86-debug.apk")
outputStr = open("app-x86-debug.apk","r").read()
if "Not Found" not in outputStr:
print("Build [x86] Downloaded")
break
while True:
outputStr = subprocess.call("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-x86_64-debug.apk --output ~/app-x86_64-debug.apk", shell=True)
os.system("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-x86_64-debug.apk --output app-x86_64-debug.apk")
outputStr = open("app-x86_64-debug.apk","r").read()
if "Not Found" not in outputStr:
print("Build [x86_64] Downloaded")
break
while True:
outputStr = subprocess.call("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-armeabi-v7a-debug.apk --output ~/app-armeabi-v7a-debug.apk", shell=True)
os.system("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-armeabi-v7a-debug.apk --output app-armeabi-v7a-debug.apk")
outputStr = open("app-armeabi-v7a-debug.apk","r").read()
if "Not Found" not in outputStr:
print("Build [arm7] Downloaded")
break
while True:
outputStr = subprocess.call("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-armeabi-v8a-debug.apk --output ~/app-armeabi-v8a-debug.apk", shell=True)
os.system("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-armeabi-v8a-debug.apk --output app-armeabi-v8a-debug.apk")
outputStr = open("app-armeabi-v8a-debug.apk","r").read()
if "Not Found" not in outputStr:
print("Build [arm8] Downloaded")
break

View File

@ -28,7 +28,7 @@ jobs:
- name: Download packages
run: |
cd .github
cd ~
python pkg.py
cd ..