Skip to content

Commit b604b60

Browse files
authored
Merge pull request #1 from Mohaned2023/develop
v2.2.0
2 parents 0749996 + 7e63308 commit b604b60

File tree

29 files changed

+1216
-897
lines changed

29 files changed

+1216
-897
lines changed

.github/workflows/release.yml

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
build-linux:
16+
name: Build Linux
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Install Rust
23+
uses: dtolnay/rust-toolchain@stable
24+
with:
25+
targets: x86_64-unknown-linux-gnu
26+
27+
- name: Test
28+
run: cargo test --target x86_64-unknown-linux-gnu
29+
30+
- name: Build
31+
run: cargo build -r --target x86_64-unknown-linux-gnu
32+
33+
- name: Create bin directory structure
34+
run: mkdir -p xpmanager_${{ vars.XPM_VERSION }}_linux_x86_64/bin
35+
36+
- name: Move executable to bin/xpm
37+
run: mv target/x86_64-unknown-linux-gnu/release/xpm xpmanager_${{ vars.XPM_VERSION }}_linux_x86_64/bin/xpm
38+
39+
- name: Create .tar.gz archive
40+
run: tar -czvf xpmanager_${{ vars.XPM_VERSION }}_linux_x86_64.tar.gz xpmanager_${{ vars.XPM_VERSION }}_linux_x86_64
41+
42+
- name: Generate .deb package
43+
run: |
44+
cargo install cargo-deb
45+
cargo deb
46+
47+
- name: Upload .deb package
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: deb-linux-x86_64
51+
path: target/debian/*.deb
52+
53+
- name: Upload artifact
54+
uses: actions/upload-artifact@v4
55+
with:
56+
retention-days: 1
57+
name: linux-x86_64
58+
path: xpmanager_${{ vars.XPM_VERSION }}_linux_x86_64.tar.gz
59+
60+
build-macos:
61+
name: Build MacOS
62+
runs-on: macos-latest
63+
steps:
64+
- uses: actions/checkout@v4
65+
66+
- name: Install Rust
67+
uses: dtolnay/rust-toolchain@stable
68+
with:
69+
targets: aarch64-apple-darwin
70+
71+
- name: Test
72+
run: cargo test --target aarch64-apple-darwin
73+
74+
- name: Build
75+
run: cargo build -r --target aarch64-apple-darwin
76+
77+
- name: Create bin directory structure
78+
run: mkdir -p xpmanager_${{ vars.XPM_VERSION }}_macos_aarch64/bin
79+
80+
- name: Move executable to bin/xpm
81+
run: mv target/aarch64-apple-darwin/release/xpm xpmanager_${{ vars.XPM_VERSION }}_macos_aarch64/bin/xpm
82+
83+
- name: Create .tar.gz archive
84+
run: tar -czvf xpmanager_${{ vars.XPM_VERSION }}_macos_aarch64.tar.gz xpmanager_${{ vars.XPM_VERSION }}_macos_aarch64
85+
86+
- name: Upload artifact
87+
uses: actions/upload-artifact@v4
88+
with:
89+
retention-days: 1
90+
name: macos-aarch64
91+
path: xpmanager_${{ vars.XPM_VERSION }}_macos_aarch64.tar.gz
92+
93+
release:
94+
name: Create Release
95+
needs: [build-linux, build-macos]
96+
runs-on: ubuntu-latest
97+
steps:
98+
- uses: actions/checkout@v4
99+
100+
- name: Download all artifacts
101+
uses: actions/download-artifact@v4
102+
with:
103+
path: .
104+
105+
- name: Create Release
106+
id: create_release
107+
uses: softprops/action-gh-release@v1
108+
with:
109+
files: |
110+
linux-x86_64/xpmanager_${{ vars.XPM_VERSION }}_linux_x86_64.tar.gz
111+
deb-linux-x86_64/*.deb
112+
macos-aarch64/xpmanager_${{ vars.XPM_VERSION }}_macos_aarch64.tar.gz
113+
env:
114+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
116+
publish:
117+
name: Publish to crates.io
118+
needs: release
119+
runs-on: ubuntu-latest
120+
steps:
121+
- uses: actions/checkout@v4
122+
123+
- name: Install Rust
124+
uses: dtolnay/rust-toolchain@stable
125+
126+
- name: Publish to crates.io
127+
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}

.github/workflows/test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- master
8+
pull_request:
9+
branches:
10+
- develop
11+
- master
12+
13+
env:
14+
CARGO_TERM_COLOR: always
15+
16+
jobs:
17+
test:
18+
name: Testing
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
include:
23+
- os: ubuntu-latest
24+
target: x86_64-unknown-linux-gnu
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Install Rust
30+
uses: dtolnay/rust-toolchain@stable
31+
with:
32+
targets: ${{ matrix.target }}
33+
34+
- name: Cache dependencies
35+
uses: Swatinem/rust-cache@v2
36+
37+
- name: Build
38+
run: cargo build --target ${{ matrix.target }}
39+
40+
- name: utilities test
41+
run: cargo test utilities --target ${{ matrix.target }}
42+
43+
- name: filelib test
44+
run: cargo test filelib --target ${{ matrix.target }}
45+
46+
- name: dblib test
47+
run: cargo test dblib --target ${{ matrix.target }}
48+
49+
- name: password manager test
50+
run: cargo test password_manager --target ${{ matrix.target }}
51+
52+
- name: encryption manager test
53+
run: cargo test encryption_manager --target ${{ matrix.target }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# Added by cargo
44

55
/target
6+
/temp

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: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
[package]
22
name = "XPManager"
3-
version = "2.1.0"
3+
version = "2.2.0"
44
edition = "2021"
5-
description = "XPManager is a CLI tool specialized in dealing with passwords management and file encryption/decryption."
5+
description = "A fast and efficient CLI tool for managing passwords and encrypting sensitive data."
66
authors = ["Mohaned Sherhan"]
77
license = "MIT"
8-
repository = "https://github.com/Mohaned2023/XPManager"
9-
documentation = "https://github.com/Mohaned2023/XPManager/blob/master/USAGE.md"
10-
homepage = "https://github.com/Mohaned2023/XPManager"
8+
keywords = ["cli", "encryption", "password", "manager"]
9+
repository = "https://github.com/xpmanager/XPManager"
10+
documentation = "https://xpmanager.github.io/docs/intro"
11+
homepage = "https://xpmanager.github.io/"
1112

1213
[[bin]]
1314
name = "xpm"
@@ -36,7 +37,7 @@ tabled = "0.18.0"
3637
maintainer = "Mohaned Sherhan"
3738
copyright = "2025, Mohaned Sherhan"
3839
license-file = ["LICENSE"]
39-
extended-description = """XPManager is a CLI tool specialized in dealing with passwords management and file encryption/decryption."""
40+
extended-description = """A fast and efficient CLI tool for managing passwords and encrypting sensitive data."""
4041
depends = "$auto"
4142
assets = [
4243
["target/release/xpm", "usr/local/bin/", "755"],

ERROR.md

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)