From 029afa2fa4deb4c28a71f4e75e42ffe1e2ad7e7a Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Sun, 31 Mar 2024 16:24:15 +0200 Subject: [PATCH] improve create_sys_image --- bin/create_sys_image | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/create_sys_image b/bin/create_sys_image index 457cd99..9a0f2ff 100755 --- a/bin/create_sys_image +++ b/bin/create_sys_image @@ -35,5 +35,10 @@ julia --project -e "using Pkg; using TestEnv; TestEnv.activate(); Pkg.add(\"PyCa julia --project -e "using Pkg; Pkg.precompile()" julia --project -e "include(\"./test/create_sys_image.jl\");" mv kps-image_tmp.so bin/kps-image-${julia_major}.so -julia --project -e "using Pkg; Pkg.precompile()" -julia --project -J bin/kps-image-${julia_major}-${branch}.so -e "using TestEnv; TestEnv.activate(); using ControlPlots, NativeFileDialog; import Plots" +echo "--> 1" +julia --project -e "using Pkg; try; Pkg.precompile(); catch; println(\"Warning...\"); end" +echo "--> 2" +julia --project -J bin/kps-image-${julia_major}.so -e "using ControlPlots, NativeFileDialog" +echo "--> 3" +julia --project -J bin/kps-image-${julia_major}.so -e "try; using Plots; catch; println(\"Warning when precompiling Plots...\"); end" +echo "Successfully created system image!" \ No newline at end of file