mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-18 01:54:29 -05:00
rename dev_scripts to dev-scripts, move homebrew template into its own folder
This commit is contained in:
parent
708453b648
commit
27f3a80741
10 changed files with 37 additions and 40 deletions
|
|
@ -19,7 +19,7 @@ docs/_build/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
# Development scripts
|
# Development scripts
|
||||||
dev_scripts/
|
dev-scripts/
|
||||||
dev-docs/
|
dev-docs/
|
||||||
|
|
||||||
# Tauri development files
|
# Tauri development files
|
||||||
|
|
|
||||||
39
.github/workflows/build-gui-release-binaries.yml
vendored
39
.github/workflows/build-gui-release-binaries.yml
vendored
|
|
@ -195,40 +195,11 @@ jobs:
|
||||||
echo "aarch64 SHA256: $AARCH64_SHA256"
|
echo "aarch64 SHA256: $AARCH64_SHA256"
|
||||||
echo "x64 SHA256: $X64_SHA256"
|
echo "x64 SHA256: $X64_SHA256"
|
||||||
|
|
||||||
# Generate the Homebrew formula
|
# Generate the Homebrew formula from template
|
||||||
cat > eigenwallet.rb <<'EOF'
|
cp dev-scripts/homebrew/eigenwallet.rb.template eigenwallet.rb
|
||||||
cask "eigenwallet" do
|
sed -i "s/VERSION_PLACEHOLDER/$VERSION/g" eigenwallet.rb
|
||||||
version "$VERSION"
|
sed -i "s/AARCH64_SHA256_PLACEHOLDER/$AARCH64_SHA256/g" eigenwallet.rb
|
||||||
|
sed -i "s/X64_SHA256_PLACEHOLDER/$X64_SHA256/g" eigenwallet.rb
|
||||||
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
|
|
||||||
|
|
||||||
cat eigenwallet.rb
|
cat eigenwallet.rb
|
||||||
|
|
||||||
|
|
|
||||||
26
dev-scripts/homebrew/eigenwallet.rb.template
Normal file
26
dev-scripts/homebrew/eigenwallet.rb.template
Normal 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
|
||||||
|
|
@ -39,7 +39,7 @@ esac
|
||||||
|
|
||||||
set -euo pipefail
|
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"
|
SRC_TAURI_DIR="$(pwd)/../src-tauri"
|
||||||
|
|
||||||
# Check if src-tauri directory exists
|
# Check if src-tauri directory exists
|
||||||
4
justfile
4
justfile
|
|
@ -123,7 +123,7 @@ docker-prune-network:
|
||||||
|
|
||||||
# Install dependencies required for building monero-sys
|
# Install dependencies required for building monero-sys
|
||||||
prepare_mac_os_brew_dependencies:
|
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
|
# Takes a crate (e.g monero-rpc-pool) and uses code2prompt to copy to clipboard
|
||||||
# E.g code2prompt . --exclude "*.lock" --exclude ".sqlx/*" --exclude "target"
|
# 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"
|
cd {{crate}} && code2prompt . --exclude "*.lock" --exclude ".sqlx/*" --exclude "target"
|
||||||
|
|
||||||
prepare-windows-build:
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue