kscripting / kscript

Scripting enhancements for Kotlin
MIT License
2.07k stars 126 forks source link

Create kscript package for scoop #391

Closed aartiPl closed 1 year ago

aartiPl commented 1 year ago

There is a need for the kscript package for scoop and choco. For the starter, we need to investigate how to onboard in them quickly. Then we will need a simple release process so that I can create proper scripts.

aartiPl commented 1 year ago

Thanks, @goto1134, for the link to the scoop page: https://scoop-docs.vercel.app/docs/concepts/Creating-an-app-manifest.html https://github.com/ScoopInstaller/Extras/pull/9353

goto1134 commented 1 year ago

kscript was published to scoop by https://github.com/ScoopInstaller/Extras/pull/9353. Here is the current version of the manifest: https://github.com/ScoopInstaller/Extras/blob/master/bucket/kscript.json

  1. It has the latest version already published.
  2. It automatically checks for any releases in the kscript repo and updates the manifest. (see checkver and autoupdate).
  3. Scoop has a special shims directory with symlinks to executables. For kscript, this executable is bin\\kscript.bat. This shims directory allows scoop not to modify the PATH after each package installation. But the current version of kscript has a bug described in https://github.com/kscripting/kscript/pull/390. Therefore https://github.com/kscripting/kscript/pull/390 should be released for kscript to work correctly with scoop.

You can install kscript on windows using the following commands:

scoop bucket add extras
scoop install kscript
aartiPl commented 1 year ago

@goto1134 - I have just released kscript 4.2.1 with the bug fix in kscript.bat. As I understand, we should just wait for some automated process that will update kscript.json.

goto1134 commented 1 year ago

Yeah, just wait for the autoudate script to work ☺️

goto1134 commented 1 year ago

Finally, it was updated https://github.com/ScoopInstaller/Extras/commit/69784ae2aad8e89f2a8b8612353717113d433a5f

😎

goto1134 commented 1 year ago

@aartiPl , could you, please, mention Dany-coder778 in the latest https://github.com/kscripting/kscript/blob/master/NEWS.adoc as the author of the scoop installer? He provided the pull request to Scoop https://github.com/ScoopInstaller/Extras/pull/9353

aartiPl commented 1 year ago

Sure, happy to do that. Thanks again for your contribution @Dany-co! and @goto1134 !