Skip to content

Commit

Permalink
Build site bundle if does not exist, fix metainfo directory
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzen committed Dec 18, 2023
1 parent 9353436 commit 97a53e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions client/cmd/dexc-desktop/pkg/pkg-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ rm -fr "${BUILD_DIR}"
mkdir -p -m 0755 "${CONTROL_DIR}"
mkdir -p "${DOT_DESKTOP_BUILDDIR}"

# check if site bundle is built, if not build it
if [ ! -d ../../webserver/site/dist ]; then
CWD=$(pwd)
cd ../../webserver/site
npm clean-install
npm run build
cd $CWD
fi

# Build dexc
LDFLAGS="-s -w -X main.Version=${VER}${META:++${META}}"
GOOS=linux GOARCH=${ARCH} go build -o "${BIN_BUILDPATH}" -ldflags "$LDFLAGS"
Expand Down
2 changes: 1 addition & 1 deletion client/cmd/dexc-desktop/snap/local/snapcraft.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ parts:
metainfo:
plugin: nil
source: .
parse-info: [./metainfo/org.decred.dcrdex.metainfo.xml]
parse-info: [./src/org.decred.dcrdex.metainfo.xml]

dexc-desktop:
plugin: dump
Expand Down

0 comments on commit 97a53e9

Please sign in to comment.