Skip to content

Releases: maxence-charriere/go-app

3.2.8

27 Sep 00:35
Compare
Choose a tag to compare

mac

  • fix MacOS retro compatibility up to 10.11 (El Capitan).

3.2.7

27 Sep 00:16
Compare
Choose a tag to compare
3.2.7 Pre-release
Pre-release

mac

  • fix MacOS retro compatibility up to 10.11.

3.2.6

26 Sep 09:52
Compare
Choose a tag to compare

mac

  • The way to make a window translucent changed:
win := app.NewWindow(app.WindowConfig{
  Title:             "frosted window",
  Width:             1024,
  Height:            720,
  TitlebarHidden:    true,
  FrostedBackground: true, // Enable translucent effect.
  URL:               "/MyCompo",
})
  • WindowConfig.Mac is deprecated.
  • MacWindowConfig is deprecated.
  • Vibrancy is deprecated.
  • Vibrancy const are deprecated:
    • VibeNone
    • VibeLight
    • VibeDark
    • VibeTitlebar
    • VibeSelection
    • VibeMenu
    • VibePopover
    • VibeSidebar
    • VibeMediumLight
    • VibeUltraDark

3.2.5

26 Sep 06:37
Compare
Choose a tag to compare

general

  • In HTML based elements (windows and pages):
    • font-family: Default is the system font.
    • font-size: Default is 11px.

mac

  • Fix MacOS Mojave deprecated warnings.
  • goapp mac build and goapp mac run:
    • -deployment-target: Specify for which version of MacOS is the build.
    • -a: Force rebuild go executable.
    • -race: Build with data race detection.

3.2.4

24 Sep 22:16
Compare
Choose a tag to compare

mac

  • mac default main window background takes the system default color.

3.2.3

24 Sep 01:30
Compare
Choose a tag to compare

General

  • EventArgs structs now have info about the source element that invoked the
    event.
// MouseEvent represents an onmouse event arg.
type MouseEvent struct {
	ClientX   float64
	ClientY   float64
	PageX     float64
	PageY     float64
	ScreenX   float64
	ScreenY   float64
	Button    int
	Detail    int
	AltKey    bool
	CtrlKey   bool
	MetaKey   bool
	ShiftKey  bool
	InnerText string
	Source    EventSource
}

// EventSource represents a descriptor to an event source.
type EventSource struct {
	GoappID string
	CompoID string
	ID      string
	Class   string
	Data    map[string]string
}

3.2.2

13 Sep 21:08
Compare
Choose a tag to compare
  • Fixes goapp web on windows.
  • Chinese README.

3.2.1

11 Sep 02:37
Compare
Choose a tag to compare

General

  • goapp update command has been added.
  • Readme has been rewritten.
  • Small dom internal refactors.

mac

  • goapp mac build has been refactored to be more maintainable and reliable.
  • goapp mac got various bug fixes.
  • mac.Driver.URL field has been added. It allows to run and reopen a
    main window without having to do in by hand with driver.OnRun and
    driver.OnReopen.

web

  • goapp web build has been refactored. It now produces a .wapp that contains
    the executable and the resources.
  • goapp web run command has been added. It can launch the web server and the
    the gopherjs client in the default web browser.

3.2.0

30 Aug 07:09
Compare
Choose a tag to compare

General

  • Logger interface become a function:

    var Logger func(format string, a ...interface{}
  • Log functions have been modified:

    Log()    // Behave like fmt.Println.
    Logf()   // New - behave like fmt.Printf.
    Panic()  // New - behave like Log followed by panic.
    Panicf() // New - behave like Logf followed by panic.
    
    Debug() // Removed.

    The reason of this change is because packaged app like a .app (MacOS) and
    .appx (Windows in the future) do not print their logs into the terminal.
    These functions embed the logic to make terminal logs possible.

  • goapp commands now have verbose mode.

Mac

  • goapp mac build now produces a .app.
  • goapp mac run command has been added. It runs a .app and capture the
    logs in the terminal.

3.1.2

27 Aug 08:55
Compare
Choose a tag to compare

goapp

  • goapp is now building on Windows and Linux.
  • goapp web init is now working on Windows.
  • goapp web build is now working on Windows.

Note that since gopherjs is not officially supported on Windows, dev experience on Windows machines is not guaranteed to be stable.