FontGet icon indicating copy to clipboard operation
FontGet copied to clipboard

Option to fully skip the onboarding?

Open eXpl0it3r opened this issue 10 months ago • 2 comments

I tried to use FontGet in a GitHub Action step, since it seemed easy enough to install, but since the onboarding tries to open an interactive shell, it's impossible to use FontGet.

Is there a way to skip the onboarding completely?

Install fontget

  if ($env:RUNNER_OS -eq 'Windows') {
    winget install --id "fontget.fontget" --accept-package-agreements --accept-source-agreements
  } elseif ($env:RUNNER_OS -eq 'macOS') {
    brew tap Graphixa/homebrew-tap
    brew install fontget
  }

Install font

  if ($env:RUNNER_OS -eq 'Windows') {
    fontget add DejaVuSans
  } elseif ($env:RUNNER_OS -eq 'macOS') {
    fontget add DejaVuSans
  } elseif ($env:RUNNER_OS -eq 'Linux') {
    sudo apt-get update
    sudo apt-get install -y fonts-dejavu
  }

macOS failure

Error: onboarding failed: could not open a new TTY: open /dev/tty: device not configured
Error: onboarding failed: could not open a new TTY: open /dev/tty: device not configured

Windows failure

Line |
   4 |    fontget add DejaVuSans
     |    ~~~~~~~
     | The term 'fontget' is not recognized as a name of a cmdlet, function, script file, or executable program. Check
     | the spelling of the name, or if a path was included, verify that the path is correct and try again.

The install via winget works on Windows, but I couldn't call the command, as it was not found in PATH.

Workaround

Not relying on fontget I used the following step in my GitHub Actions workflow:

    - name: Install DejaVu Sans Font
      run: |
        if ("${{ runner.os }}" -eq "Windows") {
          choco install dejavufonts -y
        } elseif ("${{ runner.os }}" -eq "macOS") {
          brew install font-dejavu
        } elseif ("${{ runner.os }}" -eq "Linux") {
          sudo apt-get install -y fonts-dejavu
        }

eXpl0it3r avatar Jan 27 '26 21:01 eXpl0it3r

Nice work around. It's definitely on the roadmap. I am hoping to use make all commands that use the TUI like fontget sources manage also able to be managed via flags. This may take a little time to implement but I'll definitely look into this as soon as I can.

I'll let you know once this is implemented so you can test it out.

Graphixa avatar Feb 28 '26 10:02 Graphixa

@eXpl0it3r This has now been addressed in the latest release.

To bypass the onboarding steps just run: --accept-defaults which skips the interactive onboarding wizard using the default configuration and --accept-agreements to accept Terms of Use non-interactively.

You can run once using fontget --accept-agreements --accept-defaults or pass the flags on with any command for a one liner. You can also set Environment variables in your workflow to preset the flags to true. More info in the usage documentation.

Just waiting for microsoft/winget-pkgs to accept the pull request to add to the winget repository. After that it should be good to test again. If there is any issues with it, please create another issue

Graphixa avatar Mar 09 '26 02:03 Graphixa