mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-01-12 11:31:11 +00:00
Added PoC script for creating executable on MacOs using jpackage. #757
This commit is contained in:
parent
d9d7f2cf03
commit
d4b68806f8
16
src/test/script/make-executable.sh
Executable file
16
src/test/script/make-executable.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Remove the old files
|
||||||
|
rm -rf target/kickc
|
||||||
|
rm -rf target/java-runtime
|
||||||
|
rm -rf target/kickc.app
|
||||||
|
# Build the release ZIP
|
||||||
|
mvn package -DskipTests
|
||||||
|
# Unpackage the release ZIP
|
||||||
|
unzip target/kickc-release.zip -d target
|
||||||
|
# Create a minimal java runtime
|
||||||
|
jlink --output target/java-runtime --add-modules java.base,java.desktop
|
||||||
|
# Package a java application
|
||||||
|
jpackage --dest target --input target/kickc/jar/ --name kickc --main-jar kickc-release.jar --type app-image --runtime-image target/java-runtime
|
||||||
|
# Test the resulting application
|
||||||
|
target/kickc.app/Contents/MacOS/kickc -I target/kickc/include/ -F target/kickc/fragment/ -P target/kickc/target -L target/kickc/lib/ target/kickc/examples/helloworld/helloworld.c
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user