Compare commits

...

6 Commits
v35 ... main

Author SHA1 Message Date
Your Name
a01e9f9856 bb64 release v39 2025-05-19 00:22:38 +12:00
Your Name
745c7a8c9c bb64 release v38 2025-05-18 23:42:35 +12:00
Your Name
78e3a9af97 bb64 release v37 2025-05-17 17:09:43 +12:00
Your Name
97582f0381 . 2025-05-17 12:41:54 +12:00
Your Name
374df9f580 bb64 release v36 2025-05-17 09:56:57 +12:00
Your Name
dd7bfe3f30 tiny fixes 2025-05-17 09:56:15 +12:00
5 changed files with 18 additions and 15 deletions

View File

@ -63,6 +63,7 @@
"typeinfo": "cpp", "typeinfo": "cpp",
"variant": "cpp", "variant": "cpp",
"format": "cpp", "format": "cpp",
"__nullptr": "cpp" "__nullptr": "cpp",
"codecvt": "cpp"
} }
} }

View File

@ -149,6 +149,8 @@ Usage:
bb64 -u Updates bb64 to the latest version (uses docker) bb64 -u Updates bb64 to the latest version (uses docker)
bb64 -v Prints the version number
)" << std::endl; )" << std::endl;
return -1; return -1;
} }
@ -159,6 +161,11 @@ Usage:
{ {
if (mode == "-u") if (mode == "-u")
return update_bb64(); return update_bb64();
else if (mode == "-v")
{
std::cout << VERSION << std::endl;
return 0;
}
else if (mode == "-e") else if (mode == "-e")
{ {
std::ostringstream oss; std::ostringstream oss;

View File

@ -8,12 +8,7 @@ mkdir -p "$OUTPUT_DIR"
# Build for x86_64 with musl static linking # Build for x86_64 with musl static linking
if [[ $(uname -m) == "x86_64" ]]; then if [[ $(uname -m) == "x86_64" ]]; then
echo "Building for x86_64 (musl static)..." echo "Building for x86_64 (musl static)..."
if command -v x86_64-linux-musl-g++ &>/dev/null; then x86_64-linux-musl-g++ -O2 -static -o "$OUTPUT_DIR/bb64.amd64" bb64.cpp b64ed.cpp
x86_64-linux-musl-g++ -O2 -static -o "$OUTPUT_DIR/bb64.amd64" bb64.cpp b64ed.cpp
else
g++ -O2 -static -o "$OUTPUT_DIR/bb64.amd64" bb64.cpp b64ed.cpp -static-libgcc -static-libstdc++
echo "Warning: musl-g++ not found, built with g++ static flags."
fi
echo "Built bb64.amd64 (x86_64, static)" echo "Built bb64.amd64 (x86_64, static)"
fi fi

View File

@ -24,7 +24,7 @@ fi
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
CHOWN_USER="$2" CHOWN_USER="$2"
if [[ -z "$CHOWN_USER" ]]; then if [[ -z "$CHOWN_USER" ]]; then
CHOWN_USER=$USER CHOWN_USER=$(id -u)
fi fi
# 1. Determine architecture # 1. Determine architecture
@ -61,9 +61,9 @@ rm "$TMPDIR/bb64"
# 6. Print success message # 6. Print success message
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
echo "bb64 installed successfully to $INSTALL_DIR/bb64 (arch $ARCH)" echo "bb64 installed successfully to $INSTALL_DIR/bb64 (arch $ARCH)"
echo " " # echo " "
echo "Update bb64 with:" # echo "Update bb64 with:"
echo " bb64 -u" # echo " bb64 -u"
echo " " # echo " "
echo "try it out with:" # echo "try it out with:"
echo " bb64 ZWNobyAiSGVsbG8td29ybGQhIGJiNjQgaXMgd29ya2luZy4i" # echo " bb64 ZWNobyAiSGVsbG8td29ybGQhIGJiNjQgaXMgd29ya2luZy4i"

View File

@ -1 +1 @@
static const char *VERSION = "35"; static const char *VERSION = "39";