feature/native-build #4
2 changed files with 21 additions and 20 deletions
22
build.py
22
build.py
|
@ -116,7 +116,16 @@ def package_native(project):
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
run(
|
run(
|
||||||
"lein native",
|
"native-image " +
|
||||||
|
"--native-image-info " +
|
||||||
|
"--report-unsupported-elements-at-runtime " +
|
||||||
|
"--no-server " +
|
||||||
|
"--no-fallback " +
|
||||||
|
"--features=clj_easy.graal_build_time.InitClojureClasses " +
|
||||||
|
"-jar" "target/uberjar/c4k-forgejo-standalone.jar " +
|
||||||
|
"-H:IncludeResources=.*.yaml " +
|
||||||
|
"-H:Log=registerResource:verbose " +
|
||||||
|
"-H:Name=target/graalvm/${:name}",
|
||||||
shell=True,
|
shell=True,
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
|
@ -145,7 +154,16 @@ def inst(project):
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
run(
|
run(
|
||||||
"lein native",
|
"native-image " +
|
||||||
|
"--native-image-info " +
|
||||||
|
"--report-unsupported-elements-at-runtime " +
|
||||||
|
"--no-server " +
|
||||||
|
"--no-fallback " +
|
||||||
|
"--features=clj_easy.graal_build_time.InitClojureClasses " +
|
||||||
|
"-jar" "target/uberjar/c4k-forgejo-standalone.jar " +
|
||||||
|
"-H:IncludeResources=.*.yaml " +
|
||||||
|
"-H:Log=registerResource:verbose " +
|
||||||
|
"-H:Name=target/graalvm/${:name}",
|
||||||
shell=True,
|
shell=True,
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
|
|
19
project.clj
19
project.clj
|
@ -32,21 +32,4 @@
|
||||||
["change" "version" "leiningen.release/bump-version" "release"]
|
["change" "version" "leiningen.release/bump-version" "release"]
|
||||||
["vcs" "commit"]
|
["vcs" "commit"]
|
||||||
["vcs" "tag" "v" "--no-sign"]
|
["vcs" "tag" "v" "--no-sign"]
|
||||||
["change" "version" "leiningen.release/bump-version"]]
|
["change" "version" "leiningen.release/bump-version"]])
|
||||||
:aliases {"native" ["shell"
|
|
||||||
"native-image"
|
|
||||||
;"--verbose"
|
|
||||||
"--native-image-info"
|
|
||||||
"--report-unsupported-elements-at-runtime"
|
|
||||||
"--no-server"
|
|
||||||
"--no-fallback"
|
|
||||||
"--features=clj_easy.graal_build_time.InitClojureClasses"
|
|
||||||
"-jar" "target/uberjar/c4k-forgejo-standalone.jar"
|
|
||||||
"-H:IncludeResources=.*.yaml"
|
|
||||||
"-H:Log=registerResource:verbose"
|
|
||||||
"-H:Name=target/graalvm/${:name}"
|
|
||||||
]
|
|
||||||
"inst" ["shell"
|
|
||||||
"sh"
|
|
||||||
"-c"
|
|
||||||
"lein uberjar && sudo install -m=755 target/uberjar/c4k-forgejo-standalone.jar /usr/local/bin/c4k-forgejo-standalone.jar"]})
|
|
||||||
|
|
Loading…
Reference in a new issue