Skip to content

Commit

Permalink
Tweak 7z path creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoolen committed Dec 28, 2019
1 parent 5ef6d84 commit f26c8ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AtomShell/install.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ function install()
file = "electron-v$version-win32-$arch.zip"
download("https://github.com/electron/electron/releases/download/v$version/$file")
if VERSION >= v"1.3.0"
zipper = joinpath(Base.Sys.BINDIR, "..", "libexec", "7z.exe")
zipper = joinpath(Sys.BINDIR, Base.LIBEXECDIR, "7z.exe")
else
zipper = joinpath(Base.Sys.BINDIR, "7z.exe")
zipper = joinpath(Sys.BINDIR, "7z.exe")
end
if !isfile(zipper)
#=
Expand All @@ -63,7 +63,7 @@ function install()
Julia, so instead we look in the default Julia binary location and
pick the latest version.
=#

juliafolders = filter(readdir(ENV["LOCALAPPDATA"])) do f
startswith(f, "Julia-")
end
Expand Down

0 comments on commit f26c8ba

Please sign in to comment.