Skip to content

Commit

Permalink
feat: use gralvm native image
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Feb 10, 2024
1 parent f44b805 commit fc82ffc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Command: `java -jar EncryptMyPack.jar decrypt <inputZip> <outputZip> <key>`
1. Again, the key should be a 32 character long string.
2. To decrypt the pack, you must provide its key

## Build

This project use graalvm native image to transform the jar to a native executable

So you should set up graalvm and set project JDK to graalvm before building

## Special thanks

Thanks to [mcrputil](https://github.com/valaphee/mcrputil) for their great work!
Expand Down
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ plugins {
application
// Shadow jar plugin
id("com.github.johnrengelman.shadow") version "8.1.1"
id("org.graalvm.buildtools.native") version "0.10.0"
}

group = "org.allaymc"
version = "1.0.0"

Expand All @@ -31,4 +31,10 @@ dependencies {

tasks.test {
useJUnitPlatform()
}

graalvmNative {
binaries.all {
resources.autodetect()
}
}

0 comments on commit fc82ffc

Please sign in to comment.