machinebox / desktop

Go/HTML/CSS/JS Desktop application scaffold.
Apache License 2.0
130 stars 18 forks source link

For now it shows an empty window #2

Open ghost opened 6 years ago

ghost commented 6 years ago

I guess you know this, but getting empty webview window.

doing:

make install
make run
matryer commented 6 years ago

It shouldn't... you should see this:

image

ghost commented 6 years ago

i know :)

repro:

mkdir -p /Users/apple/workspace/go/src/github.com/machinebox
cd /Users/apple/workspace/go/src/github.com/machinebox && git clone https://github.com/machinebox/desktop.git
Cloning into 'desktop'...
remote: Counting objects: 120, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 120 (delta 5), reused 12 (delta 3), pack-reused 105
Receiving objects: 100% (120/120), 439.71 KiB | 404.00 KiB/s, done.
Resolving deltas: 100% (50/50), done.
cd /Users/apple/workspace/go/src/github.com/machinebox/desktop && make install
go get github.com/machinebox/appify
go get github.com/jteeuwen/go-bindata/...
go get github.com/elazarl/go-bindata-assetfs/...

d /Users/apple/workspace/go/src/github.com/machinebox/desktop && make run
rm -rf "My Go Desktop App".app || true
rm app || true
rm: app: No such file or directory
rm bindata.go || true
rm: bindata.go: No such file or directory
go generate
go build -o app
appify -name="My Go Desktop App" -icon=icon.png app
sleep 1
open -a "My Go Desktop App".app

go env:


GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/apple/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/apple/workspace/go"
GORACE=""
GOROOT="/usr/local/opt/go/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/go-build890497066=/tmp/go-build -gno-record-gcc-switches -fno-common"
urlund commented 5 years ago

Same issue - @gedw99 any solution to this?

mfiedorowicz commented 5 years ago

@matryer same issue here, from the logs:

com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.My Go Desktop App.app.10283): Could not resolve origin of domain. XPC services in this domain's bundle will not be bootstrapped: error = 107: Malformed bundle, taint = missing executable My Go Desktop App.app[10283]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug

mfiedorowicz commented 5 years ago

It started working after changing endpoint from:

const endpoint = "0.0.0.0:0" to i.e. const endpoint = "127.0.0.1:8059"

urlund commented 5 years ago

@mfiedorowicz you are totally right, awesome - and thanks for sharing!