-
-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# SPM Backend <Badge type="warning" text="experimental" /> | ||
|
||
You may install executables managed by [Swift Package Manager](https://www.swift.org/documentation/package-manager) directly from Github releases. | ||
|
||
The code for this is inside of the mise repository at [`./src/backend/spm.rs`](https://github.com/jdx/mise/blob/main/src/backend/spm.rs). | ||
|
||
## Dependencies | ||
|
||
This relies on having `swift` installed. You can install it according to the [instructions](https://www.swift.org/install). | ||
|
||
## Usage | ||
|
||
The following installs the latest version of `tuist` | ||
and sets it as the active version on PATH: | ||
|
||
```sh | ||
$ mise use -g spm:tuist/tuist | ||
$ tuist --help | ||
OVERVIEW: Generate, build and test your Xcode projects. | ||
|
||
USAGE: tuist <subcommand> | ||
... | ||
``` | ||
|
||
The version will be set in `~/.config/mise/config.toml` with the following format: | ||
|
||
```toml | ||
[tools] | ||
"spm:tuist/tuist" = "latest" | ||
``` | ||
|
||
### Supported Ubi Syntax | ||
|
||
| Description | Usage | | ||
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------- | | ||
| Github shorthand for latest release version | `spm:tuist/tuist` | | ||
| Github shorthand for specific release version | `spm:tuist/[email protected]` | | ||
| Github url for latest release version | `spm:https://github.com/tuist/tuist.git` | | ||
| Github url for specific release version | `spm:https://github.com/tuist/[email protected]` | | ||
|
||
Other syntax may work but is unsupported and untested. |