Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application destination directory and name #42

Closed
aistrych opened this issue Feb 14, 2019 · 7 comments
Closed

Application destination directory and name #42

aistrych opened this issue Feb 14, 2019 · 7 comments

Comments

@aistrych
Copy link

Why application on Linux is packaged into additional appname/core directories and why application binary name is not appname but the name of Julia file containing julia_main function? I think it makes sense for MacOS platform but not so much on Linux/Windows.

Why the builddir directory is put inside the same directory julia_main function file is located? For example build_app_bundle executed like this:

build_app_bundle("src/App.jl", appname="app", builddir="build")

put build directory inside src one which is not very intuitive I would say.

@NHDaly
Copy link
Owner

NHDaly commented Feb 16, 2019

Yeah, if you think that would be better, let's change it! :)

Would you be able to open a PR?

@aistrych
Copy link
Author

I think I can. Julia is a relatively new language for me but it's fun so I think I will manage :)

@aistrych
Copy link
Author

aistrych commented Mar 1, 2019

Small update: I still plan to do that I was just very busy lately. I think I will be able to look on it this weekend.

@NHDaly
Copy link
Owner

NHDaly commented Apr 16, 2019

#48 has addressed all of these concerns! :)

The linux/windows build has been changed to write to $appname/bin/$binary_name. The binary_name defaults to your script's basename, but can be changed via a flag.

binary_name = splitext(basename(juliaprog_main))[1],

The buildpath is now understood to be relative to cwd, as paths usually are on the command line:

juliaprog_main = abspath(juliaprog_main)
builddir = abspath(builddir)
builddir = joinpath(builddir, appname)

core_path = joinpath(builddir, "bin")

https://github.com/NHDaly/ApplicationBuilder.jl/pull/48/files#diff-c124f08b6e3c986fc3a10e09702f0f01L13

thanks for bringing up these issues @Astrych! :)

@NHDaly NHDaly closed this as completed Apr 16, 2019
@NHDaly
Copy link
Owner

NHDaly commented Apr 16, 2019

(I'm next going to unify the mac and linux/windows codebases in #51)

@aistrych
Copy link
Author

@NHDaly Oh. I forgot about that issue XD Sorry. Great that you have fixed it!

@NHDaly
Copy link
Owner

NHDaly commented Apr 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants