add inst ty pyb

This commit is contained in:
Michael Jerger 2024-02-16 16:55:26 +01:00
parent 0e5f5aae2a
commit ce90b2515b
3 changed files with 44 additions and 3 deletions

View file

@ -106,6 +106,47 @@ def package_uberjar(project):
check=True,
)
@task
def package_native(project):
run(
"mkdir -p target/graalvm",
shell=True,
check=True,
)
run(
"lein native",
shell=True,
check=True,
)
@task
def inst(project):
run(
"lein uberjar",
shell=True,
check=True,
)
run(
"mkdir -p target/graalvm",
shell=True,
check=True,
)
run(
"lein native",
shell=True,
check=True,
)
run(
"sudo install -m=755 target/uberjar/c4k-forgejo-standalone.jar /usr/local/bin/c4k-forgejo-standalone.jar",
shell=True,
check=True,
)
run(
"sudo install -m=755 target/graalvm/c4k-forgejo /usr/local/bin/c4k-forgejo",
shell=True,
check=True,
)
@task
def upload_clj(project):

Binary file not shown.

View file

@ -26,7 +26,7 @@
[ch.qos.logback/logback-classic "1.4.14"
:exclusions [com.sun.mail/javax.mail]]
[org.slf4j/jcl-over-slf4j "2.0.12"]
[com.github.clj-easy/graal-build-time "0.1.5"]]}}
[com.github.clj-easy/graal-build-time "1.0.5"]]}}
:release-tasks [["test"]
["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version" "release"]
@ -40,10 +40,10 @@
"--report-unsupported-elements-at-runtime"
"--no-server"
"--no-fallback"
"-jar" "target/uberjar/c4k-forgejo-standalone.jar"
"-H:IncludeResources=.*.yaml"
"-H:Log=registerResource:verbose"
"-H:Name=target/graalvm/${:name}"
"-jar" "target/uberjar/c4k-forgejo-standalone.jar"
]
"inst" ["shell"
"sh"