moonrepo / proto

A pluggable multi-language version manager.
https://moonrepo.dev/proto
MIT License
681 stars 34 forks source link

Feature request: add proto to the scoop registry #548

Closed W1M0R closed 2 months ago

W1M0R commented 3 months ago

The scoop package manager offers a convenient way to install applications on Windows systems without requiring admin privileges.

If proto can be added to the scoop registry, then it could be installed using:

scoop install proto

Some helpful guides and examples:

  1. https://github.com/ScoopInstaller/Scoop?tab=readme-ov-file#what-sort-of-apps-can-scoop-install
  2. https://github.com/ScoopInstaller/Scoop/wiki/Creating-an-app-manifest
  3. https://github.com/ScoopInstaller/Scoop/wiki/App-Manifests
  4. https://github.com/ScoopInstaller/Main
  5. https://github.com/ScoopInstaller/.github/blob/main/.github/CONTRIBUTING.md#for-scoop-buckets
  6. https://github.com/ScoopInstaller/Main/blob/master/bucket/just.json
  7. https://github.com/ScoopInstaller/Main/blob/master/bucket/go.json
  8. https://github.com/ScoopInstaller/Main/blob/master/bucket/wasmer.json
  9. https://github.com/ScoopInstaller/Main/blob/master/bucket/busybox.json
W1M0R commented 2 months ago

@milesj Here is a working proto.json Scoop application manifest:

{
  "version": "0.40.0",
  "description": "A pluggable multi-language version manager.",
  "homepage": "https://github.com/moonrepo/proto",
  "license": "MIT",
  "url": "https://github.com/moonrepo/proto/releases/download/v0.40.0/proto_cli-x86_64-pc-windows-msvc.zip",
  "hash": "af38f2c86813a4e7b70157bdb2478f8d9b5946e1435b795bb07cababe0d24ea9",
  "bin": [ "proto.exe", "proto-shim.exe" ],
  "checkver": {
    "github": "https://github.com/moonrepo/proto"
  },
  "autoupdate": {
    "url": "https://github.com/moonrepo/proto/releases/download/v$version/proto_cli-x86_64-pc-windows-msvc.zip"
  },
  "env_add_path": [
    "shims",
    "bin"
  ],
  "env_set": {
    "PROTO_HOME": "$dir"
  }
}

The result of scoop install:

❯ scoop install .\etc\scoop\proto.json
Installing 'proto' (0.40.0) [64bit] from 'C:\Users\user2\ScoopTest\proto.json'
Loading proto_cli-x86_64-pc-windows-msvc.zip from cache
Checking hash of proto_cli-x86_64-pc-windows-msvc.zip ... ok.                            
Extracting proto_cli-x86_64-pc-windows-msvc.zip ... done.
Linking ~\scoop\apps\proto\current => ~\scoop\apps\proto\0.40.0
Creating shim for 'proto'.
Creating shim for 'proto-shim'.                                                          
Adding ~\scoop\apps\proto\current\shims to your path.                                    
Adding ~\scoop\apps\proto\current\bin to your path.
'proto' (0.40.0) was installed successfully!

The result of proto diagnose:

❯ proto diagnose
No issues detected with your proto installation!
milesj commented 2 months ago

I don't plan to officially support other install methods outside what is already supported. This feels like something the community can maintain unofficially, in the same way that homebrew is.

W1M0R commented 2 months ago

@milesj All good, thanks.

W1M0R commented 2 months ago

Updated status.