Skip to content

Hype v1.7.1 - Cross-compilation and Build Fixes

Choose a tag to compare

@twilson63 twilson63 released this 18 Jul 04:35
· 38 commits to main since this release

What's Changed

🔧 Build System Improvements

  • Enhanced Cross-compilation: now properly respects GOOS/GOARCH environment variables
  • Fixed reflect import: Resolved unused import issues when building scripts without plugins
  • CI/CD compatibility: Improved support for GitHub Actions and automated builds

🛠️ Technical Fixes

  • Fixed conditional import of reflect package in generated Go code
  • Enhanced cross-platform binary generation from CI/CD systems
  • Improved plugin system compatibility with build process

📦 Examples

  • Added LMDB Tree Viewer as example project showcasing cross-platform builds
  • Demonstrates proper usage of hype build in GitHub Actions workflows

🔗 Related Projects

Installation

Quick Install

curl -sSL https://raw.githubusercontent.com/twilson63/hype/main/install.sh | bash

Manual Install

  1. Download the appropriate binary for your platform from the releases page
  2. Make it executable: chmod +x hype
  3. Move to your PATH: mv hype /usr/local/bin/

Usage

Cross-compilation

# Build for Linux from macOS
GOOS=linux GOARCH=amd64 hype build script.lua -o app-linux

# Build for Windows from Linux  
GOOS=windows GOARCH=amd64 hype build script.lua -o app-windows.exe

# Build for macOS ARM64
GOOS=darwin GOARCH=arm64 hype build script.lua -o app-macos-arm64

GitHub Actions

- name: Build Cross-platform Binaries
  run: |
    GOOS=linux GOARCH=amd64 hype build script.lua -o app-linux
    GOOS=windows GOARCH=amd64 hype build script.lua -o app-windows.exe
    GOOS=darwin GOARCH=arm64 hype build script.lua -o app-macos-arm64

Full documentation: https://github.com/twilson63/hype/blob/main/README.md


🤖 Generated with Claude Code

Full Changelog: v1.7.0...v1.7.1