Skip to content

Allow specifying the name of the installed Typst executable #21

Closed as not planned
@SillyFreak

Description

@SillyFreak

this action adds typst to the path; for testing packages with multiple Typst versions it would be desirable that different versions could be installed under different executable names, to that in the end for example typst and typst-0.10 end up on the Path.

I can imagine a few different ways this could work:

  • add a parameter like executable-name that you could set to typst-0.10. If specified, the executable is renamed
  • add a parameter like use-version-suffix that you could set to true. If true, either
    • rename the executable
    • add a symlink that uses typst-version for the suffix
    • add symlinks for all prefixes of the actual resolved version number, e.g. 0, 0.10 and 0.10.0
  • always add these symlinks; they don't hurt, even if the executable is used through the name typst. As each invocation of setup-typst prepends an entry to the path, the last one will determine the version found under the name typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions