Skip to content

Adjust windows configuration#3

Merged
IronBlood merged 7 commits intomainfrom
feat/windows
Nov 14, 2025
Merged

Adjust windows configuration#3
IronBlood merged 7 commits intomainfrom
feat/windows

Conversation

@IronBlood
Copy link
Copy Markdown
Owner

  1. Install msys2. msys2 uses pacman from Arch Linux to manage packages. There's no need to install MSVC any more. Use msys2 (UCRT64) instead for a better experience. Msys2 is effectively rolling, which means it's easy to get the latest packages.
  2. Comment the line CheckSpace in /etc/pacman.conf with nano, this step is important, otherwise pacman would freeze checking disk space.
  3. Run pacman -Syu to sync info of packages. Different mirrors are already provided in /etc/pacman.d/mirrorlist.*s out of the box, so it should be fine to update manually unless you need to use a different one.
  4. Run the following command to install packages.
pacman -S \
  mingw-w64-ucrt-x86_64-toolchain \
  mingw-w64-ucrt-x86_64-neovim \
  mingw-w64-ucrt-x86_64-ripgrep \
  mingw-w64-ucrt-x86_64-fd

# Optional, but recommended
pacman -S mingw-w64-ucrt-x86_64-nodejs

Note: make sure /ucrt64/lib/libluajit-5.1.a is present, it should be installed by mingw-w64-ucrt-x86_64-luajit which is a dependency of mingw-w64-ucrt-x86_64-neovim.

@IronBlood IronBlood merged commit 9151829 into main Nov 14, 2025
@IronBlood
Copy link
Copy Markdown
Owner Author

Use GPG / pinentry on CLI

On msys2:

$ pacman -Ql pinentry
pinentry /usr/
pinentry /usr/bin/
pinentry /usr/bin/pinentry-w32.exe
pinentry /usr/bin/pinentry.exe
pinentry /usr/share/
pinentry /usr/share/info/
pinentry /usr/share/info/pinentry.info.gz

While on Arch Linux

$ pacman -Ql pinentry
pinentry /usr/
pinentry /usr/bin/
pinentry /usr/bin/pinentry
pinentry /usr/bin/pinentry-curses
pinentry /usr/bin/pinentry-emacs
pinentry /usr/bin/pinentry-gnome3
pinentry /usr/bin/pinentry-gtk
pinentry /usr/bin/pinentry-qt
pinentry /usr/bin/pinentry-qt5
pinentry /usr/bin/pinentry-tty
pinentry /usr/share/
pinentry /usr/share/applications/
pinentry /usr/share/applications/org.gnupg.pinentry-qt.desktop
pinentry /usr/share/applications/org.gnupg.pinentry-qt5.desktop
pinentry /usr/share/info/
pinentry /usr/share/info/pinentry.info.gz
pinentry /usr/share/pixmaps/
pinentry /usr/share/pixmaps/pinentry.png

There's no pinentry-tty or pinentry-curses available. So the configuration is a little bit different:

  1. Put allow-loopback-pinentry in ~/.gnupg/gpg-agent.conf
  2. Put pinentry-mode loopback in ~/.gnupg/gpg.conf
  3. export GPG_TTY=$(tty) is still needed
  4. Run echo "hello" | gpg --clearsign for testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant