Skip to content

Commit 61226fb

Browse files
committed
chore: bump version
1 parent 8fe82a9 commit 61226fb

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ jobs:
7373
if: runner.os != 'macOS'
7474
run: |
7575
if [ "$RUNNER_OS" == "Windows" ]; then
76-
upx --best target/${{ matrix.target }}/release/ice.exe
76+
upx --best --lzma target/${{ matrix.target }}/release/ice.exe
7777
else
78-
upx --best target/${{ matrix.target }}/release/ice
78+
upx --best --lzma target/${{ matrix.target }}/release/ice
7979
fi
8080
shell: bash
8181

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ice"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55
authors = ["tamton-aquib <aquibjavedt007@gmail.com>"]
66
license = "MIT"

PKGBUILD

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer: Aquib Javed <aquibjavedt007@gmail.com>
22
pkgname=ice-bin
3-
pkgver=0.2.0
3+
pkgver=0.2.1
44
pkgrel=1
55
epoch=
66
pkgdesc="A lightweight CTF utility."
@@ -13,9 +13,10 @@ install=
1313
changelog=
1414
source=("ice.zip::https://github.com/tamton-aquib/ice/releases/download/v${pkgver}/ice-x86_64-unknown-linux-gnu.tar.gz")
1515
noextract=()
16+
noextract=()
1617
sha256sums=('SKIP')
17-
validpgpkeys=()
1818

1919
package() {
20-
install -Dm755 "${srcdir}/ice" "${pkgdir}/usr/bin/ice"
20+
tar -xzf "${srcdir}/ice-x86_64-unknown-linux-gnu.tar.gz" -C "${srcdir}"
21+
install -Dm755 "${srcdir}/ice-x86_64-unknown-linux-gnu/ice" "${pkgdir}/usr/bin/ice"
2122
}

src/cli.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub enum Command {
3535
UrlDecode(String),
3636
FactorDb(String),
3737
Help,
38+
Version,
3839
Unknown(String),
3940
}
4041

@@ -75,6 +76,7 @@ impl Command {
7576
Command::UrlDecode(text) => println!("{}", general::url_decode(text).trim()),
7677
Command::FactorDb(number) => println!("{}", services::factordb(number).trim()),
7778
Command::Help => {}
79+
Command::Version => {}
7880
Command::Unknown(cmd) => {
7981
eprintln!("Error: Unknown subcommand '{}'", cmd);
8082
}
@@ -86,6 +88,9 @@ pub fn parse_args(args: &mut Arguments) -> Result<Command, String> {
8688
if args.contains(["-h", "--help"]) {
8789
return Ok(Command::Help);
8890
}
91+
if args.contains(["-v", "--version"]) {
92+
return Ok(Command::Version);
93+
}
8994

9095
let subcommand = match args.subcommand() {
9196
Ok(Some(cmd)) => cmd,

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ fn main() {
2828
Command::Help => {
2929
print_usage();
3030
}
31+
Command::Version => {
32+
println!("ice {}", env!("CARGO_PKG_VERSION"));
33+
}
3134
Command::Unknown(cmd) => {
3235
eprintln!("Error: Unknown subcommand '{}'", cmd);
3336
print_usage();

0 commit comments

Comments
 (0)