Skip to content

mix desktop.installer deploy error #4

@youfun

Description

@youfun

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:

 mix desktop.installer           
Generated desktop_demo app                                              
* assembling default_release-0.1.0 on MIX_ENV=prod                      
* using config/runtime.exs to configure the release at runtime          
        
09:40:16.265 [warning] There is no package config defined. Using the generic Elixir App descriptions.
Running: convert -resize 64x64 priv/icon.png icon.ico
** (ArgumentError) argument error
    (stdlib 6.0) io.erl:203: :io.put_chars(:standard_io, <<206, 222, 208, 167, 178, 206, 202, 253, 32, 45, 32, 54, 52, 120, 54, 52, 13, 10>>)   
    (elixir 1.16.3) lib/system.ex:1149: System.do_port_byte/3
    (elixir 1.16.3) lib/system.ex:1135: System.do_cmd/3
    (desktop_deployment 1.0.0) lib/mix/tasks/installer.ex:41: Mix.Tasks.Desktop.Installer.run/2
    (mix 1.16.3) lib/mix/task.ex:478: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.16.3) lib/mix/cli.ex:96: Mix.CLI.run_task/2
    c:/Scoop/apps/elixir/current/bin/mix:2: (file)

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 :

      {:desktop_deployment, github: "elixir-desktop/deployment", runtimes: false}


def package() do
    [
      name: "MyApp",
      name_long: "The most wonderfull App Ever",
      description: "MyApp is an Elixir App for Desktop",
      description_long: "MyApp for Desktop is powered by Phoenix LiveView",
      icon: "priv/icon.png",
      # https://developer.gnome.org/menu-spec/#additional-category-registry
      category_gnome: "GNOME;GTK;Office;",
      category_macos: "public.app-category.productivity",
      identifier: "io.myapp.app",
    ]
  end

mix deps.get
mix desktop.installer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions