Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 55b115f

Browse files
V52 Release (#479)
2 parents 52ed7be + efbcdc2 commit 55b115f

4,146 files changed

Lines changed: 82031 additions & 412602 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/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# These are supported funding model platforms
22

33
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: CynthiaLabs
4+
patreon: crazyco
55
open_collective: # Replace with a single Open Collective username
66
ko_fi: # Replace with a single Ko-fi username
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel

.github/workflow_data/devbuild.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
event = json.load(f)
1313

1414
client = nextcloud_client.Client(os.environ["NC_HOST"])
15+
_session = requests.session
16+
def session(*args, **kwargs):
17+
s = _session(*args, **kwargs)
18+
s.headers["User-Agent"] = os.environ["NC_USERAGENT"]
19+
return s
20+
requests.session = session
1521
client.login(os.environ["NC_USER"], os.environ["NC_PASS"])
1622

1723
for file in (

.github/workflow_data/webhook.py

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -36,56 +36,56 @@
3636
for i, commit in enumerate(event["commits"]):
3737
msg = commit['message'].splitlines()[0].replace("`", "")
3838
msg = msg[:50] + ("..." if len(msg) > 50 else "")
39-
desc += f"\n[`{commit['id'][:7]}`]({commit['url']}): {msg} - [__{commit['author']['username']}__](https://github.com/{commit['author']['username']})"
39+
desc += f"\n[`{commit['id'][:7]}`]({commit['url']}): {msg} - [__{commit['author'].get('username')}__](https://github.com/{commit['author'].get('username')})"
4040
if len(desc) > 2020:
4141
desc = desc.rsplit("\n", 1)[0] + f"\n+ {count - i} more commits"
4242
break
4343
url = event["compare"]
4444
color = 16723712 if event["forced"] else 3669797
4545

46-
case "pull_request":
47-
pr = event["pull_request"]
48-
url = pr["html_url"]
49-
branch = pr["base"]["ref"] + (
50-
""
51-
if pr["base"]["repo"]["full_name"] != pr["head"]["repo"]["full_name"]
52-
else f" <- {pr['head']['ref']}"
53-
)
54-
name = pr["title"][:50] + ("..." if len(pr["title"]) > 50 else "")
55-
title = f"Pull Request {event['action'].title()} ({branch}): {name}"
56-
match event["action"]:
57-
case "opened":
58-
desc = (pr["body"][:2045] + "...") if len(pr["body"]) > 2048 else pr["body"]
59-
color = 3669797
46+
# case "pull_request":
47+
# pr = event["pull_request"]
48+
# url = pr["html_url"]
49+
# branch = pr["base"]["ref"] + (
50+
# ""
51+
# if pr["base"]["repo"]["full_name"] != pr["head"]["repo"]["full_name"]
52+
# else f" <- {pr['head']['ref']}"
53+
# )
54+
# name = pr["title"][:50] + ("..." if len(pr["title"]) > 50 else "")
55+
# title = f"Pull Request {event['action'].title()} ({branch}): {name}"
56+
# match event["action"]:
57+
# case "opened":
58+
# desc = (pr["body"][:2045] + "...") if len(pr["body"]) > 2048 else pr["body"]
59+
# color = 3669797
6060

61-
fields.append(
62-
{
63-
"name": "Changed Files:",
64-
"value": str(pr["changed_files"]),
65-
"inline": True,
66-
}
67-
)
68-
fields.append(
69-
{
70-
"name": "Added:",
71-
"value": "+" + str(pr["additions"]),
72-
"inline": True,
73-
}
74-
)
75-
fields.append(
76-
{
77-
"name": "Removed:",
78-
"value": "-" + str(pr["deletions"]),
79-
"inline": True,
80-
}
81-
)
61+
# fields.append(
62+
# {
63+
# "name": "Changed Files:",
64+
# "value": str(pr["changed_files"]),
65+
# "inline": True,
66+
# }
67+
# )
68+
# fields.append(
69+
# {
70+
# "name": "Added:",
71+
# "value": "+" + str(pr["additions"]),
72+
# "inline": True,
73+
# }
74+
# )
75+
# fields.append(
76+
# {
77+
# "name": "Removed:",
78+
# "value": "-" + str(pr["deletions"]),
79+
# "inline": True,
80+
# }
81+
# )
8282

83-
case "closed":
84-
color = 16723712
85-
case "reopened":
86-
color = 16751872
87-
case _:
88-
sys.exit(1)
83+
# case "closed":
84+
# color = 16723712
85+
# case "reopened":
86+
# color = 16751872
87+
# case _:
88+
# sys.exit(1)
8989

9090
case "release":
9191
match event["action"]:

.github/workflow_data/webupdater.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
import nextcloud_client
2+
import requests
23
import json
34
import os
45

56
if __name__ == "__main__":
67
client = nextcloud_client.Client(os.environ["NC_HOST"])
8+
_session = requests.session
9+
def session(*args, **kwargs):
10+
s = _session(*args, **kwargs)
11+
s.headers["User-Agent"] = os.environ["NC_USERAGENT"]
12+
return s
13+
requests.session = session
714
client.login(os.environ["NC_USER"], os.environ["NC_PASS"])
815

916
file = os.environ["ARTIFACT_TGZ"]

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ concurrency:
1616
env:
1717
TARGETS: f7
1818
DEFAULT_TARGET: f7
19+
FBT_GIT_SUBMODULE_SHALLOW: 1
1920

2021
jobs:
2122
build:
2223
runs-on: ubuntu-latest
2324
steps:
2425

2526
- name: 'Checkout code'
26-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2728
with:
2829
fetch-depth: 0
2930
ref: ${{ github.event.pull_request.head.sha }}
@@ -57,6 +58,7 @@ jobs:
5758
if: "github.event_name == 'push' && github.ref_name == 'dev' && !contains(github.event.head_commit.message, '--nobuild')"
5859
env:
5960
NC_HOST: "https://cloud.cynthialabs.net/"
61+
NC_USERAGENT: "${{ secrets.NC_USERAGENT }}"
6062
NC_USER: "${{ secrets.NC_USER }}"
6163
NC_PASS: "${{ secrets.NC_PASS }}"
6264
BUILD_WEBHOOK: ${{ secrets.BUILD_WEBHOOK }}

.github/workflows/hotfix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
- name: "Upload to webupdater"
6060
env:
6161
NC_HOST: "https://cloud.cynthialabs.net/"
62+
NC_USERAGENT: "${{ secrets.NC_USERAGENT }}"
6263
NC_USER: "${{ secrets.NC_USER }}"
6364
NC_PASS: "${{ secrets.NC_PASS }}"
6465
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
- name: "Upload to webupdater"
5656
env:
5757
NC_HOST: "https://cloud.cynthialabs.net/"
58+
NC_USERAGENT: "${{ secrets.NC_USERAGENT }}"
5859
NC_USER: "${{ secrets.NC_USER }}"
5960
NC_PASS: "${{ secrets.NC_PASS }}"
6061
run: |

.github/workflows/sonarcloud.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: 'SonarCloud'
22

33
on:
44
workflow_dispatch:
5-
pull_request:
6-
types: [opened, synchronize, reopened]
5+
# pull_request:
6+
# types: [opened, synchronize, reopened]
77

88
env:
99
TARGETS: f7

.github/workflows/webhook.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: 'Webhook'
22

33
on:
44
push:
5-
pull_request:
6-
types:
7-
- "opened"
8-
- "closed"
9-
- "reopened"
5+
# pull_request:
6+
# types:
7+
# - "opened"
8+
# - "closed"
9+
# - "reopened"
1010
release:
1111
types:
1212
- "published"

.gitignore

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,3 @@ PVS-Studio.log
6868
.gdbinit
6969

7070
/fbt_options_local.py
71-
72-
# XFW-specific:
73-
74-
# Automate files, etc
75-
automate.py
76-
deployments/
77-
commitnotes.md
78-
fbt_options.py
79-
80-
# Asset packs
81-
assets/asset_packs/*
82-
!assets/asset_packs/WatchDogs/
83-
!assets/asset_packs/ReadMe.md
84-
assets/resources/asset_packs/

0 commit comments

Comments
 (0)