PackageCompiler for having a simple .exe?

Hello, i am looking for a PackageCompiler instruction for humans, because it seems to me that there are a lot of links in internet but it is difficult to find the most simple case : own simple script that print something translated to executable. But i am not able to find it … also looking inside this forum …

I have added PackageCompiler to Julia, ok.
I am on windows 10.
If i have my simple script called


with inside a simple print

println("Hello first build!")

After have done this:

import Pkg

What should i do to get this


Many thanks…

I was trying to add and build the package compiler … i run this one command to build package compiler, but i get an error …

  Building LibCURL ────────→ `C:\Users\dario\.julia\packages\LibCURL\lWJxD\deps\build.log`
  Building WinRPM ─────────→ `C:\Users\dario\.julia\packages\WinRPM\Y9QdZ\deps\build.log`
  Building PackageCompiler β†’ `C:\Users\dario\.julia\packages\PackageCompiler\CJQcs\deps\build.log`
β”Œ Error: Error building `PackageCompiler`:
β”‚ [ Info: Installing GCC
β”‚ [ Info: Multiple package candidates found for mingw64-unistd-pthread-devel, picking newest.
β”‚ β”Œ Info: Packages to install:
β”‚ β””   join(names(todo), ", ") = "libgcc_s_seh1, binutils, winpthreads-devel, cpp, runtime, libmpc3, libwinpthread1, libgmp10, libmpfr4, zlib1, headers, gcc"
β”‚ β”Œ Info: Downloading:
β”‚ β””   name = "libgcc_s_seh1"
β”‚ β”Œ Info: Extracting:
β”‚ β””   name = "libgcc_s_seh1"
β”‚ ERROR: LoadError: IOError: could not spawn `'C:\Users\dario\AppData\Local\Julia-1.3.1\bin\7z.exe' x -y 'C:\Users\dario\.julia\packages\WinRPM\Y9QdZ\cache\2\noarch%2Fmingw64-libgcc_s_seh1-8.2.0-2.8.noarch.rpm' '-oC:\Users\dario\.julia\packages\WinRPM\Y9QdZ\cache\2'`: no such file or directory (ENOENT)
β”‚ Stacktrace:
β”‚  [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:99
β”‚  [2] setup_stdios(::Base.var"#554#555"{Cmd}, ::Array{Any,1}) at .\process.jl:112
β”‚  [3] _spawn at .\process.jl:111 [inlined]
β”‚  [4] #open#563(::Bool, ::Bool, ::typeof(open), ::Cmd, ::Base.DevNull) at .\process.jl:370
β”‚  [5] open at .\process.jl:361 [inlined]
β”‚  [6] open(::Cmd, ::String, ::Base.DevNull) at .\process.jl:341
β”‚  [7] open at .\process.jl:338 [inlined]
β”‚  [8] do_install(::WinRPM.Package) at C:\Users\dario\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:482
β”‚  [9] do_install at C:\Users\dario\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:456 [inlined]
β”‚  [10] #install#19(::Bool, ::typeof(WinRPM.install), ::WinRPM.Package) at C:\Users\dario\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:403
β”‚  [11] #install at .\tuple.jl:0 [inlined]
β”‚  [12] #install#17 at C:\Users\dario\.julia\packages\WinRPM\Y9QdZ\src\WinRPM.jl:372 [inlined]
β”‚  [13] #install at .\none:0 [inlined] (repeats 2 times)
β”‚  [14] build() at C:\Users\dario\.julia\packages\PackageCompiler\CJQcs\deps\build.jl:43
β”‚  [15] top-level scope at C:\Users\dario\.julia\packages\PackageCompiler\CJQcs\deps\build.jl:63
β”‚  [16] include at .\boot.jl:328 [inlined]
β”‚  [17] include_relative(::Module, ::String) at .\loading.jl:1105
β”‚  [18] include(::Module, ::String) at .\Base.jl:31
β”‚  [19] include(::String) at .\client.jl:424
β”‚  [20] top-level scope at none:5
β”‚ in expression starting at C:\Users\dario\.julia\packages\PackageCompiler\CJQcs\deps\build.jl:63
β”” @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:649

what can be? i have disinstalled julia and reinstalled again because of this error, but repeating building packagecompiler, nothing is changed … i get the error …

Please see:

I had the same issue. You need to get the master branch.

I think the new version should be registered now.