-
Notifications
You must be signed in to change notification settings - Fork 4
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
mix desktop.installer deploy error #4
Comments
Hey @youfun, this is quite a curious error. And something seems to be wrong with the Erlang/Elixir installation. How did you install Erlang under windows and how are you running it? Which shell are you using?
Where did you download Erlang / Elixir for installation? |
erlang and elixir from vfox version manger tool vfox actually download install.exe to install erlang on windows (https://github.com/erlang/otp/releases) use poweshell: check gcc version
it report try use Microsoft Visual Studio env
|
This is an issue on non-utf8 terminals. Found on windows #4
Thanks, it seems cmd is returning some non-utf8 characters and the printing of those fails. I've updated the code to force print the characters in binary mode. That should get you over this hump. Thanks! |
thanks for you help check the env
error still but the msg seen useful? poweshell ,if use cmd vs ,the same worg,
try to use msys2 64 shell the elixir code from https://github.com/elixir-desktop/desktop-example-app |
It's failing on the |
i follow your lead :
and there is a WARNING use other command it work
test new command in mix
|
After deleting the _build\prod directory and running mix desktop.installer, the final build process was completed. I installed the resulting .exe file on my local Windows machine (the same PC used for development). However, after installation, clicking the desktop icon doesn't launch the application. I also tried entering the file path and running the run.bat command, but nothing happened. I'm using SQLite3 for my database, with the path set as follows: Application.put_env(:cc, cc.Repo,
database: Path.join(config_dir(), "./database.db")
To troubleshoot this issue, I'd like to add logging when the .exe starts. Could you guide me on how to implement this? Additionally, are there any other steps you'd recommend to diagnose and resolve this problem? |
Hey @youfun for trouble shooting the best is to go use the windows terminal go to the directory where the app is installed and use the bin/.bat which should be the "normal" release bat file and allows for extra commands such as "bin/.bat iex" to run the interactive shell. This should everything that is going right or wrong during startup. |
ENV:
win11
Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]
Mix 1.16.3 (compiled with Erlang/OTP 24)
error:
step :
mix new project and follow the lead from https://github.com/elixir-desktop/desktop/blob/main/guides/your_first_desktop_app.md
try comand: mix run --no-halt ,it is work.
and try to deploy.
add mix deps and def package() to mix.exs. add priv/icon.png pic file :
mix deps.get
mix desktop.installer
The text was updated successfully, but these errors were encountered: