Skip to content

luphysics/pymoda-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyMODA launcher

This repository contains the PyMODA launcher for macOS/Linux, which is written in Go.

Purpose

The PyMODA launcher is a small executable which acts as a wrapper around the PyMODA implementation.

When PyMODA performs an update, it downloads and extracts the new release into a new folder alongside the current release. When the PyMODA launcher is next opened, it will launch the new release, providing a seamless update experience with zero downtime.

Developer notes

Go compiles to native executables, and it has excellent support for cross-compilation.

To compile the launcher for your platform, install Go and run:

go build launcher.go

Cross-compiling from Windows

Compiling for Linux

$env:GOOS="linux"
go build -o launcher-linux launcher.go

Compiling for macOS

$env:GOOS="darwin"
go build -o launcher-macos launcher.go