Skip to content

Commit

Permalink
Support OTA updates in snap builds for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Nov 2, 2023
1 parent 41f3a89 commit 0d6d1cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ parts:
./bootstrap
./configure \
--with-wx-prefix="$SNAPCRAFT_STAGE" \
CPPFLAGS="-I${SNAPCRAFT_STAGE}/include -I${SNAPCRAFT_PART_INSTALL}/../build/deps/json/src" \
CPPFLAGS="-DSNAPCRAFT -I${SNAPCRAFT_STAGE}/include -I${SNAPCRAFT_PART_INSTALL}/../build/deps/json/src" \
LDFLAGS="-Wl,--copy-dt-needed-entries -L${SNAPCRAFT_STAGE}/lib" \
PKG_CONFIG_PATH="${SNAPCRAFT_STAGE}"/lib/pkgconfig
make -j1
Expand Down
2 changes: 1 addition & 1 deletion src/edapp.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class WXDLLIMPEXP_FWD_BASE wxConfigBase;
class WXDLLIMPEXP_FWD_BASE wxSingleInstanceChecker;

#if defined(HAVE_HTTP_CLIENT) && (defined(__WXMSW__) || defined(__WXOSX__))
#if defined(HAVE_HTTP_CLIENT) && (defined(__WXMSW__) || defined(__WXOSX__) || defined(SNAPCRAFT))
#define SUPPORTS_OTA_UPDATES
#endif

Expand Down

0 comments on commit 0d6d1cd

Please sign in to comment.