Skip to content

Commit

Permalink
rename mantask to xtask
Browse files Browse the repository at this point in the history
  • Loading branch information
BKSalman committed Aug 17, 2024
1 parent 981ce59 commit 96306ed
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[alias]
mantask = "run -p mantask --"
xtask = "run -p xtask --"
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
shared-key: "rust-${{ matrix.build }}-test"

- name: Package Linux
run: cargo mantask package_linux_all
run: cargo xtask package_linux_all

- name: Upload assets to release
uses: xresloader/upload-to-github-release@v1
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
shared-key: "rust-${{ matrix.build }}-test"

- name: Packages script
run: cargo mantask package_windows
run: cargo xtask package_windows

- name: Upload assets to release
uses: xresloader/upload-to-github-release@v1
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ aur/*.tar.gz
aur/src/
aur/pkg
result
mantask/target
xtask/target
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ authors = ["Salman"]

[workspace]
members = [
"mantask"
"xtask"
]

[dependencies]
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion mantask/Cargo.toml → xtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "mantask"
name = "xtask"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions mantask/src/main.rs → xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::io::Write;
use std::str::FromStr;
use strum::{Display, EnumIter, EnumString, IntoEnumIterator};

use mantask::{cargo, git, unzip, zip_dir, CommandExt};
use xtask::{cargo, git, unzip, zip_dir, CommandExt};

#[derive(EnumString, EnumIter, Display, Debug, PartialEq)]
#[strum(serialize_all = "snake_case")]
Expand Down Expand Up @@ -204,7 +204,7 @@ fn package_windows() -> anyhow::Result<()> {

fn package_aur(rel: Option<u8>) -> anyhow::Result<()> {
let mut ytdlp_gui_path = std::env::current_dir()?;
if ytdlp_gui_path.ends_with("mantask") {
if ytdlp_gui_path.ends_with("xtask") {
ytdlp_gui_path.pop();
}
let metadata = MetadataCommand::new()
Expand Down Expand Up @@ -282,7 +282,7 @@ fn package_aur(rel: Option<u8>) -> anyhow::Result<()> {

fn publish_aur(message: Option<String>) -> anyhow::Result<()> {
let mut ytdlp_gui_path = std::env::current_dir()?;
if ytdlp_gui_path.ends_with("mantask") {
if ytdlp_gui_path.ends_with("xtask") {
ytdlp_gui_path.pop();
}

Expand Down

0 comments on commit 96306ed

Please sign in to comment.