Hello @NHDaly , thank you very much for this GREAT package, i am in love with Julialang
having said that 👍 .
I had a couple of problems in Windows 10 using Julia 1.1.0
there is nothing special about my Windows installation or Julia installation or environment in general.
ERROR: Unable to find compatible target in system image. < this error was due to the following line, more specifically, the default value for cpu_target
i was not able to solve this by changing to cpu_target = string(Base.Sys.ARCH) but i was able to solve this by setting it to cpu_target = nothing. How it worked and why i had this problem is a mistery to me
I had some problems trying to create an installer as well
i don't have the exact error message here now to copy and paste to you but i'll try to reproduce as faithfully as i can
UndefVarError: win_installer is not defined< something like that
I managed to sort this out by adding the following lines to the top of ApplicationBuilder.jl just below the Sys.isapple() check
@static if Sys.isapple()
include("sign_mac_app.jl")
include("mac_commandline_app.jl")
end
""" THIS """
@static if Sys.iswindows()
include("win-installer.jl")
end
After being able to access the win_installer method, i had another error
UndefVarError: JULIA_HOME is not defined
I managed to fix that by changing these lines
function win_installer(builddir; name = "nothing",
license = "$JULIA_HOME/../License.md")
to these lines
JULIA_HOME = get(ENV, "JULIA_HOME", "")
LICENSE_PATH = joinpath(abspath(JULIA_HOME, ".."), "License.md")
function win_installer(builddir; name = "nothing",
license = LICENSE_PATH)
BTW, in Windows at least, "$JULIA_HOME/../License.md" this doesn't seem to resolve to a valid path
so i also had to change the nsis_file path from
# this resolves to "$builddir/../$name.nsi" which doesn't exist anywhere
nsis_file = joinpath(builddir, "..", "$name.nsi")
I'm not sure why you build your paths this way joinpath(builddir, "..", "$name.nsi") or "$JULIA_HOME/../License.md" because i'm new to Julia and arrived on Version 1.1.0 already, maybe that's the way it used to work before, i don't know.
This doesn't resolve to parent folder
joinpath(builddir, "..")
this does
abspath(builddir, "..")
Also, for some reason makensis kept throwing not file or directory [ENOENT] at me even though the file was there so i had to download a NSIS software, load the script and build the installer manually.
After those fixes i made everything work and managed to build a Windows Executable Application with an Installer but let me know your thoughts about this, i will be making a Pull Request with the above changes because it definitely will crash on other Windows 10 users.
Hello @NHDaly , thank you very much for this GREAT package, i am in love with
Julialang
having said that 👍 .
I had a couple of problems in Windows 10 using Julia 1.1.0
there is nothing special about my Windows installation or Julia installation or environment in general.
ERROR: Unable to find compatible target in system image.
< this error was due to the following line, more specifically, the default value forcpu_target
i was not able to solve this by changing to
cpu_target = string(Base.Sys.ARCH)
but i was able to solve this by setting it tocpu_target = nothing
. How it worked and why i had this problem is a mistery to meI had some problems trying to create an installer as well i don't have the exact error message here now to copy and paste to you but i'll try to reproduce as faithfully as i can
UndefVarError: win_installer is not defined
< something like thatI managed to sort this out by adding the following lines to the top of
ApplicationBuilder.jl
just below theSys.isapple()
checkAfter being able to access the
win_installer
method, i had another errorI managed to fix that by changing these lines
to these lines
BTW, in Windows at least,
"$JULIA_HOME/../License.md"
this doesn't seem to resolve to a valid path so i also had to change thensis_file
path fromto
I'm not sure why you build your paths this way
joinpath(builddir, "..", "$name.nsi")
or"$JULIA_HOME/../License.md"
because i'm new to Julia and arrived on Version 1.1.0 already, maybe that's the way it used to work before, i don't know.This doesn't resolve to parent folder
this does
makensis
kept throwingnot file or directory [ENOENT]
at me even though the file was there so i had to download aNSIS
software, load the script and build the installer manually.After those fixes i made everything work and managed to build a Windows Executable Application with an Installer but let me know your thoughts about this, i will be making a Pull Request with the above changes because it definitely will crash on other Windows 10 users.