Skip to content

Commit 54dbf6f

Browse files
Initial commit
0 parents  commit 54dbf6f

30 files changed

Lines changed: 1409 additions & 0 deletions

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# These are explicitly windows files and should use crlf
5+
*.bat text eol=crlf
6+

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gradle"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
assignees:
8+
- "Gamebuster19901"
9+
labels:
10+
- "Category - Enhancement"
11+
- "Priority - Normal ↓"
12+
open-pull-requests-limit: 99

.github/workflows/build.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: Build Specific Commit
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
sha:
7+
description: 'The commit SHA to checkout and build'
8+
required: true
9+
publish:
10+
description: 'Whether to publish after building'
11+
required: false
12+
push:
13+
branches:
14+
- master
15+
16+
permissions:
17+
contents: read
18+
statuses: write
19+
20+
jobs:
21+
build_commit:
22+
runs-on: [self-hosted, linux]
23+
24+
steps:
25+
- name: Determine Commit SHA
26+
id: determine_sha
27+
run: |
28+
if [ -z "${{ github.event.inputs.sha }}" ]; then
29+
echo "COMMIT_SHA=${{ github.sha }}" >> $GITHUB_ENV
30+
else
31+
echo "COMMIT_SHA=${{ github.event.inputs.sha }}" >> $GITHUB_ENV
32+
fi
33+
34+
- name: Set Commit Status to Pending
35+
run: |
36+
STATUS="pending"
37+
DESCRIPTION="Build in progress for commit ${{ env.COMMIT_SHA }}"
38+
TARGET_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
39+
40+
curl -s -X POST \
41+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
42+
-H "Content-Type: application/json" \
43+
-d "{
44+
\"state\": \"$STATUS\",
45+
\"description\": \"$DESCRIPTION\",
46+
\"context\": \"Build Status\",
47+
\"target_url\": \"$TARGET_URL\"
48+
}" \
49+
"https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.COMMIT_SHA }}"
50+
51+
- name: Checkout the repository at SHA
52+
uses: actions/checkout@v3
53+
with:
54+
ref: ${{ env.COMMIT_SHA }}
55+
56+
- name: Set up JDK 21
57+
uses: actions/setup-java@v4.5.0
58+
with:
59+
java-version: '21'
60+
distribution: 'adopt'
61+
62+
- name: Setup Gradle
63+
uses: gradle/actions/setup-gradle@v4
64+
65+
- name: Clear Game Files
66+
run: ./gradlew clearLocalRuntime
67+
68+
- name: Add SteamCMD to PATH
69+
run: echo "/usr/games" >> $GITHUB_PATH
70+
71+
- name: Debug PATH
72+
run: echo $PATH
73+
74+
- name: Setup Decompiled Workspace
75+
run: ./gradlew setupDecompWorkspace
76+
77+
- name: Build With Gradle
78+
run: ./gradlew build
79+
80+
- name: Publish Build
81+
if: ${{ github.event.inputs.publish == 'true' }}
82+
run: |
83+
echo "Publishing build..."
84+
./gradlew publish -PmavenRepoUrl=${{ secrets.MAVEN_REPO }}
85+
86+
- name: Post Build Status
87+
if: always()
88+
run: |
89+
STATUS="success"
90+
DESCRIPTION="Build successful"
91+
92+
if [ ${{ job.status }} != "success" ]; then
93+
STATUS="failure"
94+
DESCRIPTION="Build failed"
95+
fi
96+
97+
TARGET_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
98+
99+
curl -s -X POST \
100+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
101+
-H "Content-Type: application/json" \
102+
-d "{
103+
\"state\": \"$STATUS\",
104+
\"description\": \"$DESCRIPTION\",
105+
\"context\": \"Build Status\",
106+
\"target_url\": \"$TARGET_URL\"
107+
}" \
108+
"https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.COMMIT_SHA }}"

.github/workflows/codeql.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL Advanced"
13+
14+
on:
15+
push:
16+
branches: [ "master" ]
17+
pull_request:
18+
schedule:
19+
- cron: '27 12 * * 0'
20+
21+
jobs:
22+
analyze:
23+
name: Analyze (${{ matrix.language }})
24+
# Runner size impacts CodeQL analysis time. To learn more, please see:
25+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
26+
# - https://gh.io/supported-runners-and-hardware-resources
27+
# - https://gh.io/using-larger-runners (GitHub.com only)
28+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
29+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
30+
permissions:
31+
# required for all workflows
32+
security-events: write
33+
34+
# required to fetch internal or private CodeQL packs
35+
packages: read
36+
37+
# only required for workflows in private repositories
38+
actions: read
39+
contents: read
40+
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
include:
45+
- language: actions
46+
build-mode: none
47+
- language: java-kotlin
48+
build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
49+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
50+
# Use `c-cpp` to analyze code written in C, C++ or both
51+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
52+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
53+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
54+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
55+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
56+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
57+
steps:
58+
- name: Checkout repository
59+
uses: actions/checkout@v4
60+
61+
# Add any setup steps before running the `github/codeql-action/init` action.
62+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
63+
# or others). This is typically only required for manual builds.
64+
# - name: Setup runtime (example)
65+
# uses: actions/setup-example@v1
66+
67+
# Initializes the CodeQL tools for scanning.
68+
- name: Initialize CodeQL
69+
uses: github/codeql-action/init@v3
70+
with:
71+
languages: ${{ matrix.language }}
72+
build-mode: ${{ matrix.build-mode }}
73+
# If you wish to specify custom queries, you can do so here or in a config file.
74+
# By default, queries listed here will override any specified in a config file.
75+
# Prefix the list here with "+" to use these queries and those in the config file.
76+
77+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
78+
# queries: security-extended,security-and-quality
79+
80+
# If the analyze step fails for one of the languages you are analyzing with
81+
# "We were unable to automatically build your code", modify the matrix above
82+
# to set the build mode to "manual" for that language. Then modify this step
83+
# to build your code.
84+
# ℹ️ Command-line programs to run using the OS shell.
85+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
86+
- if: matrix.build-mode == 'manual'
87+
shell: bash
88+
run: |
89+
echo 'If you are using a "manual" build mode for one or more of the' \
90+
'languages you are analyzing, replace this with the commands to build' \
91+
'your code, for example:'
92+
echo ' make bootstrap'
93+
echo ' make release'
94+
exit 1
95+
96+
- name: Perform CodeQL Analysis
97+
uses: github/codeql-action/analyze@v3
98+
with:
99+
category: "/language:${{matrix.language}}"

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# eclipse
2+
bin
3+
*.launch
4+
.metadata
5+
.classpath
6+
.project
7+
.settings
8+
9+
# idea
10+
out
11+
*.ipr
12+
*.iws
13+
*.iml
14+
.idea
15+
16+
# gradle
17+
build
18+
.gradle
19+
20+
#JVM
21+
hs_err_pid*.log
22+
23+
# secrets
24+
**.secret
25+
26+
#ModLauncher
27+
logs/*
28+
29+
#WilderForge
30+
crashes/*
31+
32+
#Mixin
33+
.mixin.out/*
34+
35+
#WilderWorkspace
36+
libs/
37+
providerSettings.json
38+
39+
#Logs
40+
*.log

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @wilderforge/global-sysop

LICENSE.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
MIT No Attribution
2+
3+
Copyright 2025 Gamebuster
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
6+
software and associated documentation files (the "Software"), to deal in the Software
7+
without restriction, including without limitation the rights to use, copy, modify,
8+
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
9+
permit persons to whom the Software is furnished to do so.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
12+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
13+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
14+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
15+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
16+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)