mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-19 07:38:23 +00:00
Software update fetcher seems to work, going back to updater/installer itself.
This commit is contained in:
@ -5,6 +5,10 @@ INCLUDES=
|
|||||||
DEFS=
|
DEFS=
|
||||||
LIBS=
|
LIBS=
|
||||||
|
|
||||||
|
ifeq ($(ZT_AUTO_UPDATE),1)
|
||||||
|
DEFS+=-DZT_AUTO_UPDATE
|
||||||
|
endif
|
||||||
|
|
||||||
# Uncomment for a release optimized build
|
# Uncomment for a release optimized build
|
||||||
CFLAGS=-Wall -O3 -fno-unroll-loops -fvisibility=hidden -fstack-protector -pthread $(INCLUDES) -DNDEBUG $(DEFS)
|
CFLAGS=-Wall -O3 -fno-unroll-loops -fvisibility=hidden -fstack-protector -pthread $(INCLUDES) -DNDEBUG $(DEFS)
|
||||||
STRIP=strip --strip-all
|
STRIP=strip --strip-all
|
||||||
|
@ -2,9 +2,13 @@ CC=clang
|
|||||||
CXX=clang++
|
CXX=clang++
|
||||||
|
|
||||||
INCLUDES=
|
INCLUDES=
|
||||||
DEFS=-DZT_AUTO_UPDATE
|
DEFS=
|
||||||
LIBS=-lm
|
LIBS=-lm
|
||||||
|
|
||||||
|
ifeq ($(ZT_AUTO_UPDATE),1)
|
||||||
|
DEFS+=-DZT_AUTO_UPDATE
|
||||||
|
endif
|
||||||
|
|
||||||
# Uncomment for a release optimized universal binary build
|
# Uncomment for a release optimized universal binary build
|
||||||
CFLAGS=-arch i386 -arch x86_64 -Wall -O4 -pthread -mmacosx-version-min=10.6 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)
|
CFLAGS=-arch i386 -arch x86_64 -Wall -O4 -pthread -mmacosx-version-min=10.6 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)
|
||||||
STRIP=strip
|
STRIP=strip
|
||||||
|
@ -176,6 +176,8 @@ void SoftwareUpdater::_cbHandleGetLatestVersionBinary(void *arg,int code,const s
|
|||||||
::close(fd);
|
::close(fd);
|
||||||
::chmod(updatePath.c_str(),0755);
|
::chmod(updatePath.c_str(),0755);
|
||||||
|
|
||||||
|
upd->_status = UPDATE_STATUS_IDLE;
|
||||||
|
|
||||||
_r->node->terminate(Node::NODE_RESTART_FOR_UPGRADE,updatePath.c_str());
|
_r->node->terminate(Node::NODE_RESTART_FOR_UPGRADE,updatePath.c_str());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user