Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support build step #41

Open
axetroy opened this issue Apr 18, 2022 · 1 comment
Open

feat: support build step #41

axetroy opened this issue Apr 18, 2022 · 1 comment

Comments

@axetroy
Copy link
Member

axetroy commented Apr 18, 2022

[package]
name = "github.com/axetroy/gpm.rs"
bin = "gpm"
versions = ["0.1.12", "0.1.11"]
authors = ["Axetroy <[email protected]>"]
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.

@iawia002
Copy link
Collaborator

iawia002 commented Apr 21, 2022

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants