fast-cli-keepass 0.1.0

A tool to quickly find entries in a keepass database using the command-line
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
print("Creating new release")
targets = "x86_64-unknown-linux-gnu x86_64-pc-windows-gnu".split(" ")

for target in targets:
    os.system(f"rustup target add {target}")
    print(f"Building target {target}")
    os.system(f"cargo b --release --target {target}")
    print(f"Creating archive...")
    extension = ".exe" if "windows" in target else "" 
    path = f"target/{target}/release/fast-cli-keepass{extension}"
    os.system(f"tar czf target/{target}.tar.gz {path}")
    print(f"Done ! Get your archive at: target/{target}.tar.gz")

print(f"Creating source code archive")
os.system("tar czf target/source_code.tar.gz --directory=src .")
print(f"Done ! Get your archive at: target/source_code.tar.gz")