Skip to content

Commit ef48840

Browse files
committed
Init dev
1 parent 413ed5b commit ef48840

26 files changed

+322
-41
lines changed

.github/workflows/main.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Repo publisher"
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
jobs:
8+
build:
9+
runs-on: self-hosted
10+
steps:
11+
- name: Clone Repository
12+
run: git clone --recursive --branch dev https://github.com/SpotifyXP/SpotifyXP-Repository
13+
- name: Run generate_repo.py script
14+
working-directory: ./SpotifyXP-Repository
15+
run: python3 generate_repo.py
16+
- name: Make public directory
17+
run: mkdir public
18+
- name: Copy files to public directory
19+
run: cp -R SpotifyXP-Repository/repo public/
20+
- name: Upload to GitHub Pages
21+
uses: peaceiris/actions-gh-pages@v4
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_dir: ./public

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "extensions/MSNStatusSupport"]
2+
path = extensions/MSNStatusSupport
3+
url = https://github.com/SpotifyXP/MSNStatusSupport
4+
[submodule "extensions/SpotifyXP-Last.FM"]
5+
path = extensions/SpotifyXP-Last.FM
6+
url = https://github.com/SpotifyXP/SpotifyXP-Last.FM

.idea/SpotifyXP-Repository.iml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/aws.xml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

REPO_FORMAT.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# The format of the repository
2+
<h3>
3+
4+
Repo url format: https://example.com/repo
5+
6+
For the formats of specific files look at the schemas
7+
<h2>File Tree:</h2>
8+
<h4>
9+
```
10+
repo
11+
|
12+
|___repo.json (repo.schema.json)
13+
|___extension1-Werwolf2303.json (extension.schema.json)
14+
|___storage
15+
|
16+
|___extension1-Werwolf2303.jar
17+
```

debug.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python3
2-
31
import http.server as SimpleHTTPServer
42
import socketserver as SocketServer
53
import logging

dependency.schema.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Extension dependency descriptor",
4+
"description": "This document describes a dependency of an extension",
5+
"type": "object",
6+
"properties": {
7+
"name": {
8+
"description": "The name of the extension",
9+
"type": "string"
10+
},
11+
"author": {
12+
"description": "The author of the extension",
13+
"type": "string"
14+
},
15+
"location": {
16+
"description": "The location relative to the root folder where the jar file is stored",
17+
"type": "string"
18+
},
19+
"dependencies": {
20+
"description": "List of dependencies of the dependency",
21+
"type": "array",
22+
"$ref": "dependency.schema.json"
23+
}
24+
}
25+
}

extension.schema.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Extension descriptor",
4+
"description": "This document describes an extension",
5+
"type": "object",
6+
"properties": {
7+
"name": {
8+
"description": "The name of the extension",
9+
"type": "string"
10+
},
11+
"author": {
12+
"description": "The author of the extension",
13+
"type": "string"
14+
},
15+
"version": {
16+
"description": "The version string of the extension e.g. 0.0.1",
17+
"type": "string"
18+
},
19+
"description": {
20+
"description": "The description for the extension",
21+
"type": "string"
22+
},
23+
"location": {
24+
"description": "The location relative to the root folder where the jar file is stored",
25+
"type": "string"
26+
},
27+
"identifier": {
28+
"description": "The UUID 4 of the extension",
29+
"type": "string"
30+
},
31+
"minversion": {
32+
"description": "The minimal commit id of SpotifyXP the extension requires",
33+
"type": "string"
34+
},
35+
"dependencies": {
36+
"description": "List of dependencies of the extension",
37+
"type": "array",
38+
"$ref": "dependency.schema.json"
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)