Skip to content

feat: support build step #41

Description

@axetroy
[package]
name = "github.com/axetroy/gpm.rs"
bin = "gpm"
versions = ["0.1.12", "0.1.11"]
authors = ["Axetroy <axetroy.dev@gmail.com>"]
keywords = ["gpm", "git", "project", "manager"]
repository = "https://github.com/axetroy/gpm.rs"
description = """
A command line tool, manage your hundreds of repository, written with Rust.
"""

[build.unix]
sh = """
git clone https://github.com/axetroy/gpm.rs
make
"""
[[build.unix.binary]]
name = "gpm"
path = "./gpm"

[build.windows]
cmd = """
git clone https://github.com/axetroy/gpm.rs
make
"""
[[build.windows.binary]]
name = "gpm"
path = "./gpm.exe"

This formula will clone https://github.com/axetroy/gpm.rs and then run make command.

Activity

  1. iawia002 commented on Apr 21, 2022

    @iawia002
    Collaborator

    Looks good, I'm wondering that since we've already configured the git repository address in the package section, we could run git clone first by default, and just write the build command in sh/cmd.

    Another small question is why the parameter name is sh on Unix and cmd on Windows, they mean the same thing, can they be unified?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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