mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
Merge pull request #514 from LibreTubeAlpha/production
Alpha Icon Patch
This commit is contained in:
commit
235b5d0d96
10
.github/patch.py
vendored
Normal file
10
.github/patch.py
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from os import system
|
||||||
|
|
||||||
|
patchRes = ["mdpi", "hdpi", "xhdpi", "xxhdpi", "xxxhdpi"]
|
||||||
|
for res in patchRes:
|
||||||
|
system(f"rm -rf ../app/src/main/res/mipmap-{res}/ic_launcher.png")
|
||||||
|
system(f"rm -rf ../app/src/main/res/mipmap-{res}/ic_launcher_foreground.png")
|
||||||
|
system(f"rm -rf ../app/src/main/res/mipmap-{res}/ic_launcher_round.png")
|
||||||
|
system(f"curl https://libre-tube.github.io/alpha-patch/mipmap-{res}/ic_launcher.png --output ../app/src/main/res/mipmap-{res}/ic_launcher.png")
|
||||||
|
system(f"curl https://libre-tube.github.io/alpha-patch/mipmap-{res}/ic_launcher_foreground.png --output ../app/src/main/res/mipmap-{res}/ic_launcher_foreground.png")
|
||||||
|
system(f"curl https://libre-tube.github.io/alpha-patch/mipmap-{res}/ic_launcher_round.png --output ../app/src/main/res/mipmap-{res}/ic_launcher_round.png")
|
3
.github/tg.py
vendored
3
.github/tg.py
vendored
@ -1,7 +1,6 @@
|
|||||||
import telegram
|
import telegram
|
||||||
from tgconfig import TG_TOKEN
|
from tgconfig import TG_TOKEN
|
||||||
from json import load
|
from json import load
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
f = open('commit.json')
|
f = open('commit.json')
|
||||||
data = load(f)
|
data = load(f)
|
||||||
@ -19,4 +18,4 @@ Signed-off-by: {data['commit']['author']['name']}
|
|||||||
bot.send_document(TG_CHAT_ID, open('app-arm64-v8a-debug.apk', 'rb'))
|
bot.send_document(TG_CHAT_ID, open('app-arm64-v8a-debug.apk', 'rb'))
|
||||||
bot.send_document(TG_CHAT_ID, open('app-armeabi-v7a-debug.apk', 'rb'))
|
bot.send_document(TG_CHAT_ID, open('app-armeabi-v7a-debug.apk', 'rb'))
|
||||||
bot.send_document(TG_CHAT_ID, open('app-x86_64-debug.apk', 'rb'))
|
bot.send_document(TG_CHAT_ID, open('app-x86_64-debug.apk', 'rb'))
|
||||||
bot.send_document(TG_CHAT_ID, open('app-x86-debug.apk', 'rb'))
|
bot.send_document(TG_CHAT_ID, open('app-x86-debug.apk', 'rb'))
|
||||||
|
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -29,8 +29,12 @@ jobs:
|
|||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
cache: "gradle"
|
cache: "gradle"
|
||||||
|
|
||||||
- name: Build debug APK and run jvm tests
|
- name: Patch and Compile
|
||||||
run: ./gradlew assembleDebug
|
run: |
|
||||||
|
cd .github
|
||||||
|
python patch.py
|
||||||
|
cd ..
|
||||||
|
./gradlew assembleDebug
|
||||||
|
|
||||||
- name: Upload APK
|
- name: Upload APK
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
10
.github/workflows/tg-bot.yml
vendored
10
.github/workflows/tg-bot.yml
vendored
@ -27,12 +27,16 @@ jobs:
|
|||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
cache: "gradle"
|
cache: "gradle"
|
||||||
|
|
||||||
- name: Build debug APK and run jvm tests
|
- name: Patch and Compile
|
||||||
run: ./gradlew assembleDebug
|
run: |
|
||||||
|
cd .github
|
||||||
|
python patch.py
|
||||||
|
cd ..
|
||||||
|
./gradlew assembleDebug
|
||||||
|
|
||||||
- name: Telegram Bot
|
- name: Telegram Bot
|
||||||
run: |
|
run: |
|
||||||
mv app/build/outputs/apk/debug/*.apk .github/
|
mv ./app/build/outputs/apk/debug/*.apk .github/
|
||||||
cd .github
|
cd .github
|
||||||
curl https://libre-tube.github.io/assets/LibreAlpha.png --output alpha.png
|
curl https://libre-tube.github.io/assets/LibreAlpha.png --output alpha.png
|
||||||
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" > tgconfig.py
|
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" > tgconfig.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user