mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-06 02:30:50 -08:00
Update workflows and remove unneeded patches
This commit is contained in:
parent
b2917097e3
commit
fdcc5548bb
6 changed files with 11 additions and 3042 deletions
16
.github/workflows/addon-validations.yml
vendored
16
.github/workflows/addon-validations.yml
vendored
|
|
@ -25,17 +25,7 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
python -m pip install git+https://github.com/xbmc/addon-check.git
|
||||
|
||||
- name: Kodi Add-on Checker (Isengard)
|
||||
id: kodi-addon-checker-isengard
|
||||
- name: Kodi Add-on Checker (Nexus)
|
||||
id: kodi-addon-checker-nexus
|
||||
run: |
|
||||
kodi-addon-checker ${{ github.event.repository.name }} --branch=isengard
|
||||
|
||||
- name: Staging for Matrix
|
||||
run: |
|
||||
git apply .patches/matrix-kodi-addon-checker.patch
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
|
||||
- name: Kodi Add-on Checker (Matrix)
|
||||
id: kodi-addon-checker-matrix
|
||||
run: |
|
||||
kodi-addon-checker ${{ github.event.repository.name }} --branch=matrix
|
||||
kodi-addon-checker ${{ github.event.repository.name }} --branch=nexus
|
||||
|
|
|
|||
55
.github/workflows/make-release.yml
vendored
55
.github/workflows/make-release.yml
vendored
|
|
@ -45,8 +45,8 @@ jobs:
|
|||
echo "changes=$changes" >> $GITHUB_OUTPUT
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
|
||||
- name: Create Zip (Isengard)
|
||||
id: zip-isengard
|
||||
- name: Create Zip (Nexus)
|
||||
id: zip-nexus
|
||||
run: |
|
||||
mv .git ..
|
||||
rm -rf .??*
|
||||
|
|
@ -59,8 +59,8 @@ jobs:
|
|||
echo "filename=$filename" >> $GITHUB_OUTPUT
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
|
||||
- name: Create Zip (Isengard-Unofficial)
|
||||
id: zip-unofficial-isengard
|
||||
- name: Create Zip (Nexus-Unofficial)
|
||||
id: zip-unofficial-nexus
|
||||
run: |
|
||||
git reset
|
||||
git checkout .
|
||||
|
|
@ -77,53 +77,6 @@ jobs:
|
|||
echo "filename=$filename" >> $GITHUB_OUTPUT
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
|
||||
- name: Remove Repository
|
||||
id: remove-repo
|
||||
run: |
|
||||
rm -rf ${{ github.event.repository.name }}
|
||||
|
||||
- name: Checkout Add-on
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: ${{ github.event.repository.name }}
|
||||
|
||||
- name: Create Zip (Matrix)
|
||||
id: zip-matrix
|
||||
run: |
|
||||
git apply .patches/matrix.patch
|
||||
mv .git ..
|
||||
rm -rf .??*
|
||||
rm *.md
|
||||
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
|
||||
xmlstarlet ed -L -u '/addon/@version' -v "${version}+matrix.1" addon.xml
|
||||
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
|
||||
filename=${{ github.event.repository.name }}-${version}.zip
|
||||
cd ..
|
||||
zip -r $filename ${{ github.event.repository.name }}
|
||||
mv .git ${{ github.event.repository.name }}
|
||||
echo "filename=$filename" >> $GITHUB_OUTPUT
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
|
||||
- name: Create Zip (Matrix-Unofficial)
|
||||
id: zip-unofficial-matrix
|
||||
run: |
|
||||
git reset
|
||||
git checkout .
|
||||
git clean -fdx
|
||||
git apply .patches/matrix-unofficial.patch
|
||||
mv .git ..
|
||||
rm -rf .??*
|
||||
rm *.md
|
||||
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
|
||||
xmlstarlet ed -L -u '/addon/@version' -v "${version}+matrix.1" addon.xml
|
||||
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
|
||||
filename=${{ github.event.repository.name }}-unofficial-${version}.zip
|
||||
cd ..
|
||||
zip -r $filename ${{ github.event.repository.name }}
|
||||
mv .git ${{ github.event.repository.name }}
|
||||
echo "filename=$filename" >> $GITHUB_OUTPUT
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
|
||||
- name: Create Release
|
||||
id: create-release
|
||||
uses: actions/create-release@v1
|
||||
|
|
|
|||
36
.github/workflows/submit-release.yml
vendored
36
.github/workflows/submit-release.yml
vendored
|
|
@ -48,41 +48,13 @@ jobs:
|
|||
mv ../.git .
|
||||
rm *.md
|
||||
git add .
|
||||
git commit -m "Kodi 15 Patch"
|
||||
git commit -m "Remove Unwanted Files"
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
|
||||
- name: Submit to Official Repository (Isengard)
|
||||
id: submit-isengard
|
||||
- name: Submit to Official Repository (Nexus)
|
||||
id: submit-nexus
|
||||
run: |
|
||||
submit-addon -r repo-plugins -b isengard --pull-request ${{ github.event.repository.name }}
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
env:
|
||||
GH_USERNAME: anxdpanic
|
||||
GH_TOKEN: ${{ secrets.ADDON_SUBMISSION_TOKEN }}
|
||||
EMAIL: anxdpanic@users.noreply.github.com
|
||||
|
||||
- name: Staging for Official Repository (Matrix)
|
||||
id: stage-matrix
|
||||
run: |
|
||||
git reset --hard ${{ github.sha }}
|
||||
git checkout .
|
||||
git clean -fdx
|
||||
git apply .patches/matrix.patch
|
||||
mv .git ..
|
||||
rm -rf .??*
|
||||
mv ../.git .
|
||||
rm *.md
|
||||
rm changelog.txt
|
||||
version=$(xmlstarlet sel -t -v 'string(/addon/@version)' addon.xml)
|
||||
xmlstarlet ed -L -u '/addon/@version' -v "${version}+matrix.1" addon.xml
|
||||
git add .
|
||||
git commit -m "Kodi 19 Patch"
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
|
||||
- name: Submit to Official Repository (Matrix)
|
||||
id: submit-matrix
|
||||
run: |
|
||||
submit-addon -r repo-plugins -b matrix --pull-request ${{ github.event.repository.name }}
|
||||
submit-addon -r repo-plugins -b nexus --pull-request ${{ github.event.repository.name }}
|
||||
working-directory: ${{ github.event.repository.name }}
|
||||
env:
|
||||
GH_USERNAME: anxdpanic
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
From 555b8e2c8d1c1ac76a3b48ce333b7369ad38c5cf Mon Sep 17 00:00:00 2001
|
||||
From: anxdpanic <anxdpanic@gmail.com>
|
||||
Date: Fri, 7 Feb 2020 16:44:38 -0500
|
||||
Subject: [PATCH] matrix patch
|
||||
|
||||
---
|
||||
addon.xml | 4 +-
|
||||
.../kodion/impl/abstract_settings.py | 2 +-
|
||||
resources/settings.xml | 1102 ++++++++++++++---
|
||||
3 files changed, 956 insertions(+), 152 deletions(-)
|
||||
|
||||
diff --git a/addon.xml b/addon.xml
|
||||
index d1cc52b..58e88d1 100644
|
||||
--- a/addon.xml
|
||||
+++ b/addon.xml
|
||||
@@ -3,5 +3,5 @@
|
||||
<requires>
|
||||
- <import addon="xbmc.python" version="2.20.0"/>
|
||||
+ <import addon="xbmc.python" version="3.0.0"/>
|
||||
<import addon="script.module.six" version="1.11.0"/>
|
||||
<import addon="script.module.requests" version="2.12.4"/>
|
||||
<import addon="script.module.inputstreamhelper" version="0.2.2" optional="true"/>
|
||||
@@ -9,6 +9,6 @@
|
||||
<extension point="xbmc.python.pluginsource" library="resources/lib/default.py">
|
||||
<provides>video</provides>
|
||||
</extension>
|
||||
- <extension point="xbmc.service" library="resources/lib/startup.py" start="login"/>
|
||||
+ <extension point="xbmc.service" library="resources/lib/startup.py"/>
|
||||
<extension point="xbmc.python.module" library="resources/lib/"/>
|
||||
<extension point="xbmc.addon.metadata">
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue