Comments (6)
I think that setting the RESOURCE_PATH
to an absolute path will make it more easily usuable.
In regards to where the resources should be linked to, this should be changed due to this symlink issue and if people aren't using the RESOURCE_PATH
env (we can't expect them to).
The usual place to put resources from my undestanding is /usr/local/share/$tool
. Your suggested /usr/local/lib/${tool}/resources/
is another option though not standard I belive. In either case these resources could be symlinked back to Mint's installation directory, similar to how homebrew does it.
from mint.
Any resources can just be accessed with relative paths eg "scripts"
or "../scripts"
.
Let me know if that doesn't work
from mint.
Actually that might be incorrect, perhaps it's Bundle.main.bundlePath + "/scripts"
from mint.
Thanks. Let's put symlink in the standard place 👌
from mint.
Hi, what is the status here? I had some issues recently trying to access the resources. I ended up with following symlink to find "real" binary location, and so the resources folder.
This is what I ended up with:
import PathKit
...
var tool = Path("$tool") // swiftymocky in my case
var bundlePath = Path(Bundle.main.bundlePath)
var resourcesPath: Path {
return (try? (bundlePath + tool).symlinkDestination())?.removingLastComponent() ?? bundlePath
}
I'm just a bit concerned if it would keep working? As far as I got, when you move the stuff to /usr/local/share/$tool
it would still be symlinked in the mint directory, right?
from mint.
I haven't had time to work on this. But yes, the directories would probably still be symlinked back to the mint directory
from mint.
Related Issues (20)
- Add Shell Completion Scripts HOT 1
- [BUG] Version comparison fails when it should actually succeed
- [CI] Github actions HOT 1
- To support local-packages HOT 1
- Build and cache packages on ci server to accelerate installs
- Swift Package plugin: MintKit compilation errors HOT 2
- Can't run [email protected] due to missing lib_InternalSwiftSyntaxParser.dylib HOT 2
- Allow custom scripts in the Mintfile
- Running (or rather, building) swiftlint 0.50.0-rc.1 fails HOT 4
- Mint 0.17.3 isn't available on brew HOT 1
- i can't install mint HOT 5
- Cannot install IBLinter with latest Mint HOT 1
- `mint run`, but referring to SPM executable name, instead of GitHub repo name? HOT 1
- Support Artifact Bundle
- Cannot find bundle with Bundle.module HOT 5
- mint does not fail when Mintfile does not exists at the specified path HOT 2
- Enable locking versions in `Mintfile.lock` or sth similar HOT 4
- mint which usage HOT 1
- _InternalSwiftSyntaxParser (no such module '_InternalSwiftSyntaxParser')
- Mint doesn't install dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mint.