Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide installers for package managers such as Scoop and Chocolatey #29

Closed
jonlandrum opened this issue Aug 4, 2022 · 3 comments
Closed

Comments

@jonlandrum
Copy link

It would be nice to be able to automatically install and uninstall Expect using a preferred package manager, such as Scoop or Chocolatey. Information regarding contributing to these:

I don't know if Expect can run as a self-contained executable or not, but there are options (at least with Scoop, there are) for installing system-wide to the C:\ drive, if that's a requirement.

@hymkor
Copy link
Owner

hymkor commented Dec 24, 2022

@jonlandrum

I have created the manifest file of scoop installer for Expect.Lua
Now, you can install Expect.Lua as below.

scoop install https://raw.githubusercontent.com/hymkor/expect/master/expect.json

After a few version-up and if no problems are found, I will make the pull-request to add the Expect's entry into https://github.com/ScoopInstaller/Main .

@hymkor hymkor closed this as completed Jan 2, 2023
@jonlandrum
Copy link
Author

I will reinstall via this method to test it in addition to what testing you've done.

@jonlandrum
Copy link
Author

Installing manually works as expected:

C:\Users\jonlandrum〉scoop install https://raw.githubusercontent.com/hymkor/expect/master/expect-lua.json
Installing 'expect-lua' (0.10.0) [64bit]
expect-v0.10.0-amd64.zip (1.2 MB) [=====================================================================] 100%
Checking hash of expect-v0.10.0-amd64.zip ... ok.
Extracting expect-v0.10.0-amd64.zip ... done.
Linking ~\scoop\apps\expect-lua\current => ~\scoop\apps\expect-lua\0.10.0
Creating shim for 'expect'.
'expect-lua' (0.10.0) was installed successfully!

C:\Users\jonlandrum〉which expect
╭───┬────────┬────────────────────────────────────────────┬──────────╮
│ # │  arg   │                   path                     │ built-in │
├───┼────────┼────────────────────────────────────────────┼──────────┤
│ 0 │ expect │ C:\Users\jonlandrum\scoop\shims\expect.EXE │ false    │
╰───┴────────┴────────────────────────────────────────────┴──────────╯

Confirmation that the new version is targeted:

C:\Users\jonlandrum\opt\expect-bak〉.\expect.exe
expect.lua for Windows v0.6.2
Usage: .\expect.exe xxxx.lua

C:\Users\jonlandrum\opt\expect-bak〉expect
Expect-lua v0.10.0-windows-amd64
Usage: C:\Users\jonlandrum\scoop\apps\expect-lua\current\expect.exe xxxx.lua

Confirmation that the new version works as expected:

C:\Users\jonlandrum\src\repo〉[[[script calling expect]]]
Expect-lua v0.10.0-windows-amd64
...

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

No branches or pull requests

2 participants