Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
.idea/
# Binary
chain-registry-app
chain-registry-app.exe

# macOS
.DS_Store

# Output directories
/bin/
/build/
/dist/

# Go specific
/vendor/
*.o
*.a
*.so

# IDE specific files
.idea/
.vscode/
*.swp
*.swo

.github/workflows/utility/__pycache__

node_modules/
Expand Down
46 changes: 46 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Makefile for the Cosmos Chain Registry App

.PHONY: build run clean lint test package-mac package-windows package-linux package-all

# Build the application
build:
go build -o chain-registry-app ./cmd/chain-registry-app

# Run the application
run: build
./chain-registry-app

# Clean up build artifacts
clean:
rm -f chain-registry-app
rm -rf fyne-cross

# Run the linter
lint:
golangci-lint run ./...

# Run tests
test:
go test ./...

# Package for macOS
package-mac:
go install fyne.io/fyne/v2/cmd/fyne@latest
fyne package -os darwin -icon icon.png -name "Cosmos Chain Registry"

# Package for Windows
package-windows:
go install fyne.io/fyne/v2/cmd/fyne@latest
fyne package -os windows -icon icon.png -name "Cosmos Chain Registry"

# Package for Linux
package-linux:
go install fyne.io/fyne/v2/cmd/fyne@latest
fyne package -os linux -icon icon.png -name "Cosmos Chain Registry"

# Cross-platform packaging (requires Docker)
package-all:
go install github.com/fyne-io/fyne-cross@latest
fyne-cross darwin -app-id "com.faddat.chain-registry" -icon icon.png
fyne-cross windows -app-id "com.faddat.chain-registry" -icon icon.png
fyne-cross linux -app-id "com.faddat.chain-registry" -icon icon.png
Loading