fix: desktop app packaging
arcad/arcast/pipeline/head This commit is unstable Details

This commit is contained in:
wpetit 2024-04-26 17:13:35 +02:00
parent c1fdd2373b
commit 49c23e66de
4 changed files with 14 additions and 12 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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

View File

@ -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)))
}
}