Portable Scoop
#5207
Replies: 1 comment
-
Well, to answer my own question...yes, it is possible. In the last couple of days, I learned what a shim is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
So...I am looking into having a portable Scoop installation.
Yes, I searched Discussions and Issues and:
As I read the Scoop literature, I found that
The [wiki] "So What" page says:
The [wiki] "Apps" page says:
The [wiki] "Dependencies" page says:
So, apps are already supposed to be self-contained, and
shims enable apps to run from wherever Scoop is installed;
yet, it does not appear that the Scoop installation itself is portable...what's the blocker?
I see some thread talking about
~/.config/scoop
. I still don't know what that is for and how it stops a portable Scoop installation. I would like to think/speculate that given the contents of this file, it is more for admin purposes than for use purposes; in other words, if users are not going to be installing additional apps, they don't need this file...only the admin. True?At this early stage in my familiarity with Scoop, I am only aware of two issues that may be keeping me from a portable Scoop:
1.-
./apps/<app>/current
Within an app subdirectory, the junction
current
points to the full path of the latest version.I would like to think that this is not much of a blocker, as this can be changed to be a relative path.
2.-
./shims/<app>.shim
The app *.shim file has, hard-coded in it, the full path to the app executable.
I would like to have a way to dynamically determine this.
When it comes to launch scripts, one of the first things one typically does is to find out the location of the launch script itself:
%~dp0
$(dirname $(readlink -f $0))
If only there was a way for the *.exe/*.shim pair to use environment variables so that
instead of:
path = "C:\Users\<userid>\scoop\apps\make\current\bin\make.exe"
one could do:
path = "%SCOOP_HOME%\apps\make\current\bin\make.exe"
Is this possible?
what would it take?
enhance
scoop shim
?Please advise.
Beta Was this translation helpful? Give feedback.
All reactions