more secure locks and a script to create a system image of juliaMSI for faster boot times, still experimental but everything else remains pristine

This commit is contained in:
Pixelguy14
2026-04-07 14:06:02 -06:00
parent e0ef601a9b
commit 70fff16170
7 changed files with 262 additions and 13 deletions
+35
View File
@@ -0,0 +1,35 @@
# build_sysimage.jl
using PackageCompiler
println("--- Starting Custom System Image Build ---")
println("This process can take 5-10 minutes.")
# Define the image path with OS-specific extension
ext = Sys.iswindows() ? ".dll" : Sys.isapple() ? ".dylib" : ".so"
sysimage_path = "MSI_sysimage" * ext
# List dependencies to include in the sysimage for maximum stability
# We have removed graphical heavy-lifters (CairoMakie, PlotlyBase) to ensure
# the build completes successfully on systems with standard RAM.
packages_to_include = [
:Genie,
:GenieFramework,
:PlotlyBase,
:Libz,
:DataFrames,
:Serialization,
:Printf,
:JSON
]
create_sysimage(
packages_to_include,
sysimage_path = sysimage_path,
precompile_execution_file = "precompile_script.jl",
incremental = true,
filter_stdlibs = false
)
println("--- System Image Build Successful! ---")
println("To start Julia with this image, use:")
println("julia --threads auto --project=. --sysimage $(sysimage_path) start_MSI_GUI.jl")