Skip to content

Commit 4600b54

Browse files
committed
Add patches
0 parents  commit 4600b54

File tree

1,927 files changed

+294784
-0
lines changed

Some content is hidden

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

1,927 files changed

+294784
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
title: Proposal Name
2+
body:
3+
- type: input
4+
id: summary
5+
attributes:
6+
label: Summary
7+
placeholder: Present your proposal with a sentence or two...
8+
validations:
9+
required: true
10+
- type: textarea
11+
id: goal
12+
attributes:
13+
label: Goals
14+
placeholder: What are the goals for this proposal?
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: non-goals
19+
attributes:
20+
label: Non Goals
21+
placeholder: What are not the goals for this proposal? This can help eliminating feature creeping.
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: motivation
26+
attributes:
27+
label: Motivation
28+
placeholder: What made you want to propose this idea?
29+
validations:
30+
required: true
31+
- type: textarea
32+
id: description
33+
attributes:
34+
label: Description
35+
placeholder: Write everything down to the tiniest detail!
36+
validations:
37+
required: true
38+
- type: textarea
39+
id: dependencies
40+
attributes:
41+
label: Dependencies
42+
placeholder: Does this proposal depend on any prior proposals and/or any external projects?
43+
- type: textarea
44+
id: references
45+
attributes:
46+
label: References
47+
placeholder: Note down anything you referenced, whether that be links, papers etc.
48+
- type: checkboxes
49+
id: acknowledge
50+
attributes:
51+
label: Guidelines
52+
description: |
53+
View the guidelines here: [Cleanroom Feature Proposal Guidelines](../blob/main/CFP_GUIDELINES.md)
54+
options:
55+
- label: I have and will continue to adhere to the guidelines
56+
required: true
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: 🐛 Report Bug
2+
description: "Did something not work as expected?"
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: "A bug/crash report with sufficient information and logs to reproduce and track down."
7+
- type: input
8+
id: discord
9+
attributes:
10+
label: Your CleanroomMC Discord Username
11+
description: Leave empty if you don't have one, but this will make it harder to contact you if we need additional info.
12+
placeholder: "Example: Fake#1234"
13+
- type: input
14+
id: version
15+
attributes:
16+
label: Cleanroom Version
17+
description: "What version of the Cleanroom are you using?"
18+
placeholder: "Example: 0.2.4-alpha"
19+
validations:
20+
required: true
21+
- type: dropdown
22+
id: java
23+
attributes:
24+
label: Java Version
25+
description: What Java version are you using? It's worth mentioning that if you play on Java9+ you should try update to latest minor release (e.g. prefer Java 17.0.6 over 17.0.2) of that version.
26+
options:
27+
- Java 8
28+
- Java 21
29+
- Java 22
30+
- Java 23
31+
- Java 24
32+
- Java 25 (Early Access)
33+
- Other (Please Specify)
34+
validations:
35+
required: true
36+
- type: dropdown
37+
id: graphics
38+
attributes:
39+
label: Graphics Card Vendor
40+
description: What graphics card vendor are you using?
41+
options:
42+
- Other (Please Specify)
43+
- NVidia
44+
- AMD/ATI
45+
- Intel iGPU
46+
- AMD iGPU
47+
- Mesa/Software
48+
validations:
49+
required: true
50+
- type: textarea
51+
id: report
52+
attributes:
53+
label: Bug Report
54+
description: "Relevant information, as well as relevant logs attached such as `logs/latest.log` and `logs/debug.log`."
55+
placeholder: "Example: https://mclo.gs/ OR submit the file to github by dragging it to this textbox."
56+
validations:
57+
required: true
58+
- type: textarea
59+
id: modlist
60+
attributes:
61+
label: Mod List
62+
description: "List of mods, ideally a minimal reproducible set (can be retrieved from latest.log)."
63+
placeholder: "List of mods goes here"
64+
validations:
65+
required: true
66+
- type: checkboxes
67+
id: final
68+
attributes:
69+
label: Final Checklist
70+
description: Certify that you read things
71+
options:
72+
- label: "I have searched the issues and haven't found a similar issue."
73+
required: true
74+
- label: "I have read the readme and know that what is action build."
75+
required: true
76+
- label: "I have installed [Fugue](https://www.curseforge.com/minecraft/mc-mods/fugue) and it didn't fix my issue."
77+
required: true
78+
- label: "I have installed [Scalar Legacy](https://www.curseforge.com/minecraft/mc-mods/scalar-legacy) and it didn't fix my issue."
79+
required: true
80+
- label: "I have switched my Forgelin and LibrarianLib to continuous versions(check readme for more detail)."
81+
required: true
82+
- label: "I am running a test build from Cleanroom Github Actions. (Or, if I've compiled it myself I plan to fix the issue)"
83+
required: true
84+
- label: |
85+
I did not use PCL/PCLCE or other unsupported launchers.
86+
我没有使用 PCL/PCLCE 等其他未被支持的启动器。
87+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Feature Request
4+
url: https://github.com/CleanroomMC/Cleanroom/discussions/new?category=draft
5+
about: Please draft a proposal feature here.

.github/workflows/BuildTest.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: Build and Upload Test Artifact
9+
10+
on:
11+
push:
12+
paths:
13+
- 'src/**'
14+
- 'buildSrc/**'
15+
- 'patches/**'
16+
- 'build.gradle'
17+
- 'gradle.properties'
18+
- 'script/**'
19+
- '.github/**'
20+
pull_request:
21+
workflow_dispatch:
22+
inputs:
23+
build_type:
24+
type: choice
25+
description: Build type
26+
options:
27+
- Stable
28+
- Experimental
29+
30+
run-name: "${{ github.event_name == 'pull_request' && 'Pull Request Build, DO NOT DOWNLOAD' || format('{0}#{1}: {2}', github.ref_name, github.run_number, github.event.commits[0].message)}}"
31+
32+
permissions:
33+
contents: read
34+
35+
jobs:
36+
build:
37+
name: Build and Upload Artifact
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v4.2.2
42+
with:
43+
fetch-tags: true
44+
fetch-depth: 0
45+
46+
- name: Set up JDK 21
47+
uses: actions/setup-java@v4.7.1
48+
with:
49+
java-version: '21'
50+
distribution: 'temurin'
51+
52+
- name: Get branch name
53+
id: branch-names
54+
uses: tj-actions/branch-names@v9
55+
56+
- name: Fix Gradle permission
57+
run: chmod +x ./gradlew
58+
59+
- name: Setup Forge env
60+
run: ./gradlew setup -Prun_number=${{ github.run_number }}
61+
- name: Stop Gradle daemon
62+
run: ./gradlew --stop
63+
64+
- name: Build Jars
65+
run: ./gradlew build -Prun_number=${{ github.run_number }}
66+
67+
- name: Get version
68+
run: echo "CLEANROOM_VERSION=$(cat version.txt)" >> $GITHUB_ENV
69+
70+
- name: setup python
71+
uses: actions/setup-python@v5.6.0
72+
with:
73+
python-version: '3.13'
74+
75+
- name: Generate MMC Pack
76+
run: python main.py
77+
working-directory: ./script/MMC-Builder
78+
env:
79+
PATH_TO_EXIST_INSTALLER: ../../projects/cleanroom/build/libs/cleanroom-${{ env.CLEANROOM_VERSION }}-installer.jar
80+
BRANCH: ${{ steps.branch-names.outputs.current_branch }}
81+
VERSION: ${{ env.CLEANROOM_VERSION }}
82+
83+
- name: Copy MMC Pack
84+
run: cp script/MMC-Builder/build/CleanroomMMC.zip ./projects/cleanroom/build/libs/Cleanroom-MMC-instance-${{ env.CLEANROOM_VERSION }}.zip
85+
86+
- name: Upload Universal Jar
87+
uses: actions/upload-artifact@v4.6.2
88+
with:
89+
name: universal-jar-${{ env.CLEANROOM_VERSION }}
90+
path: projects/cleanroom/build/libs/*-universal.jar
91+
92+
- name: Upload Installer Jar
93+
uses: actions/upload-artifact@v4.6.2
94+
with:
95+
name: installer-jar-${{ env.CLEANROOM_VERSION }}
96+
path: projects/cleanroom/build/libs/*-installer.jar
97+
98+
- name: Upload MMC pack zip
99+
uses: actions/upload-artifact@v4.6.2
100+
with:
101+
name: mmc-pack-zip-${{ env.CLEANROOM_VERSION }}
102+
path: projects/cleanroom/build/libs/*.zip

.github/workflows/Publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Manually Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v4.2.2
14+
with:
15+
fetch-tags: true
16+
fetch-depth: 0
17+
18+
- name: Set up JDK 21
19+
uses: actions/setup-java@v4.7.1
20+
with:
21+
java-version: '21'
22+
distribution: 'temurin'
23+
24+
- name: Fix Gradle permission
25+
run: chmod +x ./gradlew
26+
27+
- name: Setup Forge env
28+
run: ./gradlew setup -Prun_number=${{ github.run_number }}
29+
30+
- name: Get version
31+
run: echo "CLEANROOM_VERSION=$(cat version.txt)" >> $GITHUB_ENV
32+
33+
- name: Stop Gradle daemon
34+
run: ./gradlew --stop
35+
36+
- name: Build Jars
37+
run: ./gradlew installerJar -Prun_number=${{ github.run_number }}
38+
39+
- name: Stop Gradle daemon again
40+
run: ./gradlew --stop
41+
42+
- name: Publish to maven for mod development
43+
run: ./gradlew publish -PcleanroomUsername=${{ secrets.CLEANROOM_MAVEN_USERNAME }} -PcleanroomPassword="${{ secrets.CLEANROOM_MAVEN_PASSWORD }}" -Prun_number=${{ github.run_number }}

.github/workflows/Release.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Auto Releases
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4.2.2
16+
with:
17+
fetch-tags: true
18+
fetch-depth: 0
19+
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4.7.1
22+
with:
23+
java-version: '21'
24+
distribution: 'temurin'
25+
26+
- name: Fix Gradle permission
27+
run: chmod +x ./gradlew
28+
29+
- name: Setup Forge env
30+
run: ./gradlew setup -Prun_number=${{ github.run_number }} -Prelease=true
31+
32+
- name: Get version
33+
run: echo "CLEANROOM_VERSION=$(cat version.txt)" >> $GITHUB_ENV
34+
35+
- name: Stop Gradle daemon
36+
run: ./gradlew --stop
37+
38+
- name: Build Jars
39+
run: ./gradlew build -Prun_number=${{ github.run_number }} -Prelease=true
40+
41+
- name: Stop Gradle daemon again
42+
run: ./gradlew --stop
43+
44+
- name: setup python
45+
uses: actions/setup-python@v5.6.0
46+
with:
47+
python-version: '3.13'
48+
49+
- name: Generate MMC Pack
50+
run: python main.py
51+
working-directory: ./script/MMC-Builder
52+
env:
53+
PATH_TO_EXIST_INSTALLER: ../../projects/cleanroom/build/libs/cleanroom-${{ env.CLEANROOM_VERSION }}-installer.jar
54+
BRANCH: 'main'
55+
VERSION: ${{ env.CLEANROOM_VERSION }}
56+
57+
- name: Copy MMC Pack
58+
run: cp script/MMC-Builder/build/CleanroomMMC.zip ./projects/cleanroom/build/libs/Cleanroom-MMC-instance-${{ env.CLEANROOM_VERSION }}.zip
59+
60+
- name: Publish to maven for mod development
61+
run: ./gradlew publish -PcleanroomUsername=${{ secrets.CLEANROOM_MAVEN_USERNAME }} -PcleanroomPassword="${{ secrets.CLEANROOM_MAVEN_PASSWORD }}" -Prun_number=${{ github.run_number }} -Prelease=true
62+
63+
- name: Remove userdev jars
64+
run: |
65+
rm projects/cleanroom/build/libs/cleanroom-${{ env.CLEANROOM_VERSION }}-userdev.jar
66+
rm projects/cleanroom/build/libs/cleanroom-${{ env.CLEANROOM_VERSION }}-userdev-temp.jar
67+
68+
- uses: ncipollo/release-action@v1.14.0
69+
with:
70+
artifacts: "projects/cleanroom/build/libs/*"
71+
generateReleaseNotes: true

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/.idea/*
2+
/.run/
3+
/.gradle/
4+
/projects/
5+
/buildSrc/.gradle/
6+
/buildSrc/build/
7+
/logs/
8+
build/
9+
version.txt
10+
src/main/java/com/cleanroommc/common/CleanroomVersion.java
11+
12+
!/.idea/icon.svg

0 commit comments

Comments
 (0)