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
|
binary: arcast-player
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
|
flags:
|
||||||
|
- -trimpath
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s
|
- -s
|
||||||
- -w
|
- -w
|
||||||
- -X 'main.CommitRef={{ .Commit }}'
|
- -X 'main.CommitRef={{ .Commit }}'
|
||||||
- -X 'main.Version={{ .Version }}'
|
- -X 'main.Version={{ .Version }}'
|
||||||
gcflags:
|
|
||||||
- -trimpath="${PWD}"
|
|
||||||
asmflags:
|
|
||||||
- -trimpath="${PWD}"
|
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
|
@ -26,15 +24,13 @@ builds:
|
||||||
binary: arcast-client
|
binary: arcast-client
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
|
flags:
|
||||||
|
- -trimpath
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s
|
- -s
|
||||||
- -w
|
- -w
|
||||||
- -X 'main.CommitRef={{ .Commit }}'
|
- -X 'main.CommitRef={{ .Commit }}'
|
||||||
- -X 'main.Version={{ .Version }}'
|
- -X 'main.Version={{ .Version }}'
|
||||||
gcflags:
|
|
||||||
- -trimpath="${PWD}"
|
|
||||||
asmflags:
|
|
||||||
- -trimpath="${PWD}"
|
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -132,7 +132,7 @@ gitea-release: .mktools build-apps goreleaser release-android
|
||||||
|
|
||||||
.PHONY: goreleaser
|
.PHONY: goreleaser
|
||||||
goreleaser: .env .mktools
|
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
|
.PHONY: mktools
|
||||||
mktools:
|
mktools:
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
Type=Application
|
Type=Application
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Name=Arcast Player
|
Name=Arcast Player
|
||||||
Comment=Web diffusion server
|
GenericName=Web diffusion player
|
||||||
Path=/usr/bin/arcast-player
|
Exec=arcast-player run --additional-chrome-arg incognito --additional-chrome-arg start-maximized
|
||||||
Icon=arcast-player
|
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 data != nil {
|
||||||
if err := json.Unmarshal(data, conf); err != 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