Skip to content

Commit

Permalink
Merge pull request #9 from k3ii/Windows_release
Browse files Browse the repository at this point in the history
Windows release
  • Loading branch information
k3ii authored Sep 25, 2024
2 parents 20deee3 + 46bd976 commit 7e9bf2c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# we specify bash to get pipefail; it guards against the `curl` command
# failing. otherwise `sh` won't catch that `curl` returned non-0
shell: bash
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.21.1/cargo-dist-installer.sh | sh"
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.22.1/cargo-dist-installer.sh | sh"
- name: Cache cargo-dist
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -301,6 +301,11 @@ jobs:
name=$(echo "$filename" | sed "s/\.rb$//")
version=$(echo "$release" | jq .app_version --raw-output)
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
brew update
# We avoid reformatting user-provided data such as the app description and homepage.
brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix "Formula/${filename}" || true
git add "Formula/${filename}"
git commit -m "${name} ${version}"
done
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kouran"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["Jain Ramchurn"]
description = "View Power Outages in Mauritius"
Expand Down Expand Up @@ -30,15 +30,15 @@ lto = "thin"
# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.21.1"
cargo-dist-version = "0.22.1"
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["shell", "homebrew"]
installers = ["shell", "powershell", "homebrew"]
# A GitHub repo to push Homebrew formulas to
tap = "k3ii/homebrew-tap"
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu"]
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
# Path that installers should place binaries in
install-path = "CARGO_HOME"
# Publish jobs to run in CI
Expand Down
6 changes: 3 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ use clap::Command;

pub fn cli() -> Command {
Command::new("courant")
.version("0.1.2")
.version("0.1.3")
.author("Jain Ramchurn")
.subcommand(
Command::new("today")
.about("Show today's power outages")
.aliases(["zordi"]),
.aliases(["zordi", "zrdi"]),
)
.subcommand(
Command::new("tomorrow")
Expand All @@ -17,6 +17,6 @@ pub fn cli() -> Command {
.subcommand(
Command::new("all")
.about("Show both today's and tomorrow's power outages")
.aliases(["tou", "tout"]),
.aliases(["tou", "tout", "tous"]),
)
}

0 comments on commit 7e9bf2c

Please sign in to comment.