mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Fix Collecting Shell Output
This commit is contained in:
parent
9a0ea4ee7c
commit
ecd41f7db3
14
.github/pkg.py
vendored
14
.github/pkg.py
vendored
@ -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
|
2
.github/workflows/tg-bot.yml
vendored
2
.github/workflows/tg-bot.yml
vendored
@ -28,7 +28,7 @@ jobs:
|
||||
|
||||
- name: Download packages
|
||||
run: |
|
||||
cd .github
|
||||
cd ~
|
||||
python pkg.py
|
||||
cd ..
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user