Skip to content

Commit a457a59

Browse files
errorcodeQQerrorcodeQQ
authored andcommitted
refactor: clean up comments and restructure plugins
0 parents  commit a457a59

60 files changed

Lines changed: 8291 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Build
2+
3+
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
4+
concurrency:
5+
group: "build"
6+
cancel-in-progress: true
7+
8+
on:
9+
push:
10+
branches:
11+
# choose your default branch
12+
- master
13+
- main
14+
paths-ignore:
15+
- '*.md'
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v6
23+
with:
24+
path: "src"
25+
26+
- name: Checkout builds
27+
uses: actions/checkout@v6
28+
with:
29+
ref: "builds"
30+
path: "builds"
31+
32+
- name: Clean old builds
33+
run: |
34+
rm $GITHUB_WORKSPACE/builds/*.cs3 || true
35+
rm $GITHUB_WORKSPACE/builds/*.jar || true
36+
37+
- name: Set up JDK 17
38+
uses: actions/setup-java@v5
39+
with:
40+
distribution: temurin
41+
java-version: '17'
42+
43+
- name: Setup Gradle
44+
uses: gradle/actions/setup-gradle@v5
45+
with:
46+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
47+
cache-read-only: false
48+
49+
- name: Build Plugins
50+
run: |
51+
cd $GITHUB_WORKSPACE/src
52+
# Dynamically enable all plugins by clearing disabled list in settings.gradle.kts
53+
chmod +x gradlew
54+
./gradlew makePluginsJson
55+
cp **/build/*.cs3 $GITHUB_WORKSPACE/builds
56+
cp **/build/*.jar $GITHUB_WORKSPACE/builds || true
57+
cp build/plugins.json $GITHUB_WORKSPACE/builds
58+
cp repo.json $GITHUB_WORKSPACE/builds
59+
60+
- name: Push builds
61+
run: |
62+
cd $GITHUB_WORKSPACE/builds
63+
git config --local user.email "actions@github.com"
64+
git config --local user.name "GitHub Actions"
65+
git add .
66+
git commit --amend -m "Build $GITHUB_SHA" || exit 0 # do not error if nothing to commit
67+
git push --force

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Gradle caches and build outputs
2+
.gradle
3+
/build
4+
**/build
5+
6+
# Local configuration files
7+
local.properties
8+
/local.properties
9+
10+
# IDE files
11+
.idea
12+
/.idea
13+
*.iml
14+
.vscode
15+
.kotlin
16+
17+
# Log files
18+
*.log
19+
20+
# OS files
21+
.DS_Store
22+
23+
# Cloudstream built packages
24+
*.cs3
25+
26+
# Python helper scripts
27+
*.py
28+
29+
30+
31+
32+
33+
# CS3 plugin development guide
34+
cs3_plugin_development_guide.md
35+
cs3 plugin development guide.md
36+
cs3_plugin_development_guide_recovered.md
37+
cs3_plugin_development_guide_recovered_full.md
38+
39+
jdk17*
40+

AniZen/build.gradle.kts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version = 1
2+
3+
cloudstream {
4+
language = "en"
5+
description = "Stream anime from AniZen — trending series, latest episodes, sub & dub."
6+
authors = listOf("errorcodeQQ")
7+
status = 0 // 0 = Down (Disabled from compilation)
8+
9+
/**
10+
* Status int as the following:
11+
* 0: Down
12+
* 1: Ok
13+
* 2: Slow
14+
* 3: Beta
15+
*/
16+
tvTypes = listOf("Anime", "AnimeMovie")
17+
18+
iconUrl = "https://anizen.tr/favicon.png"
19+
isCrossPlatform = true
20+
}
21+

0 commit comments

Comments
 (0)