Skip to content

Commit

Permalink
Fix binary_path on windows for change_dir_if_bundle()
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly committed Jul 22, 2018
1 parent c7c6150 commit d5c33a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ApplicationBuilder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ end
@static if is_linux() || is_windows()

function change_dir_if_bundle()
binary_path = split(string(Base.julia_cmd()), ' ')[1][2:end]
binary_path = PROGRAM_FILE # PROGRAM_FILE is set manually in program.c
newpath = dirname(dirname(binary_path))
cd(newpath)
println("New pwd = $(pwd())")
Expand Down
7 changes: 5 additions & 2 deletions src/bundle.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
function build_app_bundle(script::String;
if is_windows()
include("installer.jl")
end
function build_app_bundle(script::String;
resources = String[],
libraries = String[],
builddir = "builddir",
appname = "nothing",
appname = "nothing",
create_installer = false)


Expand Down

0 comments on commit d5c33a3

Please sign in to comment.