-
Notifications
You must be signed in to change notification settings - Fork 0
Implement Mod Downloading and Database #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
UpcraftLP
wants to merge
44
commits into
main
Choose a base branch
from
up
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
63db25b
update gradle wrapper
UpcraftLP 0ffcdd1
fix project name capitalization
UpcraftLP da5f05f
use java toolchains
UpcraftLP ab9cf57
set up database and create bootstrap configuration
UpcraftLP f049fec
add initial DB migration
UpcraftLP 655ab3d
replace ArgsParser with picocli
UpcraftLP 907fe71
refactor downloading, implement maven and raw URLs
UpcraftLP 2093a0a
temp fix compile errors
UpcraftLP fbdc31e
drop url-to-maven parsing
UpcraftLP f039b3d
switch hashes to SHA-512
UpcraftLP a9de218
fix maven downloading and hook up discord app
UpcraftLP 3cf2b8d
better discord message parsing
UpcraftLP ef341f3
todo: done!
UpcraftLP b01a52e
update config serialization
UpcraftLP fa9ff98
implement modrinth downloading
UpcraftLP 2e4d394
minor cleanup
UpcraftLP 551c78b
streamline download behavior
UpcraftLP 604955d
overhaul configs
UpcraftLP 3c28071
set up DB connections
UpcraftLP 6d86b6a
remove unused class
UpcraftLP 2c3c13b
bootstrap database on app start
UpcraftLP 7238bf7
implement mod info parsing
UpcraftLP 8047bbd
fix path validation erroring on nonexistent paths
UpcraftLP 4987cc5
move parser related classes to separate package
UpcraftLP dac2d57
set up GH actions and Dockerfile
UpcraftLP 11ae5ba
also build on tag push
UpcraftLP 1c13617
remove unused volume
UpcraftLP 8c17404
fix docker build
UpcraftLP 1191c96
a
UpcraftLP dce5e25
update ghcr tags, set gradle to not use a daemon
UpcraftLP 2249339
Revert "a"
UpcraftLP 15ff1f4
update README
UpcraftLP 151a53c
default to new files not being active
UpcraftLP ec56cb9
implement approval system
UpcraftLP a1a0b31
switch to apache http client
UpcraftLP c7dc3ee
add default user agent and refactor http handlers
UpcraftLP 7bfb401
add curseforge download support
UpcraftLP 9f7e4f2
allow shorthand cf and mr for download matching
UpcraftLP cf98459
update gradle wrapper
UpcraftLP 99ade7a
update GH actions scripts
UpcraftLP 7eceb28
remove leftover comment
UpcraftLP 831223c
fix typo
UpcraftLP 2423abc
fix test compile errors
UpcraftLP 6486619
add neoforge.mods.toml support
UpcraftLP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Build Status | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| build: | ||
| env: | ||
| JAVA_VERSION: 21 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'microsoft' | ||
| java-version: ${{ env.JAVA_VERSION }} | ||
| cache: 'gradle' | ||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x ./gradlew | ||
| - name: Build with Gradle | ||
| run: ./gradlew --no-daemon build | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ github.event.repository.name }}-${{ github.sha }} | ||
| path: | | ||
| build/libs/*.jar | ||
| !build/libs/*-slim.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| name: Upload to GHCR | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - '*' | ||
| tags: | ||
| - '*' | ||
|
|
||
| jobs: | ||
| build: | ||
| env: | ||
| JAVA_VERSION: 21 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'microsoft' | ||
| java-version: ${{ env.JAVA_VERSION }} | ||
| cache: 'gradle' | ||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x ./gradlew | ||
| - name: Build with Gradle | ||
| run: ./gradlew --no-daemon installShadowDist | ||
| - name: Setup Docker BuildX | ||
| uses: docker/setup-buildx-action@v3 | ||
| - name: Log into container registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.repository_owner }} | ||
| password: ${{ github.token }} | ||
| - name: Extract Docker metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: ghcr.io/${{ github.repository }} | ||
| tags: | | ||
| # default values | ||
| type=schedule | ||
| type=ref,event=branch | ||
| type=ref,event=tag | ||
| type=ref,event=pr | ||
| # set latest tag for default branch | ||
| type=raw,value=latest,enable={{is_default_branch}} | ||
| - name: Build Docker image | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
| context: . | ||
| push: true | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| build-args: | | ||
| JAVA_VERSION=${{ env.JAVA_VERSION }} | ||
| VERSION=${{ github.ref_name }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ARG JAVA_VERSON=21 | ||
|
|
||
| FROM mcr.microsoft.com/openjdk/jdk:${JAVA_VERSON}-distroless | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| VOLUME /app/data | ||
|
|
||
| ENV CONFIG_FILE=/app/config.json | ||
|
|
||
| COPY build/install/Ember-shadow/lib/Ember-*.jar Ember.jar | ||
|
|
||
| ENTRYPOINT ["java", "-XshowSettings:vm", "-XX:MinRAMPercentage=20", "-XX:MaxRAMPercentage=95", "-jar", "Ember.jar", "--config", "${CONFIG_FILE}"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| #Wed Feb 21 21:24:02 GMT 2024 | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
| networkTimeout=10000 | ||
| validateDistributionUrl=true | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.