Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HiveGames-OSS committed Aug 15, 2024
0 parents commit b20fcdd
Show file tree
Hide file tree
Showing 1,241 changed files with 28,868,261 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Auto detect text files and perform LF normalization
* text=auto
*.zip filter=lfs diff=lfs merge=lfs -text
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @HiveGamesOSS/chunker
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Documentation
url: https://learn.microsoft.com/en-us/minecraft/creator/documents/chunkeroverview?view=minecraft-bedrock-stable
about: A guide on how to use Chunker.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Feature Request
description: Create a request for new Chunker functionality.
labels: [Feature Request]

body:
- type: textarea
attributes:
label: What feature would you like seen in Chunker?
description: |
Describe the functionality you would like to see in Chunker and what it would allow you to do.
placeholder: |
Example: It would be great to see ..., this would be useful for ...
validations:
required: true
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/general_bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: General Bug Report
description: Report a general bug that is not related to conversion.
labels: [ Bug Report ]

body:
- type: markdown
attributes:
value: |
Please check you have the latest version from https://github.com/HiveGamesOSS/Chunker/releases before reporting your issue.
- type: input
id: version
attributes:
label: "Chunker Version"
description: |
Please copy the version string written in the bottom right of Chunker, e.g. `1.0.0-main-example`.
placeholder: |
1.0.0-main-example
validations:
required: true

- type: input
id: platform
attributes:
label: "Platform / Operating System"
description: |
What platform / operating system are you running Chunker on?
placeholder: |
Windows 11
validations:
required: true

- type: textarea
id: description
attributes:
label: Issue Description
description: |
Describe what happened and any steps which may help us replicate the issue.
placeholder: |
Example: When I download the Chunker CLI I get an error that states "..."
validations:
required: true
64 changes: 64 additions & 0 deletions .github/ISSUE_TEMPLATE/world_conversion_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: World Conversion Issue
description: Report an issue that occured during using Chunker.
labels: [ Conversion Bug ]

body:
- type: markdown
attributes:
value: |
Please check you have the latest version from https://github.com/HiveGamesOSS/Chunker/releases before reporting your issue.
- type: input
id: version
attributes:
label: "Chunker Version"
description: |
Please copy the version string written in the bottom right of Chunker, e.g. `1.0.0-main-example`.
placeholder: |
1.0.0-main-example
validations:
required: true

- type: input
id: input_version
attributes:
label: "Input World Version"
description: |
Is your original world Bedrock or Java and what version?
placeholder: |
Java 1.21.0
validations:
required: true

- type: input
id: output_version
attributes:
label: "Output World Version"
description: |
Is your desired output format Bedrock or Java and what version?
placeholder: |
Bedrock 1.21.0
validations:
required: false

- type: input
id: platform
attributes:
label: "Platform / Operating System"
description: |
What platform / operating system are you running Chunker on?
placeholder: |
Windows 11
validations:
required: true

- type: textarea
id: description
attributes:
label: Issue Description
description: |
Describe what happened and provide your world if possible so that we can reproduce the issue.
placeholder: |
Example: When I convert my world the signs no longer have colour on them.
validations:
required: true
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/app"
schedule:
interval: "daily"

- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
128 changes: 128 additions & 0 deletions .github/workflows/build_platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: Build Chunker for a specific platform

on:
workflow_dispatch:
inputs:
build_linux:
description: "Build and Test Linux"
required: false
default: true
type: boolean
build_windows:
description: "Build Windows"
required: false
default: true
type: boolean
build_mac:
description: "Build Mac"
required: false
default: true
type: boolean
jobs:
build_test_linux:
runs-on: ubuntu-latest
if: github.event.inputs.build_linux == 'true'
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: recursive

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4

- name: Mark Gradle as Executable
run: chmod +x gradlew

- name: Build with Gradle Wrapper
run: ./gradlew build

- name: Upload CLI Jar
uses: actions/upload-artifact@v4
with:
name: jar-builds
path: build/libs/*.jar

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-builds
path: build/libs/linux/

build_windows:
runs-on: windows-latest
if: github.event.inputs.build_windows == 'true'
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: recursive

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4

- name: Build with Gradle Wrapper
run: ./gradlew build -x test

- name: Sign files with Trusted Signing
uses: azure/trusted-signing-action@v0.4.0
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
endpoint: https://weu.codesigning.azure.net/
trusted-signing-account-name: hivegames
certificate-profile-name: Chunker
files-folder: build/libs/windows/
files-folder-filter: exe
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: windows-builds
path: build/libs/windows/

build_mac:
runs-on: macos-latest
if: github.event.inputs.build_mac == 'true'
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: recursive

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4

- name: Mark Gradle as Executable
run: chmod +x gradlew

- name: Build with Gradle Wrapper
run: ./gradlew build -x test

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macos-builds
path: build/libs/mac/
45 changes: 45 additions & 0 deletions .github/workflows/build_test_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Test on Linux

on:
push:
branches:
- main
pull_request_review:
types: [ submitted ]

jobs:
build_test_linux:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: recursive

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4

- name: Mark Gradle as Executable
run: chmod +x gradlew

- name: Build with Gradle Wrapper
run: ./gradlew build

- name: Upload CLI Jar
uses: actions/upload-artifact@v4
with:
name: jar-builds
path: build/libs/*.jar

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-builds
path: build/libs/linux/
24 changes: 24 additions & 0 deletions .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Dependency Submission

on:
push:
branches:
- main

jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: recursive

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
Loading

0 comments on commit b20fcdd

Please sign in to comment.