Skip to content

Commit 73ad1ae

Browse files
committed
disable autoupdate when CI=true
1 parent dbc8d27 commit 73ad1ae

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

node/src/node_main.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ extern "C" {
3030
#ifdef _WIN32
3131
#include <VersionHelpers.h>
3232
#include <WinError.h>
33+
#include <Windows.h>
3334

3435
#if ENCLOSE_IO_AUTO_UPDATE
3536
void enclose_io_autoupdate(int argc, wchar_t *wargv[]);
@@ -38,7 +39,10 @@ void enclose_io_autoupdate(int argc, wchar_t *wargv[]);
3839
int wmain(int argc, wchar_t *wargv[]) {
3940
// --------- [Enclose.io Hack start] ---------
4041
#if ENCLOSE_IO_AUTO_UPDATE
41-
enclose_io_autoupdate(argc, wargv);
42+
TCHAR lpBuffer[32767 + 1];
43+
if (0 == GetEnvironmentVariable("CI", lpBuffer, 32767)) {
44+
enclose_io_autoupdate(argc, wargv);
45+
}
4246
#endif
4347
sqfs_err enclose_io_ret;
4448
enclose_io_ret = squash_start();
@@ -780,7 +784,9 @@ int main(int argc, char *argv[]) {
780784
#endif
781785
// --------- [Enclose.io Hack start] ---------
782786
#if ENCLOSE_IO_AUTO_UPDATE
783-
enclose_io_autoupdate(argc, argv);
787+
if (NULL == getenv("CI")) {
788+
enclose_io_autoupdate(argc, argv);
789+
}
784790
#endif
785791
sqfs_err enclose_io_ret;
786792
enclose_io_ret = squash_start();

0 commit comments

Comments
 (0)