Skip to content

Commit 4768eea

Browse files
authored
Merge branch 'master' into dev/patcher-core
2 parents d7aa1ec + 7c47ec4 commit 4768eea

File tree

209 files changed

+25311
-14524
lines changed

Some content is hidden

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

209 files changed

+25311
-14524
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ webui/dist
88
*.plugin.js
99
*Plugin.js
1010
packaging/livesplit-node-client/build
11-
webstorm.config.js
11+
tests/testData/scripts

.github/pull_request_template.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!-- Thanks for contributing to Peacock! Here's a bit of a template to help make sure everything relevant is covered. -->
2+
3+
## Scope
4+
5+
<!-- List any relevant changes you have made here. Be sure to link any issues fixed, or that are relevant to these changes. -->
6+
7+
## Test Plan
8+
9+
<!-- List how you have verified these changes work as intended. -->
10+
11+
## Checklist
12+
13+
<!--
14+
Just a few reminders to make sure everything is perfect. You can place an "X" in the boxes to tick them off.
15+
If you have not completed one of the steps below, you can create the pull request as a draft, and then check off the items as you go.
16+
When you have completed the checklist, press the "Ready for review" button.
17+
-->
18+
19+
- [ ] I have run Prettier to reformat any changed files
20+
- [ ] I have verified my changes work

.github/workflows/locale-mod.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Update Localisation Mod
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
workflow_dispatch:
7+
8+
jobs:
9+
update-mod:
10+
name: Update Mod
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Checkout Peacock
15+
uses: actions/checkout@v4
16+
with:
17+
token: ${{ secrets.PEACOCKBOT_TOKEN }}
18+
path: "./Peacock"
19+
20+
- name: Checkout Peacock Strings
21+
uses: actions/checkout@v4
22+
with:
23+
token: ${{ secrets.PEACOCKBOT_TOKEN }}
24+
repository: thepeacockproject/peacock-strings
25+
path: "./PeacockStrings"
26+
27+
- name: Setup Node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version-file: "./Peacock/.nvmrc"
31+
cache: "yarn"
32+
cache-dependency-path: "./Peacock/yarn.lock"
33+
34+
- name: Install Packages
35+
run: |
36+
cd Peacock
37+
yarn install --immutable
38+
39+
#- name: Download ResourceLib
40+
# uses: robinraju/release-downloader@v1.7
41+
# with:
42+
# repository: "OrfeasZ/ZHMTools"
43+
# latest: true
44+
# fileName: "ResourceLib-win-x64.zip"
45+
# out-file-path: "Peacock/resources"
46+
47+
- name: Download RPKG-CLI
48+
id: rpkgcli
49+
uses: robinraju/release-downloader@v1.10
50+
with:
51+
repository: "glacier-modding/RPKG-Tool"
52+
latest: true
53+
fileName: "rpkg_*-cli.zip"
54+
out-file-path: "Peacock/resources"
55+
56+
- name: Download HMLanguageTools
57+
id: hmlt
58+
uses: robinraju/release-downloader@v1.10
59+
with:
60+
repository: "AnthonyFuller/TonyTools"
61+
latest: true
62+
fileName: "TonyTools.zip"
63+
out-file-path: "Peacock/resources"
64+
65+
- name: Unzip dependencies
66+
run: |
67+
cd Peacock/resources
68+
7z x ${{ fromJson(steps.rpkgcli.outputs.downloaded_files)[0] }}
69+
7z x ${{ fromJson(steps.hmlt.outputs.downloaded_files)[0] }}
70+
71+
- name: Rebuild Locale Packages
72+
run: |
73+
cd Peacock
74+
yarn rebuild-locale
75+
76+
- name: Copy peacockstrings.locr.json
77+
run: |
78+
copy ./Peacock/resources/peacockstrings.locr.json ./PeacockStrings/content/chunk0/peacockstrings.locr.json
79+
80+
- name: Push updated Peacock LOCR
81+
uses: EndBug/add-and-commit@v9
82+
with:
83+
cwd: "./PeacockStrings"
84+
add: content/chunk0/peacockstrings.locr.json
85+
author_name: PeacockBot
86+
author_email: admin@thepeacockproject.org
87+
message: "enhancement: update strings"

.github/workflows/locale.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Localisation
22

33
on:
44
push:
5-
branches: ["v*"]
5+
branches: ["master"]
66
paths: ["resources/locale.json", ".github/workflows/locale.yml"]
77
workflow_dispatch:
88

@@ -18,13 +18,6 @@ jobs:
1818
token: ${{ secrets.PEACOCKBOT_TOKEN }}
1919
path: "./Peacock"
2020

21-
- name: Checkout Peacock Strings
22-
uses: actions/checkout@v4
23-
with:
24-
token: ${{ secrets.PEACOCKBOT_TOKEN }}
25-
repository: thepeacockproject/peacock-strings
26-
path: "./PeacockStrings"
27-
2821
- name: Setup Node
2922
uses: actions/setup-node@v4
3023
with:
@@ -47,7 +40,7 @@ jobs:
4740

4841
- name: Download RPKG-CLI
4942
id: rpkgcli
50-
uses: robinraju/release-downloader@v1.9
43+
uses: robinraju/release-downloader@v1.10
5144
with:
5245
repository: "glacier-modding/RPKG-Tool"
5346
latest: true
@@ -56,7 +49,7 @@ jobs:
5649

5750
- name: Download HMLanguageTools
5851
id: hmlt
59-
uses: robinraju/release-downloader@v1.9
52+
uses: robinraju/release-downloader@v1.10
6053
with:
6154
repository: "AnthonyFuller/TonyTools"
6255
latest: true
@@ -84,16 +77,3 @@ jobs:
8477
author_name: PeacockBot
8578
author_email: admin@thepeacockproject.org
8679
message: "[skip ci] Update locale packages"
87-
88-
- name: Copy peacockstrings.locr.json
89-
run: |
90-
copy ./Peacock/resources/peacockstrings.locr.json ./PeacockStrings/content/chunk0/peacockstrings.locr.json
91-
92-
- name: Push updated Peacock LOCR
93-
uses: EndBug/add-and-commit@v9
94-
with:
95-
cwd: "./PeacockStrings"
96-
add: content/chunk0/peacockstrings.locr.json
97-
author_name: PeacockBot
98-
author_email: admin@thepeacockproject.org
99-
message: "enhancement: update strings"

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ resources/**/*.*
2020
!resources/locale.json
2121
!resources/dynamic_resources_*/*.meta
2222
!resources/dynamic_resources_*.rpkg
23+
!resources/dynamic_resources_*/*.JSON
2324
!resources/rebuildLocale.cjs
2425

2526
components/contracts.json
@@ -58,4 +59,5 @@ overrides
5859
DEBUG_PROFILE.zip
5960

6061
packaging/add_itemsize/*
61-
!packaging/add_itemsize/add_itemsize.js
62+
!packaging/add_itemsize/add_itemsize.js
63+
/.idea/AIAssistantCustomInstructionsStorage.xml

.idea/.gitignore

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

.idea/Peacock.iml

Lines changed: 5 additions & 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: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.10.0
1+
v20.12.2

.vscode/launch.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Dev Tools (run-dev tools)",
11+
"skipFiles": ["<node_internals>/**"],
12+
"env": {
13+
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
14+
},
15+
"runtimeExecutable": "yarn",
16+
"runtimeArgs": ["run-dev", "tools"],
17+
"console": "integratedTerminal"
18+
},
719
{
820
"type": "node",
921
"request": "launch",

0 commit comments

Comments
 (0)