new logo + windows installer
1
.gitignore
vendored
@@ -142,3 +142,4 @@ db4/
|
|||||||
osx_volname
|
osx_volname
|
||||||
dist/
|
dist/
|
||||||
*.background.tiff
|
*.background.tiff
|
||||||
|
GEMINI.md
|
||||||
|
|||||||
BIN
assets/logos/palladium.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/logos/palladium.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
150
assets/logos/palladium.svg
Normal file
|
After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 1.3 MiB |
BIN
assets/logos/palladium1024.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
assets/logos/palladium128.png
Normal file
|
After Width: | Height: | Size: 682 B |
BIN
assets/logos/palladium16.png
Normal file
|
After Width: | Height: | Size: 167 B |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 276 B |
BIN
assets/logos/palladium500.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
assets/logos/palladium64.png
Normal file
|
After Width: | Height: | Size: 382 B |
BIN
assets/logos/palladium_logo1024.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
assets/logos/palladium_nb500.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
assets/logos/palladium_testnet.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/logos/plmc500.png
Normal file
|
After Width: | Height: | Size: 80 KiB |
@@ -79,7 +79,7 @@ cd docker-build # Navigate to the docker-build directory
|
|||||||
|
|
||||||
### Output
|
### Output
|
||||||
|
|
||||||
Binaries will be available in `../build/armv7l/`:
|
Binaries will be available in `../build/linux-armv7l/`:
|
||||||
- `palladiumd` - Main daemon
|
- `palladiumd` - Main daemon
|
||||||
- `palladium-cli` - Command-line client
|
- `palladium-cli` - Command-line client
|
||||||
- `palladium-tx` - Transaction utility
|
- `palladium-tx` - Transaction utility
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set -euo pipefail
|
|||||||
IMAGE_NAME="palladium-builder:linux-aarch64-ubuntu20.04"
|
IMAGE_NAME="palladium-builder:linux-aarch64-ubuntu20.04"
|
||||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
REPO_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
REPO_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||||
OUT_DIR="${REPO_DIR}/build/aarch64"
|
OUT_DIR="${REPO_DIR}/build/linux-aarch64"
|
||||||
HOST_TRIPLE="aarch64-linux-gnu"
|
HOST_TRIPLE="aarch64-linux-gnu"
|
||||||
|
|
||||||
HOST_UID="$(id -u)"
|
HOST_UID="$(id -u)"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set -euo pipefail
|
|||||||
IMAGE_NAME="palladium-builder:linux-armv7l-ubuntu20.04"
|
IMAGE_NAME="palladium-builder:linux-armv7l-ubuntu20.04"
|
||||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
REPO_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
REPO_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||||
OUT_DIR="${REPO_DIR}/build/armv7l"
|
OUT_DIR="${REPO_DIR}/build/linux-armv7l"
|
||||||
HOST_TRIPLE="arm-linux-gnueabihf"
|
HOST_TRIPLE="arm-linux-gnueabihf"
|
||||||
|
|
||||||
HOST_UID="$(id -u)"
|
HOST_UID="$(id -u)"
|
||||||
|
|||||||
@@ -8,16 +8,17 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|||||||
run_build() {
|
run_build() {
|
||||||
local script_name="$1"
|
local script_name="$1"
|
||||||
local description="$2"
|
local description="$2"
|
||||||
|
shift 2
|
||||||
|
|
||||||
echo "============================================================"
|
echo "============================================================"
|
||||||
echo "Starting build for: $description"
|
echo "Starting build for: $description"
|
||||||
echo "Script: $script_name"
|
echo "Script: $script_name $*"
|
||||||
echo "============================================================"
|
echo "============================================================"
|
||||||
|
|
||||||
if [[ -f "${SCRIPT_DIR}/${script_name}" ]]; then
|
if [[ -f "${SCRIPT_DIR}/${script_name}" ]]; then
|
||||||
# Ensure it's executable
|
# Ensure it's executable
|
||||||
chmod +x "${SCRIPT_DIR}/${script_name}"
|
chmod +x "${SCRIPT_DIR}/${script_name}"
|
||||||
"${SCRIPT_DIR}/${script_name}"
|
"${SCRIPT_DIR}/${script_name}" "$@"
|
||||||
else
|
else
|
||||||
echo "Error: Script ${script_name} not found!"
|
echo "Error: Script ${script_name} not found!"
|
||||||
fi
|
fi
|
||||||
@@ -35,24 +36,31 @@ show_menu() {
|
|||||||
echo "2) Linux aarch64 (ARM64)"
|
echo "2) Linux aarch64 (ARM64)"
|
||||||
echo "3) Linux armv7l (ARM 32-bit)"
|
echo "3) Linux armv7l (ARM 32-bit)"
|
||||||
echo "4) Windows x86_64"
|
echo "4) Windows x86_64"
|
||||||
echo "5) Build ALL"
|
echo "4a) Windows x86_64 (Installer)"
|
||||||
|
echo "5) Build ALL (Binaries and Installers)"
|
||||||
|
echo "6) Build ALL Installers"
|
||||||
echo "0) Exit"
|
echo "0) Exit"
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|
||||||
show_menu
|
show_menu
|
||||||
read -p "Enter your choice(s) separated by space (e.g. '1 4' for Linux and Windows): " choices
|
read -p "Enter your choice(s) separated by space (e.g. '1 4a' for Linux and Windows Installer): " choices
|
||||||
|
|
||||||
# Convert string to array
|
# Convert string to array
|
||||||
read -ra ADDR <<< "$choices"
|
read -ra ADDR <<< "$choices"
|
||||||
|
|
||||||
# Check if '5' (ALL) is selected
|
# Check if '5' (ALL) or '6' is selected
|
||||||
do_all=false
|
do_all=false
|
||||||
|
do_all_installers=false
|
||||||
for choice in "${ADDR[@]}"; do
|
for choice in "${ADDR[@]}"; do
|
||||||
if [[ "$choice" == "5" ]]; then
|
if [[ "$choice" == "5" ]]; then
|
||||||
do_all=true
|
do_all=true
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
if [[ "$choice" == "6" ]]; then
|
||||||
|
do_all_installers=true
|
||||||
|
break
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$do_all" = true ]; then
|
if [ "$do_all" = true ]; then
|
||||||
@@ -60,6 +68,9 @@ if [ "$do_all" = true ]; then
|
|||||||
run_build "build-linux-aarch64.sh" "Linux aarch64"
|
run_build "build-linux-aarch64.sh" "Linux aarch64"
|
||||||
run_build "build-linux-armv7l.sh" "Linux armv7l"
|
run_build "build-linux-armv7l.sh" "Linux armv7l"
|
||||||
run_build "build-windows.sh" "Windows x86_64"
|
run_build "build-windows.sh" "Windows x86_64"
|
||||||
|
run_build "build-windows.sh" "Windows x86_64 (Installer)" --installer
|
||||||
|
elif [ "$do_all_installers" = true ]; then
|
||||||
|
run_build "build-windows.sh" "Windows x86_64 (Installer)" --installer
|
||||||
else
|
else
|
||||||
for choice in "${ADDR[@]}"; do
|
for choice in "${ADDR[@]}"; do
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
@@ -75,6 +86,9 @@ else
|
|||||||
4)
|
4)
|
||||||
run_build "build-windows.sh" "Windows x86_64"
|
run_build "build-windows.sh" "Windows x86_64"
|
||||||
;;
|
;;
|
||||||
|
"4a")
|
||||||
|
run_build "build-windows.sh" "Windows x86_64 (Installer)" --installer
|
||||||
|
;;
|
||||||
0)
|
0)
|
||||||
echo "Exiting."
|
echo "Exiting."
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Default to not building the installer
|
||||||
|
BUILD_INSTALLER=false
|
||||||
|
|
||||||
|
# Check for --installer flag
|
||||||
|
if [[ "$1" == "--installer" ]]; then
|
||||||
|
BUILD_INSTALLER=true
|
||||||
|
echo "[*] Installer build requested."
|
||||||
|
fi
|
||||||
|
|
||||||
IMAGE_NAME="palladium-builder:windows-ubuntu20.04"
|
IMAGE_NAME="palladium-builder:windows-ubuntu20.04"
|
||||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
REPO_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
REPO_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||||
@@ -23,6 +32,7 @@ echo "[*] Starting container: build COMPLETELY in container; mount ONLY the outp
|
|||||||
docker run --rm --platform=linux/amd64 \
|
docker run --rm --platform=linux/amd64 \
|
||||||
-e HOST_UID="${HOST_UID}" -e HOST_GID="${HOST_GID}" \
|
-e HOST_UID="${HOST_UID}" -e HOST_GID="${HOST_GID}" \
|
||||||
-v "${OUT_DIR}":/out \
|
-v "${OUT_DIR}":/out \
|
||||||
|
-e BUILD_INSTALLER="${BUILD_INSTALLER}" \
|
||||||
"$IMAGE_NAME" \
|
"$IMAGE_NAME" \
|
||||||
bash -c "
|
bash -c "
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -54,6 +64,13 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
[[ -f \"\$b\" ]] && install -m 0755 \"\$b\" /out/
|
[[ -f \"\$b\" ]] && install -m 0755 \"\$b\" /out/
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ "\$BUILD_INSTALLER" == "true" ]]; then
|
||||||
|
echo '[*] make deploy (creating installer)...'
|
||||||
|
make deploy
|
||||||
|
echo '[*] copying installer to /out...'
|
||||||
|
find . -iname 'palladium-*-win64-setup.exe' -print -exec install -m 0644 {} /out/ \;
|
||||||
|
fi
|
||||||
|
|
||||||
# Align permissions to host user
|
# Align permissions to host user
|
||||||
chown -R \${HOST_UID:-0}:\${HOST_GID:-0} /out
|
chown -R \${HOST_UID:-0}:\${HOST_GID:-0} /out
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 98 KiB |