Skip to content

Commit d1a19ff

Browse files
committed
Improve install script
1 parent 2e676c7 commit d1a19ff

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

bin/install

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ else
9090
echo "Warning: $DEFAULT_MANIFEST not found, skipping copy."
9191
fi
9292

93+
# Delete any existing custom system image for this Julia version
94+
SOFILE="bin/kps-image-${julia_major}.so"
95+
if test -f "$SOFILE"; then
96+
echo "Deleting old system image: $SOFILE"
97+
rm -f "$SOFILE"
98+
fi
99+
93100
# Remove any stale plain Manifest.toml so Julia does not write through a symlink
94101
if [ -L "Manifest.toml" ]; then
95102
rm -f Manifest.toml
@@ -135,8 +142,14 @@ if [ -f "Manifest.toml" ]; then
135142
echo "Renamed Manifest.toml to $VERSIONED_MANIFEST"
136143
fi
137144

145+
# Copy the versioned manifest to docs before instantiating it (Julia 1.11 only)
146+
if [[ $julia_major == "1.11" ]] && [ -f "$VERSIONED_MANIFEST" ]; then
147+
cp "$VERSIONED_MANIFEST" "docs/Manifest-v1.11.toml"
148+
echo "Copied $VERSIONED_MANIFEST to docs/Manifest-v1.11.toml"
149+
fi
150+
138151
echo "Instantiating docs subproject..."
139-
julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()'
152+
julia --project=docs -e 'using Pkg; Pkg.resolve(); Pkg.instantiate(); Pkg.precompile()'
140153

141154
echo "Precompiling..."
142155
julia --project -e 'using Pkg; Pkg.precompile()'

0 commit comments

Comments
 (0)