Skip to content

Commit

Permalink
fix for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Dec 19, 2023
1 parent b6d3a9d commit c812837
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions relocatability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ Pkg.add("PackageCompiler")
using PackageCompiler

create_app(joinpath(pwd(), "MakieApp"), "executable"; force=true, incremental=true, include_transitive_dependencies=false)
@test success(`executable\\bin\\MakieApp`)
exe = joinpath(pwd(), "executable", "bin", "MakieApp")
@test success(`$(exe)`)
julia_pkg_dir = joinpath(Base.DEPOT_PATH[1], "packages")
@test isdir(julia_pkg_dir)
mvd_julia_pkg_dir = julia_pkg_dir * ".old"
# Move package dir so that we can test relocatability (hardcoded paths to package dir being invalid now)
try
mv(julia_pkg_dir, mvd_julia_pkg_dir)
@test success(`executable\\bin\\MakieApp`)
@test success(`$(exe)`)
catch e
mv(mvd_julia_pkg_dir, julia_pkg_dir)
end

0 comments on commit c812837

Please sign in to comment.