Compare commits
No commits in common. "main" and "v35" have entirely different histories.
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -63,7 +63,6 @@
|
||||
"typeinfo": "cpp",
|
||||
"variant": "cpp",
|
||||
"format": "cpp",
|
||||
"__nullptr": "cpp",
|
||||
"codecvt": "cpp"
|
||||
"__nullptr": "cpp"
|
||||
}
|
||||
}
|
7
bb64.cpp
7
bb64.cpp
@ -149,8 +149,6 @@ Usage:
|
||||
|
||||
bb64 -u Updates bb64 to the latest version (uses docker)
|
||||
|
||||
bb64 -v Prints the version number
|
||||
|
||||
)" << std::endl;
|
||||
return -1;
|
||||
}
|
||||
@ -161,11 +159,6 @@ Usage:
|
||||
{
|
||||
if (mode == "-u")
|
||||
return update_bb64();
|
||||
else if (mode == "-v")
|
||||
{
|
||||
std::cout << VERSION << std::endl;
|
||||
return 0;
|
||||
}
|
||||
else if (mode == "-e")
|
||||
{
|
||||
std::ostringstream oss;
|
||||
|
5
build.sh
5
build.sh
@ -8,7 +8,12 @@ mkdir -p "$OUTPUT_DIR"
|
||||
# Build for x86_64 with musl static linking
|
||||
if [[ $(uname -m) == "x86_64" ]]; then
|
||||
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
|
||||
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)"
|
||||
fi
|
||||
|
||||
|
14
install.sh
14
install.sh
@ -24,7 +24,7 @@ fi
|
||||
# -----------------------------------------------------------------------------
|
||||
CHOWN_USER="$2"
|
||||
if [[ -z "$CHOWN_USER" ]]; then
|
||||
CHOWN_USER=$(id -u)
|
||||
CHOWN_USER=$USER
|
||||
fi
|
||||
|
||||
# 1. Determine architecture
|
||||
@ -61,9 +61,9 @@ rm "$TMPDIR/bb64"
|
||||
# 6. Print success message
|
||||
# -----------------------------------------------------------------------------
|
||||
echo "bb64 installed successfully to $INSTALL_DIR/bb64 (arch $ARCH)"
|
||||
# echo " "
|
||||
# echo "Update bb64 with:"
|
||||
# echo " bb64 -u"
|
||||
# echo " "
|
||||
# echo "try it out with:"
|
||||
# echo " bb64 ZWNobyAiSGVsbG8td29ybGQhIGJiNjQgaXMgd29ya2luZy4i"
|
||||
echo " "
|
||||
echo "Update bb64 with:"
|
||||
echo " bb64 -u"
|
||||
echo " "
|
||||
echo "try it out with:"
|
||||
echo " bb64 ZWNobyAiSGVsbG8td29ybGQhIGJiNjQgaXMgd29ya2luZy4i"
|
||||
|
Loading…
x
Reference in New Issue
Block a user