rename dev_scripts to dev-scripts, move homebrew template into its own folder

This commit is contained in:
Binarybaron 2025-10-19 19:17:13 +02:00
parent 708453b648
commit 27f3a80741
10 changed files with 37 additions and 40 deletions

View file

@ -19,7 +19,7 @@ docs/_build/
node_modules/
# Development scripts
dev_scripts/
dev-scripts/
dev-docs/
# Tauri development files

View file

@ -195,40 +195,11 @@ jobs:
echo "aarch64 SHA256: $AARCH64_SHA256"
echo "x64 SHA256: $X64_SHA256"
# Generate the Homebrew formula
cat > eigenwallet.rb <<'EOF'
cask "eigenwallet" do
version "$VERSION"
on_arm do
sha256 "$AARCH64_SHA256"
url "https://github.com/eigenwallet/core/releases/download/#{version}/eigenwallet_#{version}_aarch64.dmg"
end
on_intel do
sha256 "$X64_SHA256"
url "https://github.com/eigenwallet/core/releases/download/#{version}/eigenwallet_#{version}_x64.dmg"
end
name "Eigenwallet"
desc "GUI for XMR<>BTC Atomic Swaps"
homepage "https://github.com/eigenwallet/core"
livecheck do
url :url
strategy :github_latest
end
auto_updates true
app "eigenwallet.app"
end
EOF
# Now substitute the bash variables
sed -i "s/\$VERSION/$VERSION/g" eigenwallet.rb
sed -i "s/\$AARCH64_SHA256/$AARCH64_SHA256/g" eigenwallet.rb
sed -i "s/\$X64_SHA256/$X64_SHA256/g" eigenwallet.rb
# Generate the Homebrew formula from template
cp dev-scripts/homebrew/eigenwallet.rb.template eigenwallet.rb
sed -i "s/VERSION_PLACEHOLDER/$VERSION/g" eigenwallet.rb
sed -i "s/AARCH64_SHA256_PLACEHOLDER/$AARCH64_SHA256/g" eigenwallet.rb
sed -i "s/X64_SHA256_PLACEHOLDER/$X64_SHA256/g" eigenwallet.rb
cat eigenwallet.rb

View file

@ -0,0 +1,26 @@
cask "eigenwallet" do
version "VERSION_PLACEHOLDER"
on_arm do
sha256 "AARCH64_SHA256_PLACEHOLDER"
url "https://github.com/eigenwallet/core/releases/download/#{version}/eigenwallet_#{version}_aarch64.dmg"
end
on_intel do
sha256 "X64_SHA256_PLACEHOLDER"
url "https://github.com/eigenwallet/core/releases/download/#{version}/eigenwallet_#{version}_x64.dmg"
end
name "Eigenwallet"
desc "GUI for XMR<>BTC Atomic Swaps"
homepage "https://github.com/eigenwallet/core"
livecheck do
url :url
strategy :github_latest
end
auto_updates true
app "eigenwallet.app"
end

View file

@ -39,7 +39,7 @@ esac
set -euo pipefail
# Get the current project root (this file is in <root>/dev_scripts/ and gets called via just (just file is at <root>/justfile))
# Get the current project root (this file is in <root>/dev-scripts/ and gets called via just (just file is at <root>/justfile))
SRC_TAURI_DIR="$(pwd)/../src-tauri"
# Check if src-tauri directory exists

View file

@ -123,7 +123,7 @@ docker-prune-network:
# Install dependencies required for building monero-sys
prepare_mac_os_brew_dependencies:
cd dev_scripts && chmod +x ./brew_dependencies_install.sh && ./brew_dependencies_install.sh
cd dev-scripts && chmod +x ./brew_dependencies_install.sh && ./brew_dependencies_install.sh
# Takes a crate (e.g monero-rpc-pool) and uses code2prompt to copy to clipboard
# E.g code2prompt . --exclude "*.lock" --exclude ".sqlx/*" --exclude "target"
@ -131,4 +131,4 @@ code2prompt_single_crate crate:
cd {{crate}} && code2prompt . --exclude "*.lock" --exclude ".sqlx/*" --exclude "target"
prepare-windows-build:
cd dev_scripts && ./ubuntu_build_x86_86-w64-mingw32-gcc.sh
cd dev-scripts && ./ubuntu_build_x86_86-w64-mingw32-gcc.sh