Title: Install on Windows with Scoop and winget · Issue #152 · openjavaformat/open-java-format · GitHub
Open Graph Title: Install on Windows with Scoop and winget · Issue #152 · openjavaformat/open-java-format
X Title: Install on Windows with Scoop and winget · Issue #152 · openjavaformat/open-java-format
Description: Why On Windows the formatter is a file from the release page that has to be renamed to open-java-format.exe and moved into a directory on the PATH by hand, and replaced by hand for every release. Windows has three package managers that c...
Open Graph Description: Why On Windows the formatter is a file from the release page that has to be renamed to open-java-format.exe and moved into a directory on the PATH by hand, and replaced by hand for every release. W...
X Description: Why On Windows the formatter is a file from the release page that has to be renamed to open-java-format.exe and moved into a directory on the PATH by hand, and replaced by hand for every release. W...
Opengraph URL: https://github.com/openjavaformat/open-java-format/issues/152
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Install on Windows with Scoop and winget","articleBody":"### Why\n\nOn Windows the formatter is a file from the release page that has to be renamed to `open-java-format.exe` and moved into a directory on the `PATH` by hand, and replaced by hand for every release. Windows has three package managers that could do this:\n\n- **winget** is Microsoft's and comes with Windows 11 and current Windows 10. It has one central repository, microsoft/winget-pkgs, where every version is a pull request that goes through Microsoft's validation before it is merged.\n- **Scoop** is popular with developers for command-line tools. It installs per user, without administrator rights, and anyone can run a bucket: a Git repository of JSON manifests.\n- **Chocolatey** is the oldest and common in companies. Its community repository has a moderation queue, and it installs as administrator by default.\n\nwinget reaches every Windows machine with no setup, and a Scoop bucket is entirely in our hands, so this proposes both. Chocolatey can wait until someone asks: it would be a third account, API key and moderation queue for users the other two already reach.\n\n### Scoop: a bucket of our own\n\n`openjavaformat/scoop-bucket`, made from [ScoopInstaller/BucketTemplate](https://github.com/ScoopInstaller/BucketTemplate), with `bucket/open-java-format.json`: the release's `open-java-format-windows_x86-64.exe`, renamed to `open-java-format.exe` with Scoop's `#/` suffix, its hash, and `bin` pointing at it.\n\n```powershell\nscoop bucket add openjavaformat https://github.com/openjavaformat/scoop-bucket\nscoop install openjavaformat/open-java-format\n```\n\nThe manifest's `checkver` and `autoupdate` blocks let the bucket follow releases, with the hash read from `checksums_sha256.txt`. The template's Excavator workflow runs them every four hours and commits the new version: the idea of the Homebrew tap in #151, done with Scoop's own tooling.\n\nThe official buckets have to wait. Extras asks for at least 100 stars or 50 forks, Main for 500 stars and 150 forks, and the repository has 34 stars today. google-java-format is in Extras, as a jar that needs a JDK ([manifest](https://github.com/ScoopInstaller/Extras/blob/master/bucket/google-java-format.json)).\n\n### winget: a package in microsoft/winget-pkgs\n\nA portable package, `InstallerType: portable` with `Commands: [open-java-format]`: winget keeps the exe in a directory of its own and puts an `open-java-format` link on the `PATH`. jq ships its single exe this way ([manifest](https://github.com/microsoft/winget-pkgs/blob/master/manifests/j/jqlang/jq/1.8.2/jqlang.jq.installer.yaml)).\n\n```powershell\nwinget install OpenJavaFormat.OpenJavaFormat\n```\n\nThe first version goes in by hand, with `wingetcreate new` or `komac new`. After that, a workflow in this repository on the `release: released` event, which fires when the draft release is published, runs `wingetcreate update --submit` or `komac update --submit` to open the pull request from a fork. It needs a token that can fork microsoft/winget-pkgs and open pull requests, kept as a repository secret. Every update waits for Microsoft's validation, so winget trails a release by hours to days.\n\nBoth manifests are x64 only, since the release has no ARM64 binary.\n\n### To decide\n\n- The winget identifier, `OpenJavaFormat.OpenJavaFormat` above, and the moniker `open-java-format`. Neither should change once published.\n- Whose token opens the winget pull requests: a maintainer's or a bot account's.\n- Windows 11 on ARM: winget and Scoop would hand it the x64 binary, to run under emulation, while the [Command line](https://openjavaformat.dev/get-started/command-line/) page sends those users to the jar. Try the binary there before the page promises anything.\n\n### Done when\n\n- `scoop install openjavaformat/open-java-format` and `winget install OpenJavaFormat.OpenJavaFormat` install the latest release on Windows x64, and `open-java-format --version` works in a new terminal;\n- a new release reaches the bucket within four hours, and its winget pull request opens without a hand edit;\n- the [Command line](https://openjavaformat.dev/get-started/command-line/) page gets a Windows section with both commands, and [About](https://openjavaformat.dev/about/#where-it-is-published) lists both.\n\n### Related\n\n- #151 does the same for Homebrew.\n- #153 does the same for Ubuntu.\n","author":{"url":"https://github.com/abashev","@type":"Person","name":"abashev"},"datePublished":"2026-10-25T14:25:42Z","url":"https://github.com/openjavaformat/open-java-format/issues/152"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4f5d988b-b287-de55-474f-71504390d9eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E374:10A7CF:2DE9A8:3CADAE:6AFBB791 |
| html-safe-nonce | f30986fcab3ef1c593b341171468f5e4fb372d55384724d28754b83fd2755dae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzc0OjEwQTdDRjoyREU5QTg6M0NBREFFOjZBRkJCNzkxIiwidmlzaXRvcl9pZCI6IjU3OTQ1MTUzNzkyNzA5NTY5NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 76ed94aa6b1ac37b1513a5475769669150765fbac54fd2195772e08193d9c235 |
| hovercard-subject-tag | issue:6025502544 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/openjavaformat/open-java-format/152/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee2aa9ce379a95be04fe2a8fb77b3f1521192f54795bc47e51c659a436448be2/openjavaformat/open-java-format/issues/152 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee2aa9ce379a95be04fe2a8fb77b3f1521192f54795bc47e51c659a436448be2/openjavaformat/open-java-format/issues/152 |
| og:image:alt | Why On Windows the formatter is a file from the release page that has to be renamed to open-java-format.exe and moved into a directory on the PATH by hand, and replaced by hand for every release. W... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abashev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/openjavaformat/open-java-format git https://github.com/openjavaformat/open-java-format.git |
| octolytics-dimension-user_id | 325177626 |
| octolytics-dimension-user_login | openjavaformat |
| octolytics-dimension-repository_id | 1288055459 |
| octolytics-dimension-repository_nwo | openjavaformat/open-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 214273098 |
| octolytics-dimension-repository_parent_nwo | palantir/palantir-java-format |
| octolytics-dimension-repository_network_root_id | 214273098 |
| octolytics-dimension-repository_network_root_nwo | palantir/palantir-java-format |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width