LibreTube/.github/pkg.py

29 lines
1.3 KiB
Python
Raw Normal View History

2022-09-17 23:37:44 +05:30
import os
2022-09-18 10:47:24 +05:30
from json import load
2022-09-18 11:23:26 +05:30
import time
2022-09-17 23:28:46 +05:30
2022-09-18 10:47:24 +05:30
data = load(open('commit.json'))
2022-09-17 23:28:46 +05:30
while True:
2022-09-18 10:47:24 +05:30
os.system('curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/sign.txt --output sign.txt')
f = open('sign.txt')
2022-09-18 11:20:46 +05:30
print(f)
print(data['sha'][0:7])
2022-09-18 10:47:24 +05:30
if f == data['sha'][0:7]:
2022-09-17 23:28:46 +05:30
break
2022-09-18 11:23:26 +05:30
else:
time.sleep(10)
2022-09-17 23:28:46 +05:30
2022-09-18 10:47:24 +05:30
os.system("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-x86-debug.apk --output app-x86-debug.apk")
print("Build [x86] Downloaded")
2022-09-17 23:28:46 +05:30
2022-09-18 10:47:24 +05:30
os.system("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-x86_64-debug.apk --output app-x86_64-debug.apk")
print("Build [x86_64] Downloaded")
2022-09-17 23:28:46 +05:30
2022-09-18 10:47:24 +05:30
os.system("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-armeabi-v7a-debug.apk --output app-armeabi-v7a-debug.apk")
print("Build [arm7] Downloaded")
os.system("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-armeabi-v8a-debug.apk --output app-armeabi-v8a-debug.apk")
print("Build [arm8] Downloaded")
os.system("curl https://raw.githubusercontent.com/LibreTubeAlpha/Archive/main/latestBuild/app-universal-debug.apk --output app-armeabi-v8a-debug.apk")
print("Build [universal] Downloaded")