fix: desktop app packaging
arcad/arcast/pipeline/head This commit is unstable
Details
arcad/arcast/pipeline/head This commit is unstable
Details
This commit is contained in:
parent
c1fdd2373b
commit
49c23e66de
|
@ -7,15 +7,13 @@ builds:
|
|||
binary: arcast-player
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -s
|
||||
- -w
|
||||
- -X 'main.CommitRef={{ .Commit }}'
|
||||
- -X 'main.Version={{ .Version }}'
|
||||
gcflags:
|
||||
- -trimpath="${PWD}"
|
||||
asmflags:
|
||||
- -trimpath="${PWD}"
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
|
@ -26,15 +24,13 @@ builds:
|
|||
binary: arcast-client
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -s
|
||||
- -w
|
||||
- -X 'main.CommitRef={{ .Commit }}'
|
||||
- -X 'main.Version={{ .Version }}'
|
||||
gcflags:
|
||||
- -trimpath="${PWD}"
|
||||
asmflags:
|
||||
- -trimpath="${PWD}"
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
|
|
2
Makefile
2
Makefile
|
@ -132,7 +132,7 @@ gitea-release: .mktools build-apps goreleaser release-android
|
|||
|
||||
.PHONY: goreleaser
|
||||
goreleaser: .env .mktools
|
||||
( set -o allexport && source .env && set +o allexport && curl -sfL https://goreleaser.com/static/run | VERSION=$(GORELEASER_VERSION) GORELEASER_CURRENT_TAG="$(MKT_PROJECT_VERSION)" bash /dev/stdin $(GORELEASER_ARGS) )
|
||||
( set -o allexport && source .env && set +o allexport && curl -sfL https://goreleaser.com/static/run | VERSION=$(GORELEASER_VERSION) GORELEASER_CURRENT_TAG="$(MKT_PROJECT_VERSION)" GOPATH=$(shell go env GOPATH) bash /dev/stdin $(GORELEASER_ARGS) )
|
||||
|
||||
.PHONY: mktools
|
||||
mktools:
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
Type=Application
|
||||
Version=1.0
|
||||
Name=Arcast Player
|
||||
Comment=Web diffusion server
|
||||
Path=/usr/bin/arcast-player
|
||||
GenericName=Web diffusion player
|
||||
Exec=arcast-player run --additional-chrome-arg incognito --additional-chrome-arg start-maximized
|
||||
Icon=arcast-player
|
||||
Terminal=false
|
||||
Categories=Network;Utility
|
||||
|
||||
[Desktop Action kiosk]
|
||||
Name=Start in kiosk mode
|
||||
Exec=arcast-player run --additional-chrome-arg incognito --additional-chrome-arg kiosk
|
|
@ -65,7 +65,7 @@ func LoadOrCreate(ctx context.Context, filename string, conf *Config, funcs ...T
|
|||
|
||||
if data != nil {
|
||||
if err := json.Unmarshal(data, conf); err != nil {
|
||||
return errors.WithStack(err)
|
||||
logger.Error(ctx, "could not parse configuration file", logger.CapturedE(errors.WithStack(err)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue