Skip to content

Commit 30032f5

Browse files
committed
Merge branch 'master' into escalation-thenea
2 parents fb38bbd + ddc0106 commit 30032f5

1,174 files changed

Lines changed: 30225 additions & 11183 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.

.cirrus.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,7 @@ task:
6666
Lint_script:
6767
- yarn lint
6868
- yarn prettier:check
69+
Build_script:
70+
- yarn build
6971
Test_script:
7072
- yarn test:main

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
name: Bug report
33
about: Report a bug that you've found
44
title: ""
5-
labels: bug
5+
labels: ""
6+
type: "Bug"
67
assignees: ""
78
---
89

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
name: Feature request
33
about: Request a new feature to be added
44
title: ""
5-
labels: new feature
5+
labels: ""
6+
type: "Feature"
67
assignees: ""
78
---
89

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ If you have not completed one of the steps below, you can create the pull reques
1616
When you have completed the checklist, press the "Ready for review" button.
1717
-->
1818

19-
- [ ] I have run Prettier to reformat any changed files
20-
- [ ] I have verified my changes work
19+
- [ ] I have run Prettier to reformat any changed files
20+
- [ ] I have verified my changes work

.github/workflows/codeql.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
language: [ "csharp", "javascript" ]
21+
language: [ "javascript" ]
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
26+
with:
27+
persist-credentials: false
2628

2729
- name: Initialize CodeQL
2830
uses: github/codeql-action/init@v3

.github/workflows/locale-mod.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ jobs:
1212

1313
steps:
1414
- name: Checkout Peacock
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616
with:
17+
persist-credentials: false
1718
token: ${{ secrets.PEACOCKBOT_TOKEN }}
1819
path: "./Peacock"
1920

2021
- name: Checkout Peacock Strings
21-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2223
with:
2324
token: ${{ secrets.PEACOCKBOT_TOKEN }}
2425
repository: thepeacockproject/peacock-strings
2526
path: "./PeacockStrings"
2627

2728
- name: Setup Node
28-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@v5
2930
with:
3031
node-version-file: "./Peacock/.nvmrc"
3132
cache: "yarn"
@@ -36,17 +37,9 @@ jobs:
3637
cd Peacock
3738
yarn install --immutable
3839
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-
4740
- name: Download RPKG-CLI
4841
id: rpkgcli
49-
uses: robinraju/release-downloader@v1.11
42+
uses: robinraju/release-downloader@v1.12
5043
with:
5144
repository: "glacier-modding/RPKG-Tool"
5245
latest: true
@@ -55,7 +48,7 @@ jobs:
5548

5649
- name: Download HMLanguageTools
5750
id: hmlt
58-
uses: robinraju/release-downloader@v1.11
51+
uses: robinraju/release-downloader@v1.12
5952
with:
6053
repository: "AnthonyFuller/TonyTools"
6154
latest: true

.github/workflows/locale.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,26 @@ jobs:
1313

1414
steps:
1515
- name: Checkout Peacock
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
token: ${{ secrets.PEACOCKBOT_TOKEN }}
1919
path: "./Peacock"
2020

2121
- name: Setup Node
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@v5
2323
with:
2424
node-version-file: "./Peacock/.nvmrc"
2525
cache: "yarn"
2626
cache-dependency-path: "./Peacock/yarn.lock"
27-
27+
2828
- name: Install Packages
2929
run: |
3030
cd Peacock
3131
yarn install --immutable
3232
33-
#- name: Download ResourceLib
34-
# uses: robinraju/release-downloader@v1.7
35-
# with:
36-
# repository: "OrfeasZ/ZHMTools"
37-
# latest: true
38-
# fileName: "ResourceLib-win-x64.zip"
39-
# out-file-path: "Peacock/resources"
40-
4133
- name: Download RPKG-CLI
4234
id: rpkgcli
43-
uses: robinraju/release-downloader@v1.11
35+
uses: robinraju/release-downloader@v1.12
4436
with:
4537
repository: "glacier-modding/RPKG-Tool"
4638
latest: true
@@ -49,7 +41,7 @@ jobs:
4941

5042
- name: Download HMLanguageTools
5143
id: hmlt
52-
uses: robinraju/release-downloader@v1.11
44+
uses: robinraju/release-downloader@v1.12
5345
with:
5446
repository: "AnthonyFuller/TonyTools"
5547
latest: true
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Patcher - Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
GH_TOKEN: ${{ github.token }}
8+
9+
jobs:
10+
publish:
11+
name: Publish Patcher
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
17+
with:
18+
ref: ${{ github.ref_name }}
19+
path: repository
20+
21+
- name: Download patcher-windows
22+
run: |
23+
cd repository
24+
RUN_ID=$(gh run list --workflow="patcher.yml" --branch=master --limit=1 --json databaseId,status,conclusion -q 'map(select(.status == "completed" and .conclusion == "success")) | .[0].databaseId')
25+
26+
if [ -z "$RUN_ID" ]; then
27+
echo "No run ID found"
28+
exit 0
29+
fi
30+
31+
gh run download $RUN_ID -n patcher-windows -D ../patcher-windows
32+
33+
if [ $? -ne 0 ]; then
34+
echo "Failed to download patcher-windows"
35+
exit 0
36+
fi
37+
38+
- name: Copy patcher-windows to repository
39+
run: |
40+
cp -f patcher-windows/PeacockPatcher.exe repository/PeacockPatcher.exe
41+
42+
- name: Commit and push to repository
43+
run: |
44+
cd repository
45+
git config user.name "PeacockBot"
46+
git config user.email "admin@thepeacockproject.org"
47+
git add PeacockPatcher.exe
48+
git commit -m "[skip ci] Update patcher binary"
49+
git push

.github/workflows/patcher.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,32 @@ on:
88
branches: [ "v*", "master" ]
99
paths: [ "patcher/**/*" ]
1010

11+
env:
12+
DOTNET_VERSION: 8.x
13+
1114
jobs:
1215
build:
1316
name: Build Patcher
14-
runs-on: windows-latest
17+
runs-on: ubuntu-latest
1518

1619
steps:
1720
- name: Checkout repository
18-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
1922

20-
- name: Add msbuild to PATH
21-
uses: microsoft/setup-msbuild@v2
23+
- name: Setup .NET Core
24+
uses: actions/setup-dotnet@v5
25+
with:
26+
dotnet-version: ${{ env.DOTNET_VERSION }}
2227

2328
- name: Build Patcher
24-
run: msbuild.exe patcher\HitmanPatcher.sln -t:Build -p:Configuration=Release -p:Platform=x64 -m
29+
run: |
30+
export DOTNET_NOLOGO=true
31+
export DOTNET_CLI_TELEMETRY_OPTOUT=true
32+
cd patcher
33+
dotnet publish HitmanPatcher/HitmanPatcher.csproj -c Release -p DebugType=none -o Publish/Windows
2534
26-
- name: Upload Patcher Artifacts
35+
- name: Upload patcher-windows
2736
uses: actions/upload-artifact@v4
2837
with:
2938
name: patcher-windows
30-
path: patcher/bin/x64/Release/PeacockPatcher.exe
39+
path: patcher/Publish/Windows/ILRepack

.idea/Peacock.iml

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

0 commit comments

Comments
 (0)